[pkg-boost-devel] Bug#653922: libboost-thread-1.46: boost::thraed.interrupta() sometimes hangs and does not return to caller
Tobias Frost
tobi at coldtobi.de
Sun Jan 1 14:57:56 UTC 2012
Package: libboost-thread1.46.1
Version: 1.46.1-7+b1
Severity: normal
Hallo,
for solarpowerlog I implemented a working thread to schedule tasks to be executed in a specified time.
It is receiving its work by a pushing it to a list and then calling thread.interrupt(). [1] line 79
This scheme works very fine since boost 1.38, but on a recent recompile I found that occasionally
(like the programm running several hours) the flow stopped.
Debugging the issue I found that the the programm halted always "inside" of libboost, obviously
trying to obtain some mutex.
The thread (in [1] at line 82ff) is never interrupted in this case.
Recompilation with 1.48 fixes the problem (at least after 10hours for 10 instances), so I assume only 1.46 is affected.
[1] http://solarpowerlog.git.sourceforge.net/git/gitweb.cgi?p=solarpowerlog/solarpowerlog;a=blob;f=src/interfaces/CTimedWork.cpp;h=b5c7f711ba08a75c9183008e0bf2400cff0e89c5;hb=HEAD
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.0.0-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libboost-thread1.46.1 depends on:
ii libc6 2.13-21
ii libgcc1 1:4.6.2-4
ii libstdc++6 4.6.2-4
libboost-thread1.46.1 recommends no packages.
libboost-thread1.46.1 suggests no packages.
-- no debconf information
More information about the pkg-boost-devel
mailing list