wofan / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

Stack Trace on Mac OS X for uncaught exception is not working. #120

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. On Mac OS X, compile the glog with either MacPorts' gcc47 or Apple's 
llvm-gcc42;
2. Write a small C++ program, InstallFailureSignalHandler at the beginning of 
main, and in some deep function call, throw an exception;
3. Compile the C++ program with the SAME compiler used in step 1 and link to 
glog, either statically or dynamically;
4. Run the binary.

What is the expected output? What do you see instead?
I've posted the output at (either crashes with uncaught exception or accessing 
null pointer):
http://stackoverflow.com/questions/9964839/backtracing-when-uncaught-exception-o
n-mac-osx

What version of the product are you using? On what operating system?
0.3.2, Mac OS X Lion

Please provide any additional information below.
I've tested the same thing on Linux machines, working correctly.  So it might 
be some Mac OS X specific problem.  I wonder if anyone can give me some hint on 
what I am missing here.  Thanks.

Original issue reported on code.google.com by likan...@gmail.com on 1 Apr 2012 at 8:13