SMS Server Tools 3
This site is hosted by
Basic information:
Additional information:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

Custom Search

 Visitor locations
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Mon Jun 17, 2024 22:17
SMSTools3 Community » Bug reports Bottom

[fixed in 3.1.15] smsd -s yields 'Segmentation fault'

Login and Post Reply

Page:  1

Author Post
Aug 2012
Location: Austria
I also tried to use smsd as daemon but it got stuck and didn't work as well.

I am working on a Debian GNU/Linux system, release wheezy/sid, kernel: Linux 3.2.0-3-amd64
I downloaded smstools3-3.1.14.tar.gz and debugged it:

(gdb) r
Starting program: /usr/local/bin/smsd -s

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7895ada in vfprintf () from /lib/x86_64-linux-gnu/
(gdb) bt
#0 0x00007ffff7895ada in vfprintf () from /lib/x86_64-linux-gnu/
#1 0x00007ffff78bc472 in vsnprintf () from /lib/x86_64-linux-gnu/
#2 0x00007ffff789e2c3 in snprintf () from /lib/x86_64-linux-gnu/
#3 0x00000000004193a7 in lockfile ()
#4 0x00000000004160a0 in movefilewithdestlock_new ()
#5 0x00000000004076aa in mainspooler () at smsd.c:1749
#6 0x000000000041593d in main (argc=2, argv=0x7fffffffebf8) at smsd.c:6911

Finally I found some kind of solution, though it's more a guess than
really understanding how the programm works:

diff smsd.c smsd.c~
< process_id=0;
> process_id=-1;

smstools is working so far now.

Oct 2012
Location: Russian Federation
I got the same error.
When process_id == -1 (main process), then become devices[-1].name at src/locking.c:45. Negative index cause memory access violation and result in SIGSEGV. I propose more reliable patch:

Apr 2011
Location: Kupchino, Russian Federation
Just for the record, there has already been a topic about this bug. Here is the link

« Last edit by unterwulf on Sat Oct 06, 2012 19:51, 142 months ago. »
May 2009
Location: Jyväskylä, Finland
3.1.15 with a fix is now released.

Thank's unterwulf, crux and others, and sorry for the delay.

Login and Post Reply

Page:  1

SMSTools3 Community » Bug reports Top

Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.