gnokii-users
[Top][All Lists]
Advanced

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

Re: gnokii --send-sms core dumps


From: ML mail
Subject: Re: gnokii --send-sms core dumps
Date: Fri, 30 Nov 2012 11:45:40 -0800 (PST)

Thanks, I now managed to compile gnokii from the git source with your instructions. Unfortunately, smsd does a segmentation fault like before using the latest stable version of gnokii. Just now gdb mentions another line but it's still an opening curly brace as you can see in the output below:

$ sudo gdb --args  /usr/local/gnokii/bin/smsd -u smsd -p password -d smsd -m mysql -f /var/log/smsd.log
GNU gdb 6.3
Copyright 2004 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-openbsd4.9"...
(gdb) run
Starting program: /usr/local/gnokii/bin/smsd -u smsd -p password -d smsd -m mysql -f /var/log/smsd.log
smsd - version 1.5.3 from gnokii 0.6.32git
LOG: debug mask is 0x1
LOG: xdebug mask is 0x1
Config read from file /etc/gnokiirc.
phone instance config:
model = 6110
port = /dev/ttyU0
connection = serial
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
[New process 30940, thread 0x7f510800]

Program received signal SIGSEGV, Segmentation fault.
[Switching to process 30940, thread 0x7f510800]
0x0811feff in Functions (op=GN_OP_Init, data="" state=0x8733c000) at nk6100.c:208
208     {

Regarding valgrind I couldn't find any versions running on OpenBSD so I guess this is not an option :( Any other ideas maybe?

Cheers,
M.L.


From: Daniele Forsi <address@hidden>
To: ML mail <address@hidden>
Cc: Discussion forum for gnokii users. <address@hidden>
Sent: Friday, November 30, 2012 3:28 PM
Subject: Re: gnokii --send-sms core dumps

2012/11/30 ML mail <address@hidden>:

> Was just wondering if someone of you had a clue why my smsd is still core
> dumping? All the details are in my mail below...
sorry for not getting back to you

I have ho idea why it would segfault on the opening brace here:

> Program received signal SIGSEGV, Segmentation fault.
> [Switching to process 5507, thread 0x8904fc00]
> 0x01944f9f in Functions (op=GN_OP_Init, data="" state=0x8bc79000) at
> nk6100.c:232
> 232    {

the most probable cause is that the sources don't match the
executable, so that line 232 has a different content, can you check if
the smsd you are running is actually built from the source files whose
lines that are printed by gdb? gdb prints a warning f the sources are
newer than the executable but it doens't seem your case. You can also
try to compile the sources from git which is what I'm actually using;
for instructions see http://gnokii.org/git.shtml

> if you need more details
> don't hesitate to ask me. I would really be happy to be able to use smsd on
> my OpenBSD box.

you can also try to run under valgrind because it could be able to
show if smsd is accessing memory that it shouldn't (invalid write),
smsd will run slower but it's a quick test:

valgrind /usr/local/gnokii/bin/smsd -u smsd -p PASSWORD -d smsd -m
mysql -f /tmp/smsd.log

--
Daniele Forsi



reply via email to

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