On Wed, May 18, 2011 at 02:29:53PM +0200, Gabriele Mondada wrote: > Hello, > On debian squeeze i686, gnash 0.8.9 from tarball, with: > > ./configure --prefix=/usr/xxx --disable-menus --enable-renderer=agg > --enable-gui=fb --disable-plugins --disable-sound --enable-media=none > --enable-input=touchscreen > > I got segmentation fault by launching fb-gnash. Here is the backtrace: > > Program received signal SIGSEGV, Segmentation fault. > 0xb76fbf85 in std::basic_string<char, std::char_traits<char>, > std::allocator<char> >::basic_string(std::string const&) () from > /usr/lib/libstdc++.so.6 > (gdb) bt > #0 0xb76fbf85 in std::basic_string<char, std::char_traits<char>, > std::allocator<char> >::basic_string(std::string const&) () from > /usr/lib/libstdc++.so.6 > #1 0x0805fb33 in holder (p=<value optimized out>) at > /usr/include/boost/any.hpp:121 > #2 any<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > ( > p=<value optimized out>) at /usr/include/boost/any.hpp:46 > #3 boost::program_options::typed_value<std::string, char>::default_value ( > p=<value optimized out>) > at /usr/include/boost/program_options/value_semantic.hpp:197 > #4 getSupportedOptions (p=<value optimized out>) at ../gnash.cpp:441 > #5 0x08064327 in main (argc=1, argv=0xbffffce4) at ../gnash.cpp:98
Looks similar to: https://savannah.gnu.org/bugs/index.php?33145 Can it be you're linking to 2 different versions of libstdc++ ? > By removing pretty all options in getSupportedOptions(), except "input-file", > there is no more segfault but an other error: > > Error: Non-existent media handler specified > > Maybe due to --enable-media=none > > Workaround: remove the following lines in Player.cpp: > > if (!_mediaHandler.get()) { > boost::format fmt = > boost::format(_("Non-existent media handler %1% specified")) > % _media; > throw GnashException(fmt.str()); > } > > What can I do to help fixing this in the main-line? File a bug on savannah about it and attach a patch. Note we'd have retain the "Non-existent media handler" when someone specifies "-M whatever". In this case _mediaHandler is set asking the MediaFactory for the media handler named "" (empty string) which means to get the default. Only in this case we want to avoid the exception. --strk; () Free GIS & Flash consultant/developer /\ http://strk.keybit.net/services.html _______________________________________________ Gnash-dev mailing list [email protected] https://lists.gnu.org/mailman/listinfo/gnash-dev

