rundel/carto-generator — Issue #13: Segfault under Ubuntu 10.04
Author: wDevil
Created: 2012-01-28 22:22:09+00:00
State: open

Boost version: 1.48 build from src.

Try to parse test.xml from folder test in carto-generator project and have segfault:

$ ~/src/carto-generator/example ~/src/carto-generator/tests/test.xml ./test.mml
Segmentation fault

valgrind output: https://gist.github.com/567dd3ec2c2a65466f5f

head of trace from gdb:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff73fc05f in std::basic_string, std::allocator >::basic_string(std::string const&) () from /usr/lib/libstdc++.so.6

#0 0x00007ffff73fc05f in std::basic_string, std::allocator >::basic_string(std::string const&) () from /usr/lib/libstdc++.so.6
#1 0x00000000004b48e8 in bool boost::spirit::karma::rule, std::string ()(), boost::spirit::unused_type, boost::spirit::unused_type, boost::spirit::unused_type>::generate, boost::fusion::vector0 >, boost::spirit::unused_type, boost::optional >(boost::spirit::karma::detail::output_iterator, mpl_::int_<15>, boost::spirit::unused_type>&, boost::spirit::context, boost::fusion::vector0 >&, boost::spirit::unused_type const&, boost::optional const&) const (this=0x7fffffffd920, sink=..., delim=..., attr=...)
at /usr/local/include/boost/spirit/home/karma/nonterminal/rule.hpp:285
#2 0x00000000004b379b in bool boost::spirit::karma::reference, std::string ()(), boost::spirit::unused_type, boost::spirit::unused_type, boost::spirit::unused_type> const>::generate, mpl_::int_<15>, boost::spirit::unused_type>, boost::spirit::context, boost::fusion::vector0 >, boost::spirit::unused_type, boost::optional >(boost::spirit::karma::detail::output_iterator, mpl_::int_<15>, boost::spirit::unused_type>&, boost::spirit::context, boost::fusion::vector0 >&, boost::spirit::unused_type const&, boost::optional const&) const (this=0x8ba358, sink=..., context=..., delim=..., attr=...) at /usr/local/include/boost/spirit/home/karma/reference.hpp:46
#3 0x00000000004b269e in bool boost::spirit::karma::omit_directive, std::string ()(), boost::spirit::unused_type, boost::spirit::unused_type, boost::spirit::unused_type> const>, true>::generate, mpl_::int_<15>, boost::spirit::unused_type>, boost::spirit::context, boost::fusion::vector0 >, boost::spirit::unused_type, boost::optional >(boost::spirit::karma::detail::output_iterator, mpl_::int_<15>, boost::spirit::unused_type>&, boost::spirit::context, boost::fusion::vector0 >&, boost::spirit::unused_type const&, boost::optional const&) const (this=0x8ba358, sink=..., ctx=..., d=..., attr=...)
at /usr/local/include/boost/spirit/home/karma/directive/omit.hpp:80