Nobody having the same problems?
I thought this was a problem with the octstr implementation in
combination with x86_64. Is there anyone else running kannel on AMD64
platform?

Magnus


On Fri, 11 Feb 2005 13:50:56 +0100, Magnus Byrkjeflot <[EMAIL PROTECTED]> wrote:
> Here is the GDB backtrace.... Hope this helps...
> 
> [EMAIL PROTECTED] kannel-snapshot]# gdb gw/bearerbox core.22708
> GNU gdb Red Hat Linux (6.1post-1.20040607.43rh)
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "x86_64-redhat-linux-gnu"...Using host
> libthread_db library "/lib64/tls/libthread_db.so.1".
> 
> Core was generated by `gw/bearerbox /etc/kannel/kannel.conf'.
> Program terminated with signal 11, Segmentation fault.
> Reading symbols from /lib64/tls/librt.so.1...done.
> Loaded symbols for /lib64/tls/librt.so.1
> Reading symbols from /lib64/libresolv.so.2...done.
> Loaded symbols for /lib64/libresolv.so.2
> Reading symbols from /lib64/libnsl.so.1...done.
> Loaded symbols for /lib64/libnsl.so.1
> Reading symbols from /lib64/tls/libm.so.6...done.
> Loaded symbols for /lib64/tls/libm.so.6
> Reading symbols from /lib64/tls/libpthread.so.0...done.
> Loaded symbols for /lib64/tls/libpthread.so.0
> Reading symbols from /usr/lib64/libxml2.so.2...done.
> Loaded symbols for /usr/lib64/libxml2.so.2
> Reading symbols from /usr/lib64/libz.so.1...done.
> Loaded symbols for /usr/lib64/libz.so.1
> Reading symbols from /lib64/tls/libc.so.6...done.
> Loaded symbols for /lib64/tls/libc.so.6
> Reading symbols from /lib64/ld-linux-x86-64.so.2...done.
> Loaded symbols for /lib64/ld-linux-x86-64.so.2
> Reading symbols from /lib64/libnss_files.so.2...done.
> Loaded symbols for /lib64/libnss_files.so.2
> #0  0x0000003568a71660 in memcpy () from /lib64/tls/libc.so.6
> (gdb) backtrace
> #0  0x0000003568a71660 in memcpy () from /lib64/tls/libc.so.6
> #1  0x0000000000483797 in octstr_insert_data (ostr=0x673580, pos=0,
> data=0x42802be0 "--> %s^M\n", len=-1) at gwlib/octstr.c:1375
> #2  0x000000000048389b in octstr_append_data (ostr=0x673580,
> data=0x42802be0 "--> %s^M\n", len=-1) at gwlib/octstr.c:1401
> #3  0x000000000041c127 in at2_read_buffer (privdata=0x673080) at
> gw/smsc/smsc_at.c:210
> #4  0x000000000041c205 in at2_read_line (privdata=0x673080, gt_flag=0)
> at gw/smsc/smsc_at.c:246
> #5  0x000000000041d13a in at2_wait_modem_command (privdata=0x673080,
> timeout=1, gt_flag=0, output=0x0) at gw/smsc/smsc_at.c:591
> #6  0x000000000041d064 in at2_send_modem_command (privdata=0x673080,
> cmd=0x490c39 "", timeout=1, gt_flag=0) at gw/smsc/smsc_at.c:564
> #7  0x0000000000421a6f in at2_test_speed (privdata=0x673080,
> speed=9600) at gw/smsc/smsc_at.c:2169
> #8  0x000000000041e4d0 in at2_device_thread (arg=0x671ef0) at
> gw/smsc/smsc_at.c:1058
> #9  0x0000000000476221 in new_thread (arg=0x6735b0) at
> gwlib/gwthread-pthread.c:346
> #10 0x000000356930613a in start_thread () from /lib64/tls/libpthread.so.0
> #11 0x0000003568ac53c3 in clone () from /lib64/tls/libc.so.6
> #12 0x0000000000000000 in ?? ()
> 
> 
> --- Magnus
> 
> 
> On Fri, 11 Feb 2005 13:12:16 +0100, Magnus Byrkjeflot <[EMAIL PROTECTED]> 
> wrote:
> > How?
> > I've not used it before....
> >
> > addr2line -e gw/bearerbox 0000000000488314 -f
> > gw_panic
> > ??:0
> >
> > Magnus
> >
> >
> > On Thu, 10 Feb 2005 14:34:47 +0100, Stipe Tolj <[EMAIL PROTECTED]> wrote:
> > > Magnus Byrkjeflot wrote:
> > >
> > > > I'm having some problems using an GSM modem as SMSC. I am using a
> > > > AMD64 machine on Fedora Core 3. Have tried the same settings with two
> > > > phones Siemens M50 and Nokia 6310i. Both have worked before on i386
> > > > older kannel. I'm using CVS version.
> > > >
> > > > Anybody else encountered this error? The config file is a minimal one,
> > > > with modems.conf from the kannel package.
> > > >
> > > > Thanks
> > > > Magnus
> > > >
> > > >
> > > > 2005-01-26 20:12:40 [6719] [0] INFO: Debug_lvl = -1, log_file =
> > > > <none>, log_lvl = 0
> > > > 2005-01-26 20:12:40 [6719] [0] DEBUG: Loading include file
> > > > `/etc/kannel/modems.conf' (on line 15 of file
> > > > /etc/kannel/kannel.conf).
> > > > 2005-01-26 20:12:40 [6719] [0] WARNING: DLR: using default 'internal'
> > > > for storage type.
> > > > 2005-01-26 20:12:40 [6719] [0] INFO: DLR using storage type: internal
> > > > 2005-01-26 20:12:40 [6719] [0] DEBUG: Kannel bearerbox version 
> > > > `cvs-20050124'.
> > > > Build `Jan 26 2005 20:11:18', compiler `3.4.2 20041017 (Red Hat 
> > > > 3.4.2-6.fc3)'.
> > > > System Linux, release 2.6.10-1.741_FC3, version #1 Thu Jan 13 16:35:56
> > > > EST 2005, machine x86_64.
> > > > Hostname localhost.localdomain, IP 127.0.0.1.
> > > > Libxml version 2.6.16.
> > > > Using native malloc.
> > > >
> > > > 2005-01-26 20:12:40 [6719] [0] INFO: Added logfile
> > > > `/var/log/bearerbox.log' with level `1'.
> > > > 2005-01-26 20:12:40 [6719] [0] INFO: Started access logfile
> > > > `/var/log/bearerbox_access.log'.
> > > > 2005-01-26 20:12:40 [6719] [0] INFO: SSL not supported, no SSL
> > > > initialization done.
> > > > 2005-01-26 20:12:40 [6719] [0] INFO: HTTP: Opening server at port 13000.
> > > > 2005-01-26 20:12:40 [6719] [0] DEBUG: Started thread 1 
> > > > (gwlib/fdset.c:poller)
> > > > 2005-01-26 20:12:40 [6719] [0] DEBUG: Started thread 2
> > > > (gwlib/http.c:server_thread)
> > > > 2005-01-26 20:12:40 [6719] [0] DEBUG: Started thread 3
> > > > (gw/bb_http.c:httpadmin_run)
> > > > 2005-01-26 20:12:40 [6719] [0] DEBUG: starting smsbox connection module
> > > > 2005-01-26 20:12:40 [6719] [0] ERROR: Missing smsbox-port variable,
> > > > cannot start smsboxes
> > > > 2005-01-26 20:12:40 [6719] [0] INFO: DLR rerouting for smsc id
> > > > <(null)> disabled.
> > > > 2005-01-26 20:12:40 [6719] [0] INFO: AT2[/dev/modem]: configuration
> > > > doesn't show modemtype. will autodetect
> > > > 2005-01-26 20:12:40 [6719] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
> > > > maps to pid 6719.
> > > > 2005-01-26 20:12:40 [6719] [2] DEBUG: Thread 2
> > > > (gwlib/http.c:server_thread) maps to pid 6719.
> > > > 2005-01-26 20:12:40 [6719] [0] DEBUG: Started thread 4
> > > > (gw/smsc/smsc_at.c:at2_device_thread)
> > > > 2005-01-26 20:12:40 [6719] [0] DEBUG: Started thread 5
> > > > (gw/bb_smscconn.c:sms_router)
> > > > 2005-01-26 20:12:40 [6719] [0] INFO: 
> > > > ----------------------------------------
> > > > 2005-01-26 20:12:40 [6719] [0] INFO: Kannel bearerbox II version
> > > > cvs-20050124 starting
> > > > 2005-01-26 20:12:40 [6719] [3] DEBUG: Thread 3
> > > > (gw/bb_http.c:httpadmin_run) maps to pid 6719.
> > > > 2005-01-26 20:12:40 [6719] [4] DEBUG: Thread 4
> > > > (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 6719.
> > > > 2005-01-26 20:12:40 [6719] [4] DEBUG: AT2[/dev/modem]: detecting modem 
> > > > speed.
> > > > 2005-01-26 20:12:40 [6719] [4] INFO: AT2[/dev/modem]: opening device
> > > > 2005-01-26 20:12:40 [6719] [4] DEBUG: AT2[/dev/modem]: device opened
> > > > 2005-01-26 20:12:40 [6719] [5] DEBUG: Thread 5
> > > > (gw/bb_smscconn.c:sms_router) maps to pid 6719.
> > > > 2005-01-26 20:12:40 [6719] [0] INFO: MAIN: Start-up done, entering 
> > > > mainloop
> > > > 2005-01-26 20:12:40 [6719] [0] DEBUG: AT2[/dev/modem]: start called
> > > > 2005-01-26 20:12:40 [6719] [5] DEBUG: sms_router: time to sleep
> > > > 2005-01-26 20:12:40 [6719] [5] DEBUG: sms_router: list_len = 0
> > > > 2005-01-26 20:12:40 [6719] [5] DEBUG: Thread 5
> > > > (gw/bb_smscconn.c:sms_router) terminates.
> > > > 2005-01-26 20:12:41 [6719] [4] DEBUG: AT2[/dev/modem]: device opened
> > > > 2005-01-26 20:12:41 [6719] [4] INFO: AT2[/dev/modem]: speed set to 
> > > > 115200
> > > > 2005-01-26 20:12:41 [6719] [4] DEBUG: AT2[/dev/modem]: --> ^M
> > > > 2005-01-26 20:12:41 [6719] [4] PANIC: gwlib/octstr.c:183: octstr_grow:
> > > > Assertion `size >= 0' failed.
> > > > 2005-01-26 20:12:41 [6719] [4] PANIC: gw/bearerbox(gw_panic+0x254) 
> > > > [0x4829c6]
> > > > 2005-01-26 20:12:41 [6719] [4] PANIC: gw/bearerbox [0x483cee]
> > > > 2005-01-26 20:12:41 [6719] [4] PANIC:
> > > > gw/bearerbox(octstr_insert_data+0xc0) [0x4871e0]
> > > > 2005-01-26 20:12:41 [6719] [4] PANIC:
> > > > gw/bearerbox(octstr_append_data+0x5e) [0x48742f]
> > > > 2005-01-26 20:12:41 [6719] [4] PANIC: gw/bearerbox [0x41c803]
> > > > 2005-01-26 20:12:41 [6719] [4] PANIC: gw/bearerbox [0x41c8e1]
> > > > 2005-01-26 20:12:41 [6719] [4] PANIC: gw/bearerbox [0x41d816]
> > > > 2005-01-26 20:12:41 [6719] [4] PANIC: gw/bearerbox [0x41d740]
> > > > 2005-01-26 20:12:41 [6719] [4] PANIC: gw/bearerbox [0x42214b]
> > > > 2005-01-26 20:12:41 [6719] [4] PANIC: gw/bearerbox [0x422045]
> > > > 2005-01-26 20:12:41 [6719] [4] PANIC: gw/bearerbox [0x41ec4e]
> > > > 2005-01-26 20:12:41 [6719] [4] PANIC: gw/bearerbox [0x478018]
> > > > 2005-01-26 20:12:41 [6719] [4] PANIC: /lib64/tls/libpthread.so.0 
> > > > [0x356930613a]
> > > > 2005-01-26 20:12:41 [6719] [4] PANIC:
> > > > /lib64/tls/libc.so.6(__clone+0x73) [0x3568ac53c3]
> > > >
> > >
> > > ok, this is a panic from an assertion check on growing an Octstr to a 
> > > specific
> > > size. Can you please use addr2line to see which function does the 
> > > octstr_grow()
> > > call with the invalid size.
> > >
> > > Stipe
> > >
> > > mailto:stolj_{at}_wapme.de
> > > -------------------------------------------------------------------
> > > Wapme Systems AG
> > >
> > > Vogelsanger Weg 80
> > > 40470 Düsseldorf, NRW, Germany
> > >
> > > phone: +49.211.74845.0
> > > fax: +49.211.74845.299
> > >
> > > mailto:info_{at}_wapme-systems.de
> > > http://www.wapme-systems.de/
> > > -------------------------------------------------------------------
> > >
> >
>

Reply via email to