gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SV: SV: SV: Gnokii 6.0.22, Gnokii working fine, but smsd is coredumping


From: Peter Toi
Subject: SV: SV: SV: Gnokii 6.0.22, Gnokii working fine, but smsd is coredumping
Date: Sat, 23 Feb 2008 22:05:19 +0100

Hi Jan,

I might be missing something, Im not able to make it do the same as you
describe, this is the two last steps:
I got the source compiled with debug etc., but if I try to run it again and
backtrace the core dump, it's still the same as the previous mail.

ser# ldd .libs/smsd
.libs/smsd:
        libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x48079000)
        libintl.so.8 => /usr/local/lib/libintl.so.8 (0x4816e000)
        libglib-2.0.so.0 => /usr/local/lib/libglib-2.0.so.0 (0x48177000)
        libpcre.so.0 => /usr/local/lib/libpcre.so.0 (0x48213000)
        libgnokii.so.9 => /usr/local/lib/libgnokii.so.9 (0x48237000)
        libusb-0.1.so.8 => /usr/local/lib/libusb-0.1.so.8 (0x482ba000)
        libbluetooth.so.1 => /usr/lib/libbluetooth.so.1 (0x482c0000)
        libpthread.so.1 => /usr/lib/libpthread.so.1 (0x482c3000)
        libc.so.5 => /lib/libc.so.5 (0x482e7000)
ser# /usr/local/bin/gdb66 .libs/smsd
GNU gdb 6.6 [GDB v6.6 for FreeBSD]
Copyright (C) 2006 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-portbld-freebsd5.4"...
(no debugging symbols found)
(gdb) list
No symbol table is loaded.  Use the "file" command.
(gdb)


....How do I check if gdb can see the source file?


Best regards
Peter

-----Oprindelig meddelelse-----
Fra: address@hidden
[mailto:address@hidden På vegne af Jan
Derfinak
Sendt: 23. februar 2008 14:34
Til: Discussion forum for gnokii users.
Emne: Re: SV: SV: Gnokii 6.0.22, Gnokii working fine, but smsd is
coredumping

On Sat, 23 Feb 2008, Peter Toi wrote:

> Hi Jan,
> 
> How is this done the easiest way, if it is coming from a freebsd port?

If you compile gnokii from source it is compiled with debug information. You
can run smsd from source directory, so gdb can open source files and show
you where smsd crashed.

Next procedure works on Linux.
Untar gnokii to /tmp.
cd gnokii
./autogen.sh
cd smsd
make
(For tcsh) setenv LD_LIBRARY_PATH /tmp/gnokii/common/.libs/
(For bash) export LD_LIBRARY_PATH=/tmp/gnokii/common/.libs/
ldd .libs/smsd
(check if libgnokii.* points to /tmp/gnokii/common/.libs/libgnokii.*)
gdb .libs/smsd
GNU gdb 6.6.50.20070726-cvs
Copyright (C) 2007 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 "x86_64-suse-linux"...
Using host libthread_db library "/lib64/libthread_db.so.1".
(check that gdb can see sources)
(gdb) list
506       pthread_create (&monitor_th, NULL, Connect, smsdConfig.phone);
507       db_monitor = TRUE;
508       pthread_mutex_init (&db_monitorMutex, NULL);
509       pthread_create (&db_monitor_th, NULL, SendSMS, NULL);
510       GetSMS ();
511     }
512
513
514     int main (int argc, char *argv[])
515     {
(gdb) run [arguments for smsd, explicitly specify path to database modules
           in .libs directory]

jan


-- 


_______________________________________________
gnokii-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/gnokii-users





reply via email to

[Prev in Thread] Current Thread [Next in Thread]