> > questions: > > Core was generated by 'AAAAA...' > > what does it mean? core generated when gdb tried to execute this piece > > of code? or, just this piece of string went out the segment? > > It probably means that the core dump is bogues, e.g. because the > relevant part of memory has been corrupted. The string following the > `Core was generated by' message should be the name of the program. so that code (actually the long line of 'AAA..' was passed as one of env. variable) overwritten the part of memory, where kernel saves the name of loaded code, right? > > right? .. is there any way to figure out what exactly piece of code > > generates this without recompiling the code with debugging mode? > > You can get more info by typing `where'. This will show the saved > return address of all of the stack frames from main() downwards. > > However, you can't get much useful information out of a core file > unless the program was built with debugging info. And if you want to > get details of the execution context for code hmm.. like data passed to library routine, etc, right? > that is part of a > library, then the library needs to be built with debug info also. is there a way to specify what library to use while running codes compiled in debug mode *(say if i want only single code to work with debugging-mode library) or i would have to replace link in /usr/lib|lib and thus make it for all system processes..(sorry if sounds abit confusing) Thanks for answers..