mechmocha / google-breakpad

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

Does google-breakpad support capture log in multiple threads. #565

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.There is two threads in one process. Thread A as have exceptionhandler.
Thread B as have not exceptionhandler object. Thread A calls Thread B.
2.Breakpad can capture log when Thread A has some runtime exceptions.
But Breakpad can't capture log when Thread B has some runtime exceptions.
========
What is the expected output? What do you see instead?
The expected output is that Thread A's exceptionhandler can capture Thread B's 
runtime exceptions.

My code is basic in linux as follow:
/*start*/
google_breakpad::MinidumpDescriptor descriptor("/sdcard/log_dump");
google_breakpad::ExceptionHandler eh(descriptor, NULL, DumpCallback, NULL, 
true, -1);
/*end*/

========
Please use labels and text to provide additional information.
Cross-thread capture log.

Original issue reported on code.google.com by bloodstr@gmail.com on 11 Feb 2014 at 9:50

GoogleCodeExporter commented 9 years ago
Yes, in general this should work fine. The exception handler simply registers a 
signal handler, which is process-wide.

Original comment by ted.mielczarek on 11 Feb 2014 at 1:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The reason is my exception Handler is local variable.
Expand handler scope then the issue is fixed.

Original comment by bloodstr@gmail.com on 12 Feb 2014 at 6:57

GoogleCodeExporter commented 9 years ago

Original comment by ted.mielczarek on 12 Feb 2014 at 4:40