Ticket #677 (closed defect: Fixed)

Opened 4 years ago

Last modified 39 years ago

console-plugin dumps core on -b configdir

Reported by: volkersf Owned by: emostar
Priority: normal Milestone:
Component: system Version: 1.3.0
Keywords: Cc:

Description

licq -p console -b some_configdir_name dumps core (licq -p qt-gui doesn't, plain licq -p console works fine):

licq-console@menelaos [18:39:59]> gdb licq licq.core GNU gdb 4.18 (FreeBSD) Copyright 1998 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-unknown-freebsd"...(no debugging symbols found)... Core was generated by `licq'. Program terminated with signal 6, Abort trap. Reading symbols from /usr/local/lib/libintl.so.6...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/ dbxread.c line 2627 in elfstab_build_psymtabs Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../.. /../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf done. Reading symbols from /usr/local/lib/libssl.so.3...done. Reading symbols from /usr/local/lib/libcrypto.so.3...done. Reading symbols from /usr/lib/libstdc++.so.3...done. Reading symbols from /usr/lib/libm.so.2...done. Reading symbols from /usr/lib/libc_r.so.4...done. Reading symbols from /usr/local/lib/libiconv.so.3...done. Reading symbols from /usr/lib/libc.so.4...done. Reading symbols from /usr/local/lib/licq/licq_console.so...done. Reading symbols from /usr/local/lib/libcdk.so.4...done. Reading symbols from /usr/lib/libncurses.so.5...done. Reading symbols from /usr/libexec/ld-elf.so.1...done. #0 0x283b2354 in kill () from /usr/lib/libc_r.so.4 (gdb) bt #0 0x283b2354 in kill () from /usr/lib/libc_r.so.4 #1 0x2840153e in abort () at /usr/src/lib/libc_r/../libc/stdlib/abort.c: 73 #2 0x285ddab5 in segvTrap () from /usr/local/lib/libcdk.so.4 #3 0x283c474b in thread_sig_invoke_handler (sig=11, info=0xbfab11e8, ucp=0xbfab10a4)

at /usr/src/lib/libc_r/uthread/uthread_sig.c:284

#4 0x283c45b6 in _thread_sig_handler (sig=11, info=0xbfab11e8, ucp=0xbfab10a4)

at /usr/src/lib/libc_r/uthread/uthread_sig.c:209

#5 0xbfbfffac in ?? () #6 0x285c4f64 in CLicqConsole::PrintUsers? (this=0x815e400) at console_print.cpp:406 #7 0x285ba91c in CLicqConsole::Run (this=0x815e400, _licqDaemon=0x8161000) at console.cpp:285 #8 0x285c7804 in LP_Main (_licqDaemon=0x8161000) at main.cpp: 78 #9 0x285c7599 in LP_Main_tep (p=0x8161000) at /usr/ports/net/ licq-console/work/licq-1.3.0/include/licq_plugin.h:119 #10 0x2838c320 in _thread_start () at /usr/src/lib/libc_r/uthread/ uthread_create.c:322 #11 0x0 in ?? ()

FreeBSD menelaos.informatik.rwth-aachen.de 4.10-STABLE FreeBSD 4.10-STABLE #20: Thu Oct 28 13:24:05 CEST 2004 root@…:/usr/obj/usr/src/sys/ MENELAOS i386

Change History

Changed 4 years ago by emostar

Logged In: YES user_id=21415

What about running licq -b <directory> -p qt-gui on the same directory that crashes the plugin? I cannot reproduce it over here, so I'll need some more information.

Changed 4 years ago by volkersf

Logged In: YES user_id=126328

Sorry for being to vague in the report, obviously I meant -p qt-gui -b <config-dir>. The only crashing configuration is console with -b.

Changed 4 years ago by volkersf

Logged In: YES user_id=126328

I just tried this again, running from inside gdb. I set a breakpoint on dlopen() and got the following. It looks like the cdkUserList allocation in CLicqConsole::PrintUsers? fails...Could you add a sanity check?

Program received signal SIGSEGV, Segmentation fault. 0x285defd7 in bindCDKObject (cdktype=vSCROLL, object=0x0, key=32,

function=0x285c1994 <CLicqConsole::MenuPopupWrapper?(EObjectType,

void *, void *, unsigned long)>, data=0x815e400)

at binding.c:32

32 binding.c: No such file or directory. (gdb) bt #0 0x285defd7 in bindCDKObject (cdktype=vSCROLL, object=0x0, key=32,

function=0x285c1994 <CLicqConsole::MenuPopupWrapper?(EObjectType,

void *, void *, unsigned long)>, data=0x815e400)

at binding.c:32

#1 0x285c4f3c in CLicqConsole::PrintUsers? () from /usr/local/lib/licq/ licq_console.so

Changed 4 years ago by emostar

Logged In: YES user_id=21415

This is fixed in the latest CVS version of Licq. It will be included in the next release, or you may use the CVS version. Read http://www.licq.org/daily.php

Changed 4 years ago by emostar

  • status changed from assigned to closed
Note: See TracTickets for help on using tickets.