Re: Segfault in smsc = at, modemtype = auto
Alexander Malysh <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, thanks for the report! segfault fixed in cvs... Enver ALTIN wrote: > Hi, > > I have just managed to get a segfault in kannel-CVS, when smsc = at and > modemtype = auto. Here is the bare kannel.conf: > > group = core > admin-port = 13000 > admin-password = blah > smsbox-port = 13001 > > group = smsc > smsc = at > modemtype = auto > device = /dev/ttyS0 > speed = 9600 > pin = 3852957 > > group = smsbox > bearerbox-host = localhost > sendsms-port = 13002 > > include = modems.conf > > And here is the output from bearerbox: > > 2004-08-19 13:49:28 [8902] [0] INFO: AT2[/dev/ttyS0]: > configuration doesn't show modemtype. will autodetect > [New Thread 1136270256 (LWP 8910)] > 2004-08-19 13:49:28 [8902] [0] DEBUG: Started thread 6 > (gw/smsc/smsc_at.c:at2_device_thread) > [New Thread 1144658864 (LWP 8911)] > 2004-08-19 13:49:28 [8902] [0] DEBUG: Started thread 7 > (gw/bb_smscconn.c:sms_router) 2004-08-19 13:49:28 [8902] [0] INFO: > ---------------------------------------- 2004-08-19 13:49:28 > [8902] [0] INFO: Kannel bearerbox II version cvs-20040818 starting > 2004-08-19 13:49:28 [8902] [6] DEBUG: Thread 6 > (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 8902. 2004-08-19 > 13:49:28 [8902] [6] DEBUG: AT2[/dev/ttyS0]: detecting modem type > 2004-08-19 13:49:28 [8902] [6] INFO: AT2[/dev/ttyS0]: opening > device 2004-08-19 13:49:28 [8902] [6] DEBUG: AT2[/dev/ttyS0]: > device opened 2004-08-19 13:49:28 [8902] [5] DEBUG: Thread 5 > (gw/bb_boxc.c:smsboxc_run) maps to pid 8902. 2004-08-19 13:49:28 > [8902] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to > pid 8902. 2004-08-19 13:49:28 [8902] [0] INFO: MAIN: Start-up > done, entering mainloop 2004-08-19 13:49:28 [8902] [0] DEBUG: > AT2[/dev/ttyS0]: start called 2004-08-19 13:49:28 [8902] [3] > DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 8902. > 2004-08-19 13:49:28 [8902] [2] DEBUG: Thread 2 > (gwlib/http.c:server_thread) maps to pid 8902. 2004-08-19 13:49:28 > [8902] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid > 8902. 2004-08-19 13:49:28 [8902] [7] DEBUG: Thread 7 > (gw/bb_smscconn.c:sms_router) maps to pid 8902. 2004-08-19 > 13:49:28 [8902] [7] DEBUG: sms_router: time to sleep 2004-08-19 > 13:49:28 [8902] [7] DEBUG: sms_router: list_len = 0 > > Program received signal SIGSEGV, Segmentation fault. > > And here is the backtrace: > > (gdb) bt > #0 0x08066ac0 in at2_open_device () > #1 0x08065a4a in at2_detect_modem_type () > #2 0x080674a0 in at2_device_thread () > #3 0x080ca781 in new_thread () > #4 0x400a89b4 in start_thread () from /lib/tls/libpthread.so.0 > #5 0x00000000 in ?? () > > Any suggestions? -- Thanks, Alex