a143ef9b38
Summary: Change namespace from leveldb to rocksdb. This allows a single application to link in open-source leveldb code as well as rocksdb code into the same process. Test Plan: compile rocksdb Reviewers: emayanke Reviewed By: emayanke CC: leveldb Differential Revision: https://reviews.facebook.net/D13287
28 lines
265 B
C++
28 lines
265 B
C++
#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() {
|
|
rocksdb::InstallStackTraceHandler();
|
|
|
|
f3();
|
|
|
|
return 0;
|
|
}
|