bug-libsigsegv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-libsigsegv] Libsigsegv with threads


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:
> I am a C++ developer and now I have an application that's is having some

> 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.
>
> Do you have a small example about how to trap the stack overflow with threads?

> 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.

Yes, the libsigsegv/README says so. But I have never created a sample program

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

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]