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

MacPorts noreply at macports.org
Mon May 9 00:55:26 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@…):

 unfortunately no, it does not help :(
 I still get those crashes unless I use g++-4.2

 I suspect a problem with locales and utf8
 here is the backtrace of the crash

 (gdb) r
 Starting program: /private/tmp/t
 Reading symbols for shared libraries +++. done
 t(7424) malloc: *** error for object 0x100158ae0: pointer being freed was
 not allocated
 *** set a breakpoint in malloc_error_break to debug

 Program received signal SIGABRT, Aborted.
 0x00007fff88cab5d6 in __kill ()
 (gdb) bt
 #0  0x00007fff88cab5d6 in __kill ()
 #1  0x00007fff88d4bcd6 in abort ()
 #2  0x00007fff88c636b5 in free ()
 #3  0x00000001000e9735 in std::string::assign ()
 #4  0x000000010001182c in std::string::operator= () at
 #5  0x000000010001182c in
 boost::program_options::option_description::set_name (this=0x100300180,
 _name=<value temporarily unavailable, due to optimizations>) at
 #6  0x0000000100011940 in
 (this=0x100300180, name=0x100027bcc "help", s=0x100300170,
 description=<value temporarily unavailable, due to optimizations>) at
 #7  0x0000000100014ed2 in
 shared_ptr<boost::program_options::option_description> [inlined] () at :67
 #8  0x0000000100014ed2 in
 (this=0x7fff5fbff9f0, name=0x100027bcc "help", description=0x100027bb7
 "produce help message") at
 #9  0x0000000100001021 in main () at utf8_codecvt_facet.hpp:111

 what do you think ?

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

More information about the macports-tickets mailing list