[Libreoffice] Debug compilation fails in sal module
Julien Nabet
serval2412 at yahoo.fr
Mon Jun 27 14:27:02 PDT 2011
Hello,
With the help of moggi in IRC, i got this :
Reading symbols from
/home/maryline/compile-libreoffice/libo/clone/ure/sal/unxlngi6/bin/cppunittester...done.
(gdb) run
Starting program:
/home/maryline/compile-libreoffice/libo/clone/ure/sal/unxlngi6/bin/cppunittester
../../../unxlngi6/lib/libosl_process.so
[Thread debugging using libthread_db enabled]
*** glibc detected *** Error: File
/home/maryline/compile-libreoffice/libo/clone/ure/sal/cpprt/operators_new_delete.cxx,
Line 96: operator delete mismatch
[New Thread 0xb7bbdb70 (LWP 24474)]
[New Thread 0xb73acb70 (LWP 24475)]
[Thread 0xb73acb70 (LWP 24475) exited]
Program received signal SIGABRT, Aborted.
0xb7fe2424 in __kernel_vsyscall ()
(gdb) bt full
#0 0xb7fe2424 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7c34911 in raise (sig=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
resultvar = <value optimized out>
pid = -1210712076
selftid = 24471
#2 0xb7c37d42 in abort () at abort.c:92
act = {__sigaction_handler = {sa_handler = 0xb7d5fff4,
sa_sigaction = 0xb7d5fff4}, sa_mask = {__val = {3063940352, 3221204208,
381, 192, 3063939088, 3084255220, 3063939088, 0, 0,
3221204268, 3063949064, 8008, 3063939088, 3084255220, 3063939088,
3063940352, 3221204268, 3083310045, 180, 3063940352,
3084255220, 20, 3221204428, 3083675847, 3063940728, 3063940728, 180,
16384, 3084251200, 0, 3084895800, 27}}, sa_flags = 25,
sa_restorer = 0x17}
sigs = {__val = {32, 0 <repeats 31 times>}}
#3 0xb7c6a9d5 in __libc_message (do_abort=2, fmt=0xb7d3fa70 "*** glibc
detected *** %s: %s: 0x%s ***\n")
at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
ap = <value optimized out>
fd = 7
on_2 = <value optimized out>
list = <value optimized out>
nlist = <value optimized out>
cp = <value optimized out>
written = false
#4 0xb7c74ac1 in malloc_printerr (action=<value optimized out>, str=0x6
<Address 0x6 out of bounds>, ptr=0xb7c02cd0) at malloc.c:6283
buf = "b7c02cd0"
cp = <value optimized out>
#5 0xb7c76328 in _int_free (av=<value optimized out>, p=<value
optimized out>) at malloc.c:4795
size = 0
nextchunk = 0x5f97
nextsize = 3087006400
prevsize = <value optimized out>
bck = <value optimized out>
fwd = <value optimized out>
errstr = 0x6 <Address 0x6 out of bounds>
__func__ = "_int_free"
#6 0xb7c793dd in __libc_free (mem=0xb7c02cd0) at malloc.c:3738
ar_ptr = 0xb7d613c0
p = 0x6
#7 0xb7f1e92a in rtl_freeMemory_SYSTEM (p=0xb7c02cd0) at alloc_global.c:301
No locals.
#8 0xb7f1e9c4 in rtl_freeMemory (p=0xb7c02cd0) at alloc_global.c:371
No locals.
#9 0x0804e1e9 in deallocate (p=0xb7c02cd8, rTraits=...)
at
/home/maryline/compile-libreoffice/libo/clone/ure/sal/cpprt/operators_new_delete.cxx:184
No locals.
#10 0x0804e237 in operator delete (p=0xb7c02cd8)
at
/home/maryline/compile-libreoffice/libo/clone/ure/sal/cpprt/operators_new_delete.cxx:201
No locals.
#11 0x0804d7c3 in __gnu_cxx::new_allocator<char>::deallocate
(this=0xbfffb5ab, __p=0xb7c02cd8 "")
at /usr/include/c++/4.6/ext/new_allocator.h:98
No locals.
#12 0x0804cd9d in std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_Rep::_M_destroy (this=0xb7c02cd8, __a=...)
at /usr/include/c++/4.6/bits/basic_string.tcc:451
__size = 13
#13 0x0804c78e in std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_Rep::_M_dispose (this=0xb7c02cd8, __a=...)
at /usr/include/c++/4.6/bits/basic_string.h:244
No locals.
#14 0x0804d5f7 in std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::reserve (this=0xbfffb7c0, __res=17)
at /usr/include/c++/4.6/bits/basic_string.tcc:513
__a = {<__gnu_cxx::new_allocator<char>> = {<No data fields>},
<No data fields>}
__tmp = 0x805cc24 ""
#15 0x0804d721 in std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::append (this=0xbfffb7c0,
__s=0x805aaa8 "SYSTEM_LIBXSLT=NO", __n=17) at
/usr/include/c++/4.6/bits/basic_string.tcc:310
__len = 17
#16 0xb7e082f8 in std::basic_istream<char, std::char_traits<char> >&
std::getline<char, std::char_traits<char>, std::allocator<char>
>(std::basic_istream<char, std::char_traits<char> >&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >&,
char) ()
from
/home/maryline/compile-libreoffice/libo/solver/350/unxlngi6/lib/libstdc++.so.6
No symbol table info available.
#17 0xb7be4e67 in Test_osl_executeProcess::read_child_environment
(this=0x8053148, env_container=0xbfffb868)
at
/home/maryline/compile-libreoffice/libo/clone/ure/sal/qa/osl/process/osl_process.cxx:480
temp_file_name = {pData = 0x805a918}
file = {<std::basic_istream<char, std::char_traits<char> >> =
{<std::basic_ios<char, std::char_traits<char> >> = {<std::ios_base> =
{<No data fields>}, _M_tie = 0x0, _M_fill = 0 '\000', _M_fill_init =
false, _M_streambuf = 0xbfffb6b0, _M_ctype = 0xb7e8fc00,
_M_num_put = 0x0, _M_num_get = 0x0}, _vptr.basic_istream
= 0xb7c0258c, _M_gcount = 0},
_M_filebuf = {<std::basic_streambuf<char,
std::char_traits<char> >> = {_vptr.basic_streambuf = 0xb7c02608,
_M_in_beg = 0x805aaa8 "SYSTEM_LIBXSLT=NO", _M_in_cur =
0x805aaa8 "SYSTEM_LIBXSLT=NO", _M_in_end = 0x805caa7 "",
_M_out_beg = 0x0, _M_out_cur = 0x0, _M_out_end = 0x0,
_M_buf_locale = {static none = 0, static ctype = 1,
static numeric = 2, static collate = 4, static time =
8, static monetary = 16, static messages = 32, static all = 63,
_M_impl = 0xb7e8fa74, static _S_classic = <optimized
out>, static _S_global = <optimized out>,
static _S_categories = <optimized out>, static _S_once
= <optimized out>}}, _M_lock = {__data = {__lock = 0, __count = 0,
__owner = 0, __kind = 0, __nusers = 0, {__spins = 0,
__list = {__next = 0x0}}}, __size = '\000' <repeats 23 times>,
__align = 0}, _M_file = {_M_cfile = 0x805a938,
_M_cfile_created = true}, _M_mode = std::_S_in, _M_state_beg = {__count
= 0,
__value = {__wch = 0, __wchb = "\000\000\000"}},
_M_state_cur = {__count = 0, __value = {__wch = 0,
__wchb = "\000\000\000"}}, _M_state_last = {__count =
0, __value = {__wch = 0, __wchb = "\000\000\000"}},
_M_buf = 0x805aaa8 "SYSTEM_LIBXSLT=NO", _M_buf_size = 8192,
_M_buf_allocated = true, _M_reading = true, _M_writing = false,
_M_pback = 0 '\000', _M_pback_cur_save = 0x0,
_M_pback_end_save = 0x0, _M_pback_init = false, _M_codecvt = 0xb7e8fe20,
_M_ext_buf = 0x0, _M_ext_buf_size = 0, _M_ext_next = 0x0,
_M_ext_end = 0x0}}
line = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> =
{<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0xb7c02ce4 ""}}
#18 0xb7be5013 in Test_osl_executeProcess::compare_environments
(this=0x8053148)
at
/home/maryline/compile-libreoffice/libo/clone/ure/sal/qa/osl/process/osl_process.cxx:495
parent_env = {<std::__cxx1998::vector<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
rtl::Allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > >> =
{<std::__cxx1998::_Vector_base<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
rtl::Allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > >> = {
_M_impl = {<rtl::Allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >> = {<No data fields>},
_M_start = 0x8059278, _M_finish = 0x805979c,
_M_end_of_storage = 0x8059a78}}, <No data fields>},
<__gnu_debug::_Safe_sequence<std::__debug::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, rtl::Allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > >> =
{<__gnu_debug::_Safe_sequence_base> = {_M_iterators = 0x0,
_M_const_iterators = 0x0, _M_version = 11}, <No data fields>},
_M_guaranteed_capacity = 329}
child_env = {<std::__cxx1998::vector<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
rtl::Allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > >> =
{<std::__cxx1998::_Vector_base<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
rtl::Allocator<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > >> = {
_M_impl = {<rtl::Allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > >> = {<No data fields>},
_M_start = 0x0, _M_finish = 0x0,
_M_end_of_storage = 0x0}}, <No data fields>},
<__gnu_debug::_Safe_sequence<std::__debug::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, rtl::Allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > > >> =
{<__gnu_debug::_Safe_sequence_base> = {_M_iterators = 0x0,
_M_const_iterators = 0x0, _M_version = 1}, <No data fields>},
_M_guaranteed_capacity = 0}
#19 0xb7be5e20 in
Test_osl_executeProcess::osl_execProc_parent_equals_child_environment
(this=0x8053148)
at
/home/maryline/compile-libreoffice/libo/clone/ure/sal/qa/osl/process/osl_process.cxx:606
process = 0x8053128
osl_error = osl_Process_E_None
#20 0xb7bf6187 in CppUnit::TestCaller<Test_osl_executeProcess>::runTest
(this=0x8053090)
at
/home/maryline/compile-libreoffice/libo/solver/350/unxlngi6/inc/cppunit/TestCaller.h:166
No locals.
#21 0xb7fac109 in CppUnit::TestCaseMethodFunctor::operator()() const ()
from
/home/maryline/compile-libreoffice/libo/solver/350/unxlngi6/lib/libcppunit-1.12.so.1
No symbol table info available.
#22 0xb7f9f280 in CppUnit::DefaultProtector::protect(CppUnit::Functor
const&, CppUnit::ProtectorContext const&) ()
from
/home/maryline/compile-libreoffice/libo/solver/350/unxlngi6/lib/libcppunit-1.12.so.1
No symbol table info available.
#23 0xb7fa7873 in CppUnit::ProtectorChain::ProtectFunctor::operator()()
const ()
from
/home/maryline/compile-libreoffice/libo/solver/350/unxlngi6/lib/libcppunit-1.12.so.1
No symbol table info available.
#24 0xb7fa775a in CppUnit::ProtectorChain::protect(CppUnit::Functor
const&, CppUnit::ProtectorContext const&) ()
from
/home/maryline/compile-libreoffice/libo/solver/350/unxlngi6/lib/libcppunit-1.12.so.1
No symbol table info available.
#25 0xb7fb5739 in CppUnit::TestResult::protect(CppUnit::Functor const&,
CppUnit::Test*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > const&) () from
/home/maryline/compile-libreoffice/libo/solver/350/unxlngi6/lib/libcppunit-1.12.so.1
No symbol table info available.
#26 0xb7fabc41 in CppUnit::TestCase::run(CppUnit::TestResult*) ()
from
/home/maryline/compile-libreoffice/libo/solver/350/unxlngi6/lib/libcppunit-1.12.so.1
No symbol table info available.
#27 0xb7fac762 in
CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) ()
from
/home/maryline/compile-libreoffice/libo/solver/350/unxlngi6/lib/libcppunit-1.12.so.1
No symbol table info available.
#28 0xb7fac622 in CppUnit::TestComposite::run(CppUnit::TestResult*) ()
from
/home/maryline/compile-libreoffice/libo/solver/350/unxlngi6/lib/libcppunit-1.12.so.1
No symbol table info available.
#29 0xb7fac762 in
CppUnit::TestComposite::doRunChildTests(CppUnit::TestResult*) ()
from
/home/maryline/compile-libreoffice/libo/solver/350/unxlngi6/lib/libcppunit-1.12.so.1
No symbol table info available.
#30 0xb7fac622 in CppUnit::TestComposite::run(CppUnit::TestResult*) ()
from
/home/maryline/compile-libreoffice/libo/solver/350/unxlngi6/lib/libcppunit-1.12.so.1
No symbol table info available.
#31 0xb7fb931f in
CppUnit::TestRunner::WrappingSuite::run(CppUnit::TestResult*) ()
from
/home/maryline/compile-libreoffice/libo/solver/350/unxlngi6/lib/libcppunit-1.12.so.1
No symbol table info available.
#32 0xb7fb552c in CppUnit::TestResult::runTest(CppUnit::Test*) ()
from
/home/maryline/compile-libreoffice/libo/solver/350/unxlngi6/lib/libcppunit-1.12.so.1
No symbol table info available.
#33 0xb7fb956f in CppUnit::TestRunner::run(CppUnit::TestResult&,
std::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&) () from
/home/maryline/compile-libreoffice/libo/solver/350/unxlngi6/lib/libcppunit-1.12.so.1
No symbol table info available.
#34 0x0804bbbf in sal_main () at
/home/maryline/compile-libreoffice/libo/clone/ure/sal/cppunittester/cppunittester.cxx:148
testlib = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> =
{<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0x805274c "../../../unxlngi6/lib/libosl_process.so"}}
manager = <incomplete type>
runner = <incomplete type>
collector = <incomplete type>
result = <incomplete type>
index = 0
args = {static npos = 4294967295,
_M_dataplus = {<std::allocator<char>> =
{<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},
_M_p = 0x805274c "../../../unxlngi6/lib/libosl_process.so"}}
#35 0x0804b731 in main (argc=2, argv=0xbfffc074)
at
/home/maryline/compile-libreoffice/libo/clone/ure/sal/cppunittester/cppunittester.cxx:89
ret = -1210712076
Julien.
More information about the LibreOffice
mailing list