Hi, I just configured branch as follows (Ubuntu 12.10):
./configure '--prefix=/usr/local/lyx-branch' '--with-version-suffix=-branch' '--enable-debug' '--enable-stdlib-debug' '--enable-threads' '--without-included-boost' '--enable-dynamic' and the outcome was this: $ ./src/lyx terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted (core dumped) See attachment for details. Is this known ? Any workaround ? How is LyX supposed to be configured for branch development ? Thanks, T.
$ ./src/lyx terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted (core dumped) tommaso@mobiletom:~/lyx-trunk-ws/lyx-2.0.x$ tommaso@mobiletom:~/lyx-trunk-ws/lyx-2.0.x$ gdb ./src/lyx GNU gdb (GDB) 7.5-ubuntu Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/tommaso/lyx-trunk-ws/lyx-2.0.x/src/lyx...done. (gdb) run Starting program: /home/tommaso/lyx-trunk-ws/lyx-2.0.x/src/lyx [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Program received signal SIGABRT, Aborted. 0x00007ffff545a425 in __GI_raise (sig=<optimised out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. (gdb) bt #0 0x00007ffff545a425 in __GI_raise (sig=<optimised out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007ffff545db8b in __GI_abort () at abort.c:91 #2 0x00007ffff5d56e2d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #3 0x00007ffff5d54f26 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #4 0x00007ffff5d54f53 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #5 0x00007ffff5d551c6 in __cxa_rethrow () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #6 0x00000000005685fb in boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::match_imp ( this=this@entry=0x7fffffffb510) at /usr/include/boost/regex/v4/perl_matcher_common.hpp:219 #7 0x0000000000568662 in match (this=0x7fffffffb510) at /usr/include/boost/regex/v4/perl_matcher_common.hpp:180 #8 boost::regex_match<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > (first=..., last=..., m=..., e=..., flags=flags@entry=boost::regex_constants::match_default) at /usr/include/boost/regex/v4/regex_match.hpp:50 #9 0x0000000000af9bfa in regex_match<std::char_traits<char>, std::allocator<char>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, char, boost::regex_traits<char> > ( flags=boost::regex_constants::match_default, e=..., m=..., s=...) at /usr/include/boost/regex/v4/regex_match.hpp:82 #10 lyx::support::replaceEnvironmentPath (path=...) at filetools.cpp:571 #11 0x0000000000afae66 in lyx::support::fileSearch (path=..., name=..., ext=..., mode=lyx::support::must_exist) at filetools.cpp:224 #12 0x0000000000b1418c in buildDirs (system_support_dir=..., build_support_dir=..., top_build_dir_location=lyx::support::top_build_dir_is_one_level_up, abs_binary=...) at Package.cpp:308 #13 lyx::support::Package::Package (this=0x7fffffffc7e0, command_line_arg0=..., command_line_system_support_dir=..., command_line_user_support_dir=..., top_build_dir_location=lyx::support::top_build_dir_is_one_level_up) at Package.cpp:129 #14 0x0000000000b162fe in lyx::support::init_package (command_line_arg0=..., command_line_system_support_dir=..., command_line_user_support_dir=..., top_build_dir_location=<optimised out>) at Package.cpp:63 #15 0x0000000000595eee in lyx::LyX::exec (this=0x7fffffffdde0, argc=@0x7fffffffdddc: 1, argv=0x7fffffffded8) at LyX.cpp:271 #16 0x0000000000442784 in main (argc=1, argv=0x7fffffffded8) at main.cpp:42