| <<<Back 1 day (to 2011/08/06) | 2011/08/07 |
tor8 | Robin_Watts: ping | 11:58.32 |
| if you're happy using gcc: __builtin_frame_address combined with dladdr | 12:03.49 |
| but I doubt you can do that when you've segfaulted already | 12:05.28 |
| so you're probably best off dumping core and using some scripting on the core dump files | 12:06.14 |
| http://stackoverflow.com/questions/77005/how-to-generate-a-stacktrace-when-my-gcc-c-app-crashes | 12:12.17 |
Robin_Watts | tor8: I can try and call it from the signal handler ? | 12:37.44 |
tor8 | yeah, I was just not sure whether any stack functions would work from a signal handler (different stack and all that) | 12:44.03 |
| just a heads-up: dladdr doesn't exist on macosx | 12:44.32 |
Robin_Watts | The top answer on that stackoverflow question looks ideal. | 12:44.52 |
tor8 | or well, it's bound to have platform inconsistencies. the libSegFault thing seems better | 12:45.16 |
Robin_Watts | I may try that later if I have time before packing. | 12:45.28 |
| Forward 1 day (to 2011/08/08)>>> | |