[Boost-bugs] [Boost C++ Libraries] #2309: Lack of g++ symbol visibility support in Boost.Thread

Subject: [Boost-bugs] [Boost C++ Libraries] #2309: Lack of g++ symbol visibility support in Boost.Thread
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-09-09 08:13:00


#2309: Lack of g++ symbol visibility support in Boost.Thread
----------------------------------------+-----------------------------------
 Reporter: rbock_at_[hidden] | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: Boost 1.37.0 | Component: thread
  Version: Boost 1.36.0 | Severity: Problem
 Keywords: visibility catch exception |
----------------------------------------+-----------------------------------
 Compiling code which includes boost/thread.hpp with

 g++ -fvisibility=hidden

 leads to a lack of visibility of symbols inside Boost.Thread. As a result,
 boost::thread_interrupted exception cannot be caught in the client code.

 The attached example yields

 Thread 0x60b050 caught something else
 Thread 0x60b3e0 caught something else

 instead of

 Thread 0x60b050 got interrupted
 Thread 0x60b3e0 got interrupted

 More information on this topic can be found in the respective thread on
 boost:users mailing list, especially the following two postings:

 http://lists.boost.org/boost-users/2008/09/40268.php
 http://lists.boost.org/boost-users/2008/09/40270.php

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2309>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC