SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Thu Nov 21, 2019 14:32
SMSTools3 Community » Bug reports Bottom

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

Login and Post Reply

Page:  1

Author Post
Member
Registered:
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/libc.so.6
(gdb) bt
#0 0x00007ffff7895ada in vfprintf () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff78bc472 in vsnprintf () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff789e2c3 in snprintf () from /lib/x86_64-linux-gnu/libc.so.6
#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
(gdb)

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~
6910c6910
< process_id=0;
---
> process_id=-1;

smstools is working so far now.

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



Member
Registered:
Apr 2011
Location: Kupchino, Russian Federation
Just for the record, there has already been a topic about this bug. Here is the link http://smstools3.kekekasvi.com/topic.php?id=831.


« Last edit by unterwulf on Sat Oct 06, 2012 19:51, 86 months ago. »
Administrator
Registered:
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.