Boost logo

Boost Users :

From: Sharad Gaur (gaur_at_[hidden])
Date: 2008-01-31 07:12:03


Hi all,

Following piece of code is crashing for us on Sol86 with
Forte 11 compiler and stlport. Let me know if someone has
any idea about this.

SunOS insol8614 5.10 Generic_118855-33 i86pc i386 i86pc
CC: Sun C++ 5.8 Patch 121018-11 2007/05/02

int main()
{
    using namespace std;

    const std::string s("Test..................\n") ;
    ofstream file("hello.gz", ios::binary);
    boost::iostreams::filtering_ostream ofilter;
    ofilter.push(boost::iostreams::gzip_compressor()) ;
    ofilter.push(file);

    boost::archive::binary_oarchive oar(ofilter) ;

    oar << s;
}

Here is the stack trace.

std::basic_streambuf<char,std::char_traits<char> >::pubsync(0x8046730)
boost::iostreams::detail::flush_device_impl<boost::iostreams::ostream_tag>::flush<std::basic_ostream<char,std::char_traits<char> > >(t = CLASS)
boost::iostreams::flush<std::basic_ostream<char,std::char_traits<char> > >(t = CLASS)
boost::iostreams::detail::close_impl<boost::iostreams::any_tag>::close<std::basic_ostream<char,std::char_traits<char> > >(t = CLASS, which = 24)
boost::iostreams::close<boost::reference_wrapper<std::basic_ostream<char,std::char_traits<char> > > >(t = CLASS, which = 24)
boost::iostreams::detail::mode_adapter<boost::iostreams::output,std::basic_ostream<char,std::char_traits<char> > >::close(this = 0x80f56d8, which = 24)
boost::iostreams::detail::close_impl<boost::iostreams::closable_tag>::close<boost::iostreams::detail::mode_adapter<boost::iostreams::output,std::basic_ostream<char,std::char_traits<char> > > >(t = CLASS, which = 16)
boost::iostreams::close<boost::iostreams::detail::mode_adapter<boost::iostreams::output,std::basic_ostream<char,std::char_traits<char> > > >(t = CLASS, which = 16)
boost::iostreams::detail::device_wrapper_impl<boost::iostreams::any_tag>::close<boost::iostreams::detail::mode_adapter<boost::iostreams::output,std::basic_ostream<char,std::char_traits<char> > >,boost::iostreams::detail::linked_streambuf<char,std::char_traits<char> > >(dev = CLASS, _ARG2 = (nil), which = 16)
boost::iostreams::detail::concept_adapter<boost::iostreams::detail::mode_adapter<boost::iostreams::output,std::basic_ostream<char,std::char_traits<char> > > >::close<boost::iostreams::detail::linked_streambuf<char,std::char_traits<char> > >(this = 0x80f56d8, which = 16, dev = (nil))
boost::iostreams::detail::indirect_streambuf<boost::iostreams::detail::mode_adapter<boost::iostreams::output,std::basic_ostream<char,std::char_traits<char> > >,std::char_traits<char>,std::allocator<char>,boost::iostreams::output>::close(this = 0x80f56a0, which = 16)
boost::iostreams::detail::chain_base<boost::iostreams::chain<boost::iostreams::output,char,std::char_traits<char>,std::allocator<char> >,char,std::char_traits<char>,std::allocator<char>,boost::iostreams::output>::close(b = 0x80f56a0, m = 16)
boost::iostreams::detail::chain_base<boost::iostreams::chain<boost::iostreams::output,char,std::char_traits<char>,std::allocator<char> >,char,std::char_traits<char>,std::allocator<char>,boost::iostreams::output>::closer::operator()(this = 0x8046470, b = 0x80f56a0)
std::for_each<std::_List_iterator<boost::iostreams::detail::linked_streambuf<char,std::char_traits<char> >*,std::_Nonconst_traits<boost::iostreams::detail::linked_streambuf<char,std::char_traits<char> >*> >,boost::iostreams::detail::chain_base<boost::iostreams::chain<boost::iostreams::output,char,std::char_traits<char>,std::allocator<char> >,char,std::char_traits<char>,std::allocator<char>,boost::iostreams::output>::closer>(__first = STRUCT, __last = STRUCT, __f = STRUCT)
boost::iostreams::detail::chain_base<boost::iostreams::chain<boost::iostreams::output,char,std::char_traits<char>,std::allocator<char> >,char,std::char_traits<char>,std::allocator<char>,boost::iostreams::output>::chain_impl::close(this = 0x80b13e0)
boost::iostreams::detail::chain_base<boost::iostreams::chain<boost::iostreams::output,char,std::char_traits<char>,std::allocator<char> >,char,std::char_traits<char>,std::allocator<char>,boost::iostreams::output>::chain_impl::~chain_impl(this = 0x80b13e0)
boost::checked_delete<boost::iostreams::detail::chain_base<boost::iostreams::chain<boost::iostreams::output,char,std::char_traits<char>,std::allocator<char> >,char,std::char_traits<char>,std::allocator<char>,boost::iostreams::output>::chain_impl>(x = 0x80b13e0)
boost::detail::sp_counted_impl_p<boost::iostreams::detail::chain_base<boost::iostreams::chain<boost::iostreams::output,char,std::char_traits<char>,std::allocator<char> >,char,std::char_traits<char>,std::allocator<char>,boost::iostreams::output>::chain_impl>::dispose(this = 0x80b26a8)
boost::detail::sp_counted_base::release(this = 0x80b26a8)
boost::detail::shared_count::~shared_count(this = 0x80466c8)
boost::shared_ptr<boost::iostreams::detail::chain_base<boost::iostreams::chain<boost::iostreams::output,char,std::char_traits<char>,std::allocator<char> >,char,std::char_traits<char>,std::allocator<char>,boost::iostreams::output>::chain_impl>::~shared_ptr(0x80466c4)
boost::iostreams::detail::chain_base<boost::iostreams::chain<boost::iostreams::output,char,std::char_traits<char>,std::allocator<char> >,char,std::char_traits<char>,std::allocator<char>,boost::iostreams::output>::~chain_base(0x80466c4)
boost::iostreams::chain<boost::iostreams::output,char,std::char_traits<char>,std::allocator<char> >::~chain(0x80466c4)
boost::iostreams::detail::filtering_stream_base<boost::iostreams::chain<boost::iostreams::output,char,std::char_traits<char>,std::allocator<char> >,boost::iostreams::public_>::~filtering_stream_base(0x80466b8, 0x80b07b4)
boost::iostreams::filtering_stream<boost::iostreams::output,char,std::char_traits<char>,std::allocator<char>,boost::iostreams::public_>::~filtering_stream(this = 0x80466b8)
main()


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net