What do I do if my program dumps core when run with Aprobe?
For possible reasons for such crashes, see questions 13.13, 13.16 and 20.19. If you have a core file, keep reading. The first thing to check is whether any probes you have written are responsible for illegal memory references. These will cause core dumps just like any C or C++ program. If you have a machine-level debugger installed you can usually use it to get the a stack trace. On AIX and Solaris: dbx /full/path/of/your-application /find/the/core-file On Linux: gdb /full/path/of/your-application -c /find/the/core-file (That is, the first argument is the name of your executable, and the second is the path to the core file it dropped, which should be in the program’s PWD.) Then enter the command where which will give the stack trace at the point of the core dump. (On Solaris, dbx is part of the Sun Workshop toolset and may not be installed on your target system if your applications run on a different host than they are compiled on. Similarly, on AIX you need to have the bos.adt.debug f
Related Questions
- When I run my program with aprobe I don get any output even though I know Im executing routines with probes on them and those probes use printf. Whats going on?
- Is it possible to program a set of core components that will run without modification on any of the aforementioned platforms?
- What do I do if my program dumps core when run with Aprobe?