mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-17 10:54:55 +02:00
* anytermd: Added anyterm to extras. Included modifications on original anytermd project source code. Added a new spec file for centos/fedora/rhel. Tested on FC16/i386 and centos6/x86_84. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6257 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
24 lines
254 B
C++
24 lines
254 B
C++
// Get a backtrace when we de-reference a null ponter.
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include "segv_backtrace.hh"
|
|
|
|
|
|
int* ptr;
|
|
|
|
int badstuff(int i)
|
|
{
|
|
ptr = NULL;
|
|
return badstuff(*ptr * i);
|
|
}
|
|
|
|
|
|
int main()
|
|
{
|
|
get_backtrace_on_segv();
|
|
|
|
return badstuff(1);
|
|
}
|
|
|