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 07:19:35 -0800 (PST)

Hi Daniele,

First of all thank you for your fast reply and hints.

I have checked the nk6100.c file mentioned in the GDB output and indeed line number 232 is a opening curly brace "{".

I was now using git to compile the latest dev version of gnokii as you suggest but it already fails while running the autogen.sh script as you can see in the output below:

$  ./autogen.sh
You should add the contents of `/usr/local/share/aclocal/libtool.m4' to `aclocal.m4'.
Copying file mkinstalldirs
Copying file po/Makefile.in.in

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

Provide an AUTOMAKE_VERSION environment variable, please


Now I am no dev really and don't know what I should do here. Do you have an idea? Btw: I am using OpenBSD 4.9 i386 and I checked that I have autoconf, automake, libtool installed.


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]