Boost logo

Boost Users :

Subject: Re: [Boost-users] [Thread] Interrupting a thread causes a segmentation fault
From: Viatcheslav.Sysoltsev_at_[hidden]
Date: 2011-02-17 03:42:53


> I'm new to the Boost libraries and I've been attempting to implement
> basic multithreading using the Boost Thread library. I'm currently
> experiencing a problem: when I interrupt a thread my program crashes
> with a segmentation fault. I've done quite a bit of research on the
> internet regarding this problem and, although similar problems have been
> reported before, none of the solutions have worked for me (a number of
> people have indicated that interrupts work when linking with the static
> library, just not with the dynamic library, but I was using the static
> library to begin with).
>
> Technical details are:
> Boost version: 1.45.0
> Compiler: MinGW 4.4.1
> IDE: Code Blocks 10.05
>

I believe the test programm is all right, it works well with boost 1.36
and 1.45 on linux with gcc 4.3.2 with both dynamic and static boost
linkage. Check out the stack trace at the moment of failure, it shall give
good insight into kind of problem.

-- Slava


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net