[MacPorts] #29394: in boost 1.46.1 program_options lib is unusable in macports

MacPorts noreply at macports.org
Mon May 9 01:01:35 PDT 2011


#29394: in boost 1.46.1  program_options lib is unusable in macports
--------------------------------------------------+-------------------------
 Reporter:  christophe.prudhomme@…                |       Owner:  adfernandes@…           
     Type:  defect                                |      Status:  new                     
 Priority:  Normal                                |   Milestone:                          
Component:  ports                                 |     Version:  1.9.2                   
 Keywords:  boost1.46 program_options             |        Port:  boost                   
--------------------------------------------------+-------------------------

Comment(by christophe.prudhomme@…):

 Interestingly here is something else:

  * with static lib
 it crashes whatever I do ( no arguments, --help, --compression=1...)
 the backtrace is the one in the previous message

  * with dylib
 it crashes only when I pass --help


 In the last case The problem is when the options_description data
 structure is getting passed std::cout
 here is the backtrace in that case
 {{{
 (gdb) bt
 #0  0x00007fff88cab5d6 in __kill ()
 #1  0x00007fff88d4bcd6 in abort ()
 #2  0x00007fff88c636b5 in free ()
 #3  0x0000000100114a83 in std::basic_stringbuf<char,
 std::char_traits<char>, std::allocator<char> >::overflow ()
 #4  0x00000001001191fc in std::basic_streambuf<char,
 std::char_traits<char> >::xsputn ()
 #5  0x00007fff84fcdae4 in std::__ostream_write<char,
 std::char_traits<char> > ()
 #6  0x00007fff84fcbb98 in std::__ostream_insert<char,
 std::char_traits<char> > ()
 #7  0x000000010004eb3d in
 boost::program_options::options_description::print ()
 #8  0x000000010004f0b7 in boost::program_options::operator<< ()
 #9  0x0000000100001680 in main ()
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/29394#comment:8>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list