id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 2436,[spirit2] segfault upon grammar instantiation,vallentin@…,Joel de Guzman,"I recently switched from g++ 4.0 to g++ 4.2 and now get this warning. I am using the 1.37 beta. {{{ ***/boost-1_37/boost/spirit/home/support/nonterminal/detail/nonterminal_fcall.hpp:53: warning: missing braces around initializer for 'boost::spirit::parameterized_nonterminal, std::allocator > >, void ()(std::basic_string, std::allocator >), vast::bro::bro_white_space<__gnu_cxx::__normal_iterator, std::allocator > > >, boost::fusion::unused_type>, boost::fusion::vector >, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_> >' }}} Later on, my application segfaults. Here is the stack trace: {{{ Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: 13 at address: 0x00000000 0x8fe18b42 in __dyld_misaligned_stack_error () (gdb) bt #0 0x8fe18b42 in __dyld_misaligned_stack_error () #1 0xbfffdf98 in ?? () #2 0x036f2993 in std::_Rb_tree_insert_and_rebalance () #3 0x00109c5b in std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::_M_insert (this=0xbfffdf34, __x=0x0, __p=0x3802b30, __v=@0xbfffdf94) at /Users/mavam/code/workspace/vast/build/root/include/boost-1_37/boost/spirit/home/qi/nonterminal/detail/rule.hpp:116 #4 0x00109e10 in std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::_M_insert_unique (this=0xbfffdf34, __v=@0xbfffdf94) at /Users/mavam/code/workspace/vast/build/root/include/boost-1_37/boost/spirit/home/qi/nonterminal/detail/rule.hpp:116 #5 0x00109e88 in std::map, std::less, std::allocator > > >::insert (this=0xbfffdf34, __x=@0xbfffdf94) at /Users/mavam/code/workspace/vast/build/root/include/boost-1_37/boost/spirit/home/qi/nonterminal/detail/rule.hpp:116 #6 0x0012633a in vast::meta::vast_basic_type::vast_basic_type (this=) at /Users/mavam/code/workspace/vast/build/root/include/boost-1_37/boost/spirit/home/qi/nonterminal/detail/rule.hpp:116 #7 0x00126e75 in vast::meta::vast_type<__gnu_cxx::__normal_iterator >::vast_type (this=, sym_type=) at /Users/mavam/code/workspace/vast/build/root/include/boost-1_37/boost/spirit/home/qi/nonterminal/detail/rule.hpp:116 #8 0x0012849c in vast::meta::vast_grammar<__gnu_cxx::__normal_iterator >::vast_grammar (this=0xbfffe73c, events=@0xbfffe928) at /Users/mavam/code/workspace/vast/build/root/include/boost-1_37/boost/spirit/home/qi/nonterminal/detail/rule.hpp:116 #9 0x00145def in vast::meta::Specification::load (this=, filename=) at /opt/local/include/gcc42/c++/bits/stl_algobase.h:401 #10 0x0005d4eb in main (argc=, argv=) at /Users/mavam/code/workspace/vast/build/root/include/boost-1_37/boost/thread/detail/thread.hpp:543 }}} Let me know if you need more context from my application, I am not sure where to start from here. Best regards, Matthias",Bugs,closed,Boost 1.37.0,spirit,Boost Development Trunk,Showstopper,fixed,,