gnokii-users
[Top][All Lists]
Advanced

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

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


From: Jan Derfinak
Subject: Re: SV: SV: Gnokii 6.0.22, Gnokii working fine, but smsd is coredumping
Date: Sat, 23 Feb 2008 14:34:02 +0100 (CET)

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


-- 




reply via email to

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