Bug#576485: libstdc++: std::thread completely broken
Package: libstdc++6
Version: 4.5-20100227-1
Severity: normal
File: libstdc++
The following program:
#include <iostream>
#include <thread>
int g = 0;
void f ()
{
g++;
}
int main ()
{
std::thread t (f);
t.join ();
std::cout << "after joing, g = " << g << std::endl;
return 0;
}
Dies with an exception:
$ g++-4.5 --version
g++-4.5 (Debian 4.5-20100227-1) 4.5.0 20100227 (experimental) [trunk
revision 157109]
$ g++-4.5 -std=c++0x -o t t.cc
$ ./t
terminate called after throwing an instance of 'std::system_error'
what():
Aborted
Thanks,
-Miles
-- System Information:
Debian Release: squeeze/sid
APT prefers oldstable
APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'stable'), (50, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.33-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libstdc++6 depends on:
ii gcc-4.5-base 4.5-20100227-1 The GNU Compiler Collection (base
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.5-20100227-1 GCC support library
libstdc++6 recommends no packages.
libstdc++6 suggests no packages.
-- no debconf information
Reply to: