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. Fri Mar 29, 2024 06:01
SMSTools3 Community » Help and support Bottom

[fixed in 3.1.15] outgoing not detected

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Jul 2011
Location: Germany
Operating system name and version:
OpenSuse 12.2
Version of smsd:
3.1.14
Smsd installed from: sources / package repository / from elsewhere...
source
Name and model of a modem / phone:
BenQ
Interface: serial / USB / some adapter...
USB

I have the same configuration running successfully on another server.
But on the new server the outgoing directory setting seems to be ignored.
If I put a SMS file (which works well on the other server) into the outgoing directory
it is not detected by smsd.
It is not moved to the checked directory.
The Logfile with loglevel = 7 does not give me any hint.
I run smsd as a normal user, and this user owns the outgoing directory.

What could be the reason?
How can I debug the situation?

Thank you
Marcel


« Last edit by marcel on Sat Oct 06, 2012 16:59, 139 months ago. »
Member
Registered:
Jul 2011
Location: Germany
Topic owner
marcel wrote
Operating system name and version:
OpenSuse 12.2
Version of smsd:
3.1.14
Smsd installed from: sources / package repository / from elsewhere...
source
Name and model of a modem / phone:
BenQ
Interface: serial / USB / some adapter...
USB

I have the same configuration running successfully on another server.
But on the new server the outgoing directory setting seems to be ignored.
If I put a SMS file (which works well on the other server) into the outgoing directory
it is not sent by smsd.

It is moved to the checked directory, but then nothing happens:
> ls -al out
drwxrwxr-x 3 watchee users 4096 7. Okt 10:30 .
drwxrwxr-x 10 watchee users 4096 7. Okt 10:30 ..
-rw-r--r-- 1 watchee users 37 7. Okt 10:30 2012-10-06-sms.txt
drwxrwxr-x 6 watchee users 4096 6. Okt 16:48 .svn
> ls -al out l checked/
drwxrwxr-x 3 watchee users 4096 7. Okt 10:30 .
drwxrwxr-x 10 watchee users 4096 7. Okt 10:30 ..
-rw-r--r-- 1 watchee uucp 0 7. Okt 10:30 2012-10-06-sms.txt.LOCK
drwxrwxr-x 6 watchee users 4096 6. Okt 16:48 .svn
> ls -al out sent
drwxrwxr-x 3 watchee users 4096 7. Okt 10:27 .
drwxrwxr-x 10 watchee users 4096 7. Okt 10:30 ..
drwxrwxr-x 6 watchee users 4096 6. Okt 16:48 .svn


The Logfile with loglevel = 7 does not give me any hint.
I run smsd as a normal user, and this user owns the outgoing directory.

What could be the reason?
How can I debug the situation?

Thank you
Marcel


Member
Registered:
Jul 2011
Location: Germany
Topic owner
Ok, I think it is related to my 64bit compilation.

When using the binary from the other machine it works:

nettop:/usr/local/bin # ldd smsd
linux-gate.so.1 (0xf7729000)
libc.so.6 => /lib/libc.so.6 (0xf7568000)
/lib/ld-linux.so.2 (0xf772a000)
nettop:/usr/local/bin # ldd v3.1.14selfcompiled/smsd
linux-vdso.so.1 (0x00007fff601e7000)
libc.so.6 => /lib64/libc.so.6 (0x00007f4809c2f000)
/lib64/ld-linux-x86-64.so.2 (0x00007f4809fd4000)

as you can see the not working variant uses the 64bit loader.

...

Member
Registered:
Jul 2011
Location: Germany
Topic owner
I have debugged into it but in the debugger the variable
 process_id remains -1 
and like this lockfile() crashes (accessing an array with -1):
 devices[process_id] 
The  fork()  should assign a process_id to the child, I'm not sure
why the parent process with  process_id==-1  ends up in lock() ...

So currently I'm stuck.

But to summarize: use a 32 bit compilation of smsd and all works fine.

To enable 32bit compilation add the -m32 command line option to smstools3/src/Makefile

CFLAGS += -W -Wall -m32
'smsdconf' Syntax Highlight powered by GeSHi


and recompile (be sure to have gcc-32 additionally installed on your 64bit machine)

Probably it is related to site_t being different in 64bit systems, but this is a guess.

Also I had the impression that the code is not buffer overflow save.

regards
Marcel


« Last edit by marcel on Sun Oct 07, 2012 10:21, 139 months ago. »

Login and Post Reply

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.