#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 /usr/include/c++/4.2.1/bits/basic_string.h:156 #5 0x000000010001182c in boost::program_options::option_description::set_name (this=0x100300180, _name=<value temporarily unavailable, due to optimizations>) at libs/program_options/src/options_description.cpp:156 #6 0x0000000100011940 in boost::program_options::option_description::option_description (this=0x100300180, name=0x100027bcc "help", s=0x100300170, description=<value temporarily unavailable, due to optimizations>) at libs/program_options/src/options_description.cpp:66 #7 0x0000000100014ed2 in shared_ptr<boost::program_options::option_description> [inlined] () at :67 #8 0x0000000100014ed2 in boost::program_options::options_description_easy_init::operator() (this=0x7fff5fbff9f0, name=0x100027bcc "help", description=0x100027bb7 "produce help message") at libs/program_options/src/options_description.cpp:206 #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