|
From: | Bruno Haible |
Subject: | Re: [bug-libsigsegv] Libsigsegv with threads |
Date: | Thu, 17 Jan 2013 23:22 +0100 |
User-agent: | KMail/4.8.5 (Linux/3.4.11-2.16-desktop; KDE/4.8.5; x86_64; ; ) |
Hello,
Eduardo Campos wrote: > stack overflow problems. This application is multithread and I need to knows > which threads are causing stackoverflow. I found your library (Libsigsegv) > but I still can't trap it. > You said in your page that it's necessary to use theĀ pthread_sigmask and the > pthread_setcancelstate, but I don't know which mask or cancel state to use. with C++ and multiple threads and no longjmp(). If you could write and contribute such a sample program, that would be useful. You can use tests/sigsegv1.c and then tests/stackoverflow1.c as a starting point (catching normal SIGSEGV is easier than catching stack overflow; I would try the simpler case first).
This mailing list (bug-libsigsegv) may be able to help you on details.
> I still can't trap it.
You mean, your handler is not invoked? Show the entire program; someone might spot the issue.
Bruno
|
[Prev in Thread] | Current Thread | [Next in Thread] |