FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

LinkBack Thread Tools
Old 04-05-2010, 03:43 AM
Miles Bader
Default 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 ()

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'



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

To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100405034326.17348.67477.reportbug@dhlpc061.dev. necel.com">http://lists.debian.org/20100405034326.17348.67477.reportbug@dhlpc061.dev. necel.com

Thread Tools

All times are GMT. The time now is 07:14 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org