Date: Mon, 2 Jun 2003 18:21:22 +0200 (CEST) From: Martin Blapp <mb@imp.ch> To: freebsd-current@freebsd.org Cc: kan@freebsd.org Subject: OpenOffice-devel: repeatable coredump with sun autodoc in libstd++ Message-ID: <20030602180313.S71313@cvs.imp.ch>
next in thread | raw e-mail | index | archive | help
Hi all, I'm still working to get OpenOffice1.1Beta2 ready, but am now stuck with a segfault. The compile currently aborts on many places where -frtti is used, so everybody is using -fno-rtti these days. But here I get serious trouble with autodoc ... For some strange reason it didn't happen with -frtti, it happens only with -fno-rtti. Segmentation fault (core dumped) dmake: Error code 139, while making '../../unxfbsd.pro/bin/OpenOffice.org1.1_Beta_2_SDK/docs/common/ref/module-ix.html' ---* RULES.MK *--- ERROR: Error 65280 occurred while making /usr/ports/editors/openoffice-devel-fixed/work/oo_644_src/odk/pack/gendocu fuchur# gdb /usr/ports/editors/openoffice-devel-fixed/work/oo_644_src/solver/644/unxfbsd.pro/bin/autodoc ./pack/gendocu/autodoc.core GNU gdb 5.2.1 (FreeBSD) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-undermydesk-freebsd"... Core was generated by `autodoc'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libkse.so.1...done. Loaded symbols for /usr/lib/libkse.so.1 Reading symbols from /usr/ports/editors/openoffice-devel-fixed/work/oo_644_src/solver/644/unxfbsd.pro/lib/libstlport_gcc.so...done. Loaded symbols for /usr/ports/editors/openoffice-devel-fixed/work/oo_644_src/solver/644/unxfbsd.pro/lib/libstlport_gcc.so Reading symbols from /usr/lib/libstdc++.so.4...done. Loaded symbols for /usr/lib/libstdc++.so.4 Reading symbols from /usr/lib/libm.so.2...done. Loaded symbols for /usr/lib/libm.so.2 Reading symbols from /usr/lib/libc.so.5...done. Loaded symbols for /usr/lib/libc.so.5 Reading symbols from /usr/libexec/ld-elf.so.1...done. Loaded symbols for /usr/libexec/ld-elf.so.1 #0 __dynamic_cast (src_ptr=0x826c9d0, src_type=0x815baa8, dst_type=0x815ba9c, src2dst=0) at /usr/src/contrib/libstdc++/libsupc++/tinfo.cc:696 696 whole_type->__do_dyncast (src2dst, __class_type_info::__contained_public, (gdb) bt #0 __dynamic_cast (src_ptr=0x826c9d0, src_type=0x815baa8, dst_type=0x815ba9c, src2dst=0) at /usr/src/contrib/libstdc++/libsupc++/tinfo.cc:696 #1 0x081399cd in csi::dsapi::SapiDocu_PE::SetCurSeeAlsoAtTagLinkText(ary::info::DocuToken&) (this=0x81a6500, let_drNewToken=@0x826c9d0) at /usr/ports/editors/openoffice-devel-fixed/work/oo_644_src/autodoc/source/parser_i/idoc/docu_pe2.cxx:393 #2 0x081394e0 in csi::dsapi::SapiDocu_PE::Process_Word(csi::dsapi::Tok_Word const&) (this=0x81a6500, i_rToken=@0x826c850) at d_token.hxx:101 #3 0x0813b58a in csi::dsapi::Tok_Word::Trigger(csi::dsapi::TokenInterpreter&) const (this=0x826c850, io_rInterpreter=@0xbfbfe080) at /usr/ports/editors/openoffice-devel-fixed/work/oo_644_src/autodoc/source/parser_i/idoc/tk_docw2.cxx:79 #4 0x08137e46 in csi::dsapi::SapiDocu_PE::ProcessToken(csi::dsapi::Token&) (this=0x81a6500, let_drToken=@0x826c850) at /usr/ports/editors/openoffice-devel-fixed/work/oo_644_src/autodoc/source/parser_i/idoc/docu_pe2.cxx:122 #5 0x08120643 in csi::uidl::TokenDistributor::Documentation::Receive(csi::dsapi::Token&) (this=0x81b3584, let_drToken=@0x826c850) at template/dyn.hxx:218 #6 0x08136720 in csi::dsapi::Context_Docu::PassNewToken() (this=0x0) at template/dyn.hxx:237 #7 0x0811cf09 in TokenParse2::GetNextToken() (this=0x821ff90) at /usr/ports/editors/openoffice-devel-fixed/work/oo_644_src/autodoc/source/parser_i/tokens/tkp2.cxx:90 #8 0x0811fba5 in csi::uidl::TokenDistributor::TradeToken() (this=0x81b3544) at /usr/ports/editors/openoffice-devel-fixed/work/oo_644_src/autodoc/source/parser_i/idl/distrib.cxx:102 #9 0x081343bf in autodoc::FileParsePerformers::ParseFile(char const*) (this=0x81b3500, i_sFullPath=0x81c8000 "./../../unxfbsd.pro/bin/OpenOffice.org1.1_Beta_2_SDK/idl/com/sun/star/beans/PropertySetInfoChangeEvent.idl") at /usr/ports/editors/openoffice-devel-fixed/work/oo_644_src/autodoc/source/parser_i/idl/unoidl.cxx:178 #10 0x08133e5c in autodoc::IdlParser::Run(autodoc::FileCollector_Ifc const&) (this=0x81b8670, i_rFiles=@0x28233c60) at template/dyn.hxx:218 #11 0x08063de5 in autodoc::command::run::Parser::Perform() (this=0xbfbfe3d0) at /usr/ports/editors/openoffice-devel-fixed/work/oo_644_src/autodoc/source/exes/adc_uni/cmd_run.cxx:156 #12 0x08061a58 in autodoc::command::Parse::do_Run() const (this=0x81b0180) at /usr/ports/editors/openoffice-devel-fixed/work/oo_644_src/autodoc/source/exes/adc_uni/adc_cmd_parse.cxx:267 #13 0x0805e7af in autodoc::CommandLine::Run() const (this=0xbfbfe430) at adc_cmd.hxx:135 #14 0x0805e44c in main (argc=13, argv=0xbfbfe490) at /usr/ports/editors/openoffice-devel-fixed/work/oo_644_src/autodoc/source/exes/adc_uni/main.cxx:83 #15 0x0805e335 in _start () (gdb) frame 0 #0 __dynamic_cast (src_ptr=0x826c9d0, src_type=0x815baa8, dst_type=0x815ba9c, src2dst=0) at /usr/src/contrib/libstdc++/libsupc++/tinfo.cc:696 696 whole_type->__do_dyncast (src2dst, __class_type_info::__contained_public, (gdb) list 691 const void *whole_ptr = 692 adjust_pointer <void> (src_ptr, prefix->whole_object); 693 const __class_type_info *whole_type = prefix->whole_type; 694 __class_type_info::__dyncast_result result; 695 696 whole_type->__do_dyncast (src2dst, __class_type_info::__contained_public, 697 dst_type, whole_ptr, src_type, src_ptr, result); 698 if (!result.dst_ptr) 699 return NULL; 700 if (contained_public_p (result.dst2src)) (gdb) p whole_type $1 = (const __class_type_info *) 0x0 (gdb) p *whole_type Cannot access memory at address 0x0 Martin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030602180313.S71313>