Hello, I'm currently building TDE 3.5.13.2 for openbsd.
I've managed to build tdelibs, but it looks like I have problems at runtime.
Every binary that is linked to "libkdecore.so.4.2" crashes at exit time.
For example, I can run the "kde-config" command and get the expected
result in the terminal, but it always gives an "abort" instead of
quitting gracefully.
Same behaviour with "meinproc", or "makekdewidgets" among others ...
Other programs not using libkdecore, such as the "dcop*" commands, have
no problem.
Pure QT3 binaries (such as QT3 designer) have no problems. Arts-related
programs have no problem.
Here are some GDB backtraces. The crash occurs in different location
every time, but is always "abort".
Everything is built with debug symbols.
Any help would be appreciated.
meinproc in free(): error: chunk is already free 0x1c6c6ad2e440
Program received signal SIGABRT, Aborted.
0x00001c6c7083321a in kill () at <stdin>:2
2 <stdin>: No such file or directory.
in <stdin>
Current language: auto; currently asm
(gdb) bt
#0 0x00001c6c7083321a in kill () at <stdin>:2
#1 0x00001c6c7089398a in abort () at /usr/src/lib/libc/stdlib/abort.c:70
#2 0x00001c6c70890f64 in wrterror (msg=Variable "msg" is not available.
) at /usr/src/lib/libc/stdlib/malloc.c:273
#3 0x00001c6c7089225f in free (ptr=0x1c6c72dae6c0) at
/usr/src/lib/libc/stdlib/malloc.c:1252
#4 0x00001c6c797fc7c8 in QGList::removeRef (this=0x1c6c6f7af500,
d=0x1c6c714375c0) at tools/qglist.cpp:686
#5 0x00001c6c70e0de84 in __tcf_0 () at kstaticdeleter.h:130
#6 0x00001c6c70887f04 in __cxa_finalize (dso=0x1c6c711bdfa8) at
/usr/src/lib/libc/stdlib/atexit.c:136
#7 0x00001c6c70dd0b91 in ?? () from /opt/trinity/lib/libkdecore.so.4.2
#8 0x00001c6c70f9fce9 in _fini () from /opt/trinity/lib/libkdecore.so.4.2
#9 0x00001c6c6e714660 in ?? ()
#10 0x00001c6c75702e7d in _dl_run_all_dtors () at
/usr/src/libexec/ld.so/loader.c:138
#11 0x00001c6c70887f57 in __cxa_finalize (dso=0x0) at
/usr/src/lib/libc/stdlib/atexit.c:138
#12 0x00001c6c70871d3a in exit (status=254) at
/usr/src/lib/libc/stdlib/exit.c:57
#13 0x00001c6c70ee5290 in KCmdLineArgs::usage (id=0x0) at
/usr/ports/pobj/tdelibs-trinity-3.5.13.2-debug/kdelibs-trinity-3.5.13.2/kdecore/kcmdlineargs.cpp:977
#14 0x00001c6a69306dcd in main (argc=1, argv=Variable "argv" is not
available.
) at
/usr/ports/pobj/tdelibs-trinity-3.5.13.2-debug/kdelibs-trinity-3.5.13.2/kdoctools/meinproc.cpp:108
meinproc in free(): error: chunk is already free 0xb407d38a020
Program received signal SIGABRT, Aborted.
0x00000b40830a621a in kill () at <stdin>:2
2 <stdin>: No such file or directory.
in <stdin>
(gdb) bt
#0 0x00000b40830a621a in kill () at <stdin>:2
#1 0x00000b408310698a in abort () at /usr/src/lib/libc/stdlib/abort.c:70
#2 0x00000b4083103f64 in wrterror (msg=Variable "msg" is not available.
) at /usr/src/lib/libc/stdlib/malloc.c:273
#3 0x00000b408310525f in free (ptr=0xb407a6c4d40) at
/usr/src/lib/libc/stdlib/malloc.c:1252
#4 0x00000b407c7424da in pthread_mutex_destroy (mutexp=0xb407d38ae68)
at /usr/src/lib/librthread/rthread_sync.c:77
#5 0x00000b40806ae271 in ~QMutexPrivate (this=0xb407d38ae60) at
tools/qmutex_unix.cpp:119
#6 0x00000b40806ae7c3 in ~QRealMutexPrivate (this=0xb407d38ae60) at
tools/qmutex_unix.cpp:81
#7 0x00000b40806adcf1 in ~QMutex (this=0xb4079e0ece0) at
tools/qmutex_unix.cpp:457
#8 0x00000b40830faf04 in __cxa_finalize (dso=0xb4079bfc028) at
/usr/src/lib/libc/stdlib/atexit.c:136
#9 0x00000b40799ccc71 in ?? () from
/opt/trinity/lib/libkwalletclient.so.1.0
#10 0x00000b40799f79e9 in _fini () from
/opt/trinity/lib/libkwalletclient.so.1.0
#11 0x00000b4077276660 in ?? ()
#12 0x00000b4077a02e7d in _dl_run_all_dtors () at
/usr/src/libexec/ld.so/loader.c:138
#13 0x00000b40830faf57 in __cxa_finalize (dso=0x0) at
/usr/src/lib/libc/stdlib/atexit.c:138
#14 0x00000b40830e4d3a in exit (status=254) at
/usr/src/lib/libc/stdlib/exit.c:57
#15 0x00000b407bdd9290 in KCmdLineArgs::usage (id=0x0) at
/usr/ports/pobj/tdelibs-trinity-3.5.13.2-debug/kdelibs-trinity-3.5.13.2/kdecore/kcmdlineargs.cpp:977
#16 0x00000b3e72306dcd in main (argc=1, argv=Variable "argv" is not
available.
) at
/usr/ports/pobj/tdelibs-trinity-3.5.13.2-debug/kdelibs-trinity-3.5.13.2/kdoctools/meinproc.cpp:108
meinproc in free(): error: chunk is already free 0xfebb881f3e0
Program received signal SIGABRT, Aborted.
0x00000febae54621a in kill () at <stdin>:2
2 <stdin>: No such file or directory.
in <stdin>
(gdb) bt
#0 0x00000febae54621a in kill () at <stdin>:2
#1 0x00000febae5a698a in abort () at /usr/src/lib/libc/stdlib/abort.c:70
#2 0x00000febae5a3f64 in wrterror (msg=Variable "msg" is not available.
) at /usr/src/lib/libc/stdlib/malloc.c:273
#3 0x00000febae5a525f in free (ptr=0xfebae9e9de0) at
/usr/src/lib/libc/stdlib/malloc.c:1252
#4 0x00000febb00ddf51 in __tcf_0 () at qvaluelist.h:239
#5 0x00000febae59af04 in __cxa_finalize (dso=0xfebb048dfa8) at
/usr/src/lib/libc/stdlib/atexit.c:136
#6 0x00000febb00a0b91 in ?? () from /opt/trinity/lib/libkdecore.so.4.2
#7 0x00000febb026fce9 in _fini () from /opt/trinity/lib/libkdecore.so.4.2
#8 0x00000febbcb48650 in ?? ()
#9 0x00000febb7702e7d in _dl_run_all_dtors () at
/usr/src/libexec/ld.so/loader.c:138
#10 0x00000febae59af57 in __cxa_finalize (dso=0x0) at
/usr/src/lib/libc/stdlib/atexit.c:138
#11 0x00000febae584d3a in exit (status=254) at
/usr/src/lib/libc/stdlib/exit.c:57
#12 0x00000febb01b5290 in KCmdLineArgs::usage (id=0x0) at
/usr/ports/pobj/tdelibs-trinity-3.5.13.2-debug/kdelibs-trinity-3.5.13.2/kdecore/kcmdlineargs.cpp:977
#13 0x00000fe9ae306dcd in main (argc=1, argv=Variable "argv" is not
available.
) at
/usr/ports/pobj/tdelibs-trinity-3.5.13.2-debug/kdelibs-trinity-3.5.13.2/kdoctools/meinproc.cpp:108
kde-config in free(): error: chunk is already free 0x7676b88a7c0
Program received signal SIGABRT, Aborted.
0x00000767657bb21a in kill () at <stdin>:2
2 <stdin>: No such file or directory.
in <stdin>
Current language: auto; currently asm
(gdb) bt
#0 0x00000767657bb21a in kill () at <stdin>:2
#1 0x000007676581b98a in abort () at /usr/src/lib/libc/stdlib/abort.c:70
#2 0x0000076765818f64 in wrterror (msg=Variable "msg" is not available.
) at /usr/src/lib/libc/stdlib/malloc.c:273
#3 0x000007676581a25f in free (ptr=0x767667df120) at
/usr/src/lib/libc/stdlib/malloc.c:1252
#4 0x000007676a9008e1 in QGDict::clear (this=0x76771fe77c0) at
tools/qgdict.cpp:787
#5 0x0000076763adb2a2 in ~KStringDict (this=0x76771fe77c0) at qdict.h:78
#6 0x0000076763adb1af in kglobal_freeAll () at
/usr/ports/pobj/tdelibs-trinity-3.5.13.2-debug/kdelibs-trinity-3.5.13.2/kdecore/kglobal.cpp:226
#7 0x00000767639f5af2 in ?? () from /opt/trinity/lib/libkdecore.so.4.2
#8 0x0000076763bc4ce9 in _fini () from /opt/trinity/lib/libkdecore.so.4.2
#9 0x0000076764063500 in ?? ()
#10 0x0000076768a02e7d in _dl_run_all_dtors () at
/usr/src/libexec/ld.so/loader.c:138
#11 0x000007676580ff57 in __cxa_finalize (dso=0x0) at
/usr/src/lib/libc/stdlib/atexit.c:138
#12 0x00000767657f9d3a in exit (status=0) at
/usr/src/lib/libc/stdlib/exit.c:57
#13 0x00000765637289c8 in _start () from /usr/local/trinity/bin/kde-config
#14 0x0000000000000000 in ?? ()
kde-config in free(): error: chunk is already free 0x15aea5f55bc0
Program received signal SIGABRT, Aborted.
0x000015ae9fa4621a in kill () at <stdin>:2
2 <stdin>: No such file or directory.
in <stdin>
(gdb) bt
#0 0x000015ae9fa4621a in kill () at <stdin>:2
#1 0x000015ae9faa698a in abort () at /usr/src/lib/libc/stdlib/abort.c:70
#2 0x000015ae9faa3f64 in wrterror (msg=Variable "msg" is not available.
) at /usr/src/lib/libc/stdlib/malloc.c:273
#3 0x000015ae9faa525f in free (ptr=0x15aea9084800) at
/usr/src/lib/libc/stdlib/malloc.c:1252
#4 0x000015aea04244da in pthread_mutex_destroy (mutexp=0x15aeac47a9c8)
at /usr/src/lib/librthread/rthread_sync.c:77
#5 0x000015aeab05b271 in ~QMutexPrivate (this=0x15aeac47a9c0) at
tools/qmutex_unix.cpp:119
#6 0x000015aeab05b7c3 in ~QRealMutexPrivate (this=0x15aeac47a9c0) at
tools/qmutex_unix.cpp:81
#7 0x000015aeab05acf1 in ~QMutex (this=0x15aeac46ff50) at
tools/qmutex_unix.cpp:457
#8 0x000015ae9fa9af04 in __cxa_finalize (dso=0x15aeac1f3fa8) at
/usr/src/lib/libc/stdlib/atexit.c:136
#9 0x000015aeabe06b91 in ?? () from /opt/trinity/lib/libkdecore.so.4.2
#10 0x000015aeabfd5ce9 in _fini () from /opt/trinity/lib/libkdecore.so.4.2
#11 0x000015aea08314e0 in ?? ()
#12 0x000015aeab902e7d in _dl_run_all_dtors () at
/usr/src/libexec/ld.so/loader.c:138
#13 0x000015ae9fa9af57 in __cxa_finalize (dso=0x0) at
/usr/src/lib/libc/stdlib/atexit.c:138
#14 0x000015ae9fa84d3a in exit (status=0) at
/usr/src/lib/libc/stdlib/exit.c:57
#15 0x000015ac9f8289c8 in _start () from /usr/local/trinity/bin/kde-config
#16 0x0000000000000001 in ?? ()
#17 0x00007f7ffffe17af in ?? ()
#18 0x0000000000000000 in ?? ()