fork of https://github.com/oxigraph/rocksdb and https://github.com/facebook/rocksdb for nextgraph and oxigraph
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
265 B
28 lines
265 B
12 years ago
|
#include "util/stack_trace.h"
|
||
|
#include <assert.h>
|
||
|
|
||
|
void f0() {
|
||
|
char *p = nullptr;
|
||
|
*p = 10; /* SIGSEGV here!! */
|
||
|
}
|
||
|
|
||
|
void f1() {
|
||
|
f0();
|
||
|
}
|
||
|
|
||
|
void f2() {
|
||
|
f1();
|
||
|
}
|
||
|
|
||
|
void f3() {
|
||
|
f2();
|
||
|
}
|
||
|
|
||
|
int main() {
|
||
|
leveldb::InstallStackTraceHandler();
|
||
|
|
||
|
f3();
|
||
|
|
||
|
return 0;
|
||
|
}
|