[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
*** glibc detected *** smsd: free(): invalid pointer: 0x080f1388 ***
From: |
Gustavo Delfino |
Subject: |
*** glibc detected *** smsd: free(): invalid pointer: 0x080f1388 *** |
Date: |
Mon, 19 Oct 2009 03:53:59 -0430 |
After all the troubles using gnokii under Mac OS X, I decided to go
with Linux instead (Gentoo). I had been using smsd successfully to
send and receive SMS messages using the mysql module.
Today I wrote a deamon for my Rails application that would read from
the inbox table, process the messages and then write to the outbox
table.
The point is that when I started the deamon, all my 10 messages in the
inbox got processed, then about 10 more messages were written to the
outbox table and smsd was able to send only the first 3. The rest
ended up with a -1 in the error column and were not delivered
(processed=0).
I probably made a mistake by having the daemon run too frequently (1
sec).
Since this happened I have not been able to run smsd again. I have no
idea why. Below is the output error I am getting when running as root:
tux ~ # smsd -u root -d sms -c localhost -m mysql -b IN -f /var/log/
smsdaemon.log smsd - version 1.4.4 from gnokii 0.6.28
Couldn't read /root/.gnokiirc config file.
Couldn't read /root/.gnokiirc config file.
LOG: debug mask is 0x1
Config read from file /etc/gnokiirc.
*** glibc detected *** smsd: free(): invalid pointer: 0xb6606bf0 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7bd16d0]
/lib/libc.so.6(cfree+0x89)[0xb7bd3059]
/lib/libc.so.6[0xb7b86524]
/lib/libc.so.6[0xb7b7f0bb]
/lib/libc.so.6[0xb7b7ed6e]
/lib/libc.so.6(iconv_close+0x1c)[0xb7b7e32c]
/usr/lib/libgnokii.so.5[0xb7e1bebd]
/usr/lib/libgnokii.so.5(gn_char_def_alphabet+0x5e)[0xb7e1c19e]
/usr/lib/smsd/libsmsd_mysql.so(DB_Look+0x297)[0xb7f9efd7]
smsd[0x8049ec2]
/lib/libpthread.so.0[0xb7caa19b]
/lib/libc.so.6(clone+0x5e)[0xb7c31a0e]
======= Memory map: ========
08048000-0804d000 r-xp 00000000 08:03 2926774 /usr/bin/smsd
0804d000-0804e000 r--p 00004000 08:03 2926774 /usr/bin/smsd
0804e000-0804f000 rw-p 00005000 08:03 2926774 /usr/bin/smsd
0804f000-080f2000 rw-p 00000000 00:00 0 [heap]
b6600000-b6623000 rw-p 00000000 00:00 0
b6623000-b6700000 ---p 00000000 00:00 0
b673e000-b6748000 r-xp 00000000 08:03 770775 /usr/lib/gcc/i686-pc-
linux-gnu/4.1.2/libgcc_s.so.1
b6748000-b6749000 r--p 00009000 08:03 770775 /usr/lib/gcc/i686-pc-
linux-gnu/4.1.2/libgcc_s.so.1
b6749000-b674a000 rw-p 0000a000 08:03 770775 /usr/lib/gcc/i686-pc-
linux-gnu/4.1.2/libgcc_s.so.1
b6758000-b67db000 rw-p 00000000 00:00 0
b67db000-b67dc000 ---p 00000000 00:00 0
b67dc000-b6fdc000 rw-p 00000000 00:00 0
b6fdc000-b6fdd000 ---p 00000000 00:00 0
b6fdd000-b77dd000 rw-p 00000000 00:00 0
b77dd000-b77e6000 r-xp 00000000 08:03 2517795 /lib/
libnss_files-2.9.so
b77e6000-b77e7000 r--p 00008000 08:03 2517795 /lib/
libnss_files-2.9.so
b77e7000-b77e8000 rw-p 00009000 08:03 2517795 /lib/
libnss_files-2.9.so
b77e8000-b791a000 r-xp 00000000 08:03 2868176 /usr/lib/libcrypto.so.
0.9.8
b791a000-b7922000 r--p 00132000 08:03 2868176 /usr/lib/libcrypto.so.
0.9.8
b7922000-b7930000 rw-p 0013a000 08:03 2868176 /usr/lib/libcrypto.so.
0.9.8
b7930000-b7933000 rw-p 00000000 00:00 0
b7933000-b7974000 r-xp 00000000 08:03 2868179 /usr/lib/libssl.so.
0.9.8
b7974000-b7975000 r--p 00040000 08:03 2868179 /usr/lib/libssl.so.
0.9.8
b7975000-b7978000 rw-p 00041000 08:03 2868179 /usr/lib/libssl.so.
0.9.8
b7978000-b799c000 r-xp 00000000 08:03 2517775 /lib/libm-2.9.so
b799c000-b799d000 r--p 00023000 08:03 2517775 /lib/libm-2.9.so
b799d000-b799e000 rw-p 00024000 08:03 2517775 /lib/libm-2.9.so
b799e000-b79b1000 r-xp 00000000 08:03 2517522 /lib/libnsl-2.9.so
b79b1000-b79b2000 r--p 00012000 08:03 2517522 /lib/libnsl-2.9.so
b79b2000-b79b3000 rw-p 00013000 08:03 2517522 /lib/libnsl-2.9.so
b79b3000-b79b5000 rw-p 00000000 00:00 0
b79b5000-b79be000 r-xp 00000000 08:03 2517756 /lib/libcrypt-2.9.so
b79be000-b79bf000 r--p 00008000 08:03 2517756 /lib/libcrypt-2.9.so
b79bf000-b79c0000 rw-p 00009000 08:03 2517756 /lib/libcrypt-2.9.so
b79c0000-b79e7000 rw-p 00000000 00:00 0
b79e7000-b79f8000 r-xp 00000000 08:03 360627 /lib/libz.so.1.2.3
b79f8000-b79f9000 r--p 00010000 08:03 360627 /lib/libz.so.1.2.3
b79f9000-b79fa000 rw-p 00011000 08:03 360627 /lib/libz.so.1.2.3
b7a08000-b7b22000 r-xp 00000000 08:03 2672041 /usr/lib/mysql/
libmysqlclient.so.15.0.0
b7b22000-b7b24000 r--p 00119000 08:03 2672041 /usr/lib/mysql/
libmysqlclient.so.15.0.0
b7b24000-b7b65000 rw-p 0011b000 08:03 2672041 /usr/lib/mysql/
libmysqlclient.so.15.0.0
b7b65000-b7b67000 rw-p 00000000 00:00 0
b7b67000-b7c9e000 r-xp 00000000 08:03 2517730 /lib/libc-2.9.so
b7c9e000-b7ca0000 r--p 00137000 08:03 2517730 /lib/libc-2.9.so
b7ca0000-b7ca1000 rw-p 00139000 08:03 2517730 /lib/libc-2.9.so
b7ca1000-b7ca5000 rw-p 00000000 00:00 0
b7ca5000-b7cb9000 r-xp 00000000 08:03 2517517 /lib/libpthread-2.9.so
b7cb9000-b7cba000 r--p 00013000 08:03 2517517 /lib/libpthread-2.9.so
b7cba000-b7cbb000 rw-p 00014000 08:03 2517517 /lib/libpthread-2.9.so
b7cbb000-b7cbd000 rw-p 00000000 00:00 0
b7cbd000-b7cbf000 r-xp 00000000 08:03 2517529 /lib/libdl-2.9.so
b7cbf000-b7cc0000 r--p 00001000 08:03 2517529 /lib/libdl-2.9.so
b7cc0000-b7cc1000 rw-p 00002000 08:03 2517529 /lib/libdl-2.9.so
b7cc1000-b7cca000 r-xp 00000000 08:03 2425277 /usr/lib/
libpcsclite.so.1.0.0
b7cca000-b7ccb000 r--p 00008000 08:03 2425277 /usr/lib/
libpcsclite.so.1.0.0
b7ccb000-b7ccc000 rw-p 00009000 08:03 2425277 /usr/lib/
libpcsclite.so.1.0.0
b7ccc000-b7cd2000 r-xp 00000000 08:03 2663443 /lib/libusb-0.1.so.
4.4.4
b7cd2000-b7cd3000 r--p 00005000 08:03 2663443 /lib/libusb-0.1.so.
4.4.4
b7cd3000-b7cd5000 rw-p 00006000 08:03 2663443 /lib/libusb-0.1.so.
4.4.4
b7cd5000-b7ce8000 r-xp 00000000 08:03 2417339 /usr/lib/
libbluetooth.so.2.11.2
b7ce8000-b7ce9000 r--p 00012000 08:03 2417339 /usr/lib/
libbluetooth.so.2.11.2
b7ce9000-b7cea000 rw-p 00013000 08:03 2417339 /usr/lib/
libbluetooth.so.2.11.2
b7cea000-b7cee000 r-xp 00000000 08:03 2648434 /usr/lib/libXdmcp.so.
6.0.0
b7cee000-b7cef000 r--p 00003000 08:03 2648434 /usr/lib/libXdmcp.so.
6.0.0
b7cef000-b7cf0000 rw-p 00004000 08:03 2648434 /usr/lib/libXdmcp.so.
6.0.0
b7cf0000-b7cf1000 rw-p 00000000 00:00 0
b7cf1000-b7cf3000 r-xp 00000000 08:03 2647842 /usr/lib/libXau.so.
6.0.0
b7cf3000-b7cf4000 r--p 00001000 08:03 2647842 /usr/lib/libXau.so.
6.0.0
b7cf4000-b7cf5000 rw-p 00002000 08:03 2647842 /usr/lib/libXau.so.
6.0.0
b7cf5000-b7de0000 r-xp 00000000 08:03 2657350 /usr/lib/libX11.so.
6.2.0
b7de0000-b7de1000 r--p 000ea000 08:03 2657350 /usr/lib/libX11.so.
6.2.0
b7de1000-b7de4000 rw-p 000eb000 08:03 2657350 /usr/lib/libX11.so.
6.2.0
b7de4000-b7df3000 r-xp 00000000 08:03 2655113 /usr/lib/libXpm.so.
4.11.0
b7df3000-b7df4000 r--p 0000e000 08:03 2655113 /usr/lib/libXpm.so.
4.11.0
b7df4000-b7df5000 rw-p 0000f000 08:03 2655113 /usr/lib/libXpm.so.
4.11.0
b7df5000-b7e74000 r-xp 00000000 08:03 2926776 /usr/lib/libgnokii.so.
5.0.0
b7e74000-b7e77000 r--p 0007f000 08:03 2926776 /usr/lib/libgnokii.so.
5.0.0
b7e77000-b7e79000 rw-p 00082000 08:03 2926776 /usr/lib/libgnokii.so.
5.0.0
b7e79000-b7ebe000 rw-p 00000000 00:00 0
b7ebe000-b7f8d000 r-xp 00000000 08:03 2631912 /usr/lib/
libglib-2.0.so.0.2000.5
b7f8d000-b7f8e000 r--p 000ce000 08:03 2631912 /usr/lib/
libglib-2.0.so.0.2000.5
b7f8e000-b7f8f000 rw-p 000cf000 08:03 2631912 /usr/lib/
libglib-2.0.so.0.2000.5
b7f8f000-b7f92000 r-xp 00000000 08:03 2632192 /usr/lib/
libgmodule-2.0.so.0.2000.5
b7f92000-b7f93000 r--p 00002000 08:03 2632192 /usr/lib/
libgmodule-2.0.so.0.2000.5
b7f93000-b7f94000 rw-p 00003000 08:03 2632192 /usr/lib/
libgmodule-2.0.so.0.2000.5
b7f94000-b7f95000 rw-p 00000000 00:00 0
b7f97000-b7f9e000 r--s 00000000 08:03 770181 /usr/lib/gconv/gconv-
modules.cache
b7f9e000-b7fa1000 r-xp 00000000 08:03 2932931 /usr/lib/smsd/
libsmsd_mysql.so
b7fa1000-b7fa2000 r--p 00002000 08:03 2932931 /usr/lib/smsd/
libsmsd_mysql.so
b7fa2000-b7fa3000 rw-p 00003000 08:03 2932931 /usr/lib/smsd/
libsmsd_mysql.so
b7fa3000-b7fbf000 r-xp 00000000 08:03 2517556 /lib/ld-2.9.so
b7fbf000-b7fc0000 r--p 0001b000 08:03 2517556 /lib/ld-2.9.so
b7fc0000-b7fc1000 rw-p 0001c000 08:03 2517556 /lib/ld-2.9.so
bfb69000-bfb7e000 rw-p 00000000 00:00 0 [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
Aborted
tux ~ #
gnokii --identify
GNOKII Version 0.6.28
Couldn't read /root/.gnokiirc config file.
Couldn't read /root/.gnokiirc config file.
LOG: debug mask is 0x1
Config read from file /etc/gnokiirc.
phone instance config:
model = series40
port = 1
connection = dku2libusb
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Connecting
Serial device: opening device USB
Ignoring extra header, type 171, length 5
Found FBUS interface
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00 |
Message received: 0x1b / 0x003e
01 39 00 08 00 01 58 38 00 31 56 20 30 35 2e 38 | 9 X8 1V 05.8
30 0a 31 38 2d 31 32 2d 30 38 0a 52 4d 2d 34 39 | 0 18-12-08 RM-49
35 0a 28 63 29 20 4e 6f 6b 69 61 20 20 20 20 20 | 5 (c) Nokia
20 20 20 20 20 20 20 0a 55 41 00 00 00 00 | UA
Received message type 1b
model length: 6
Received model RM-495
Identifying...
Message sent: 0x1b / 0x0005
00 01 00 00 41 | A
Message sent: 0x1b / 0x0006
00 01 00 07 01 00 |
Message received: 0x1b / 0x001a
01 39 00 01 00 01 41 14 00 10 33 35 33 32 32 33 | 9 A 353223
30 33 36 37 32 38 36 33 33 00 | 036728633
Received message type 1b
Received imei 353223036728633
Message received: 0x1b / 0x003e
01 39 00 08 00 01 58 38 00 31 56 20 30 35 2e 38 | 9 X8 1V 05.8
30 0a 31 38 2d 31 32 2d 30 38 0a 52 4d 2d 34 39 | 0 18-12-08 RM-49
35 0a 28 63 29 20 4e 6f 6b 69 61 20 20 20 20 20 | 5 (c) Nokia
20 20 20 20 20 20 20 0a 55 41 00 00 00 00 | UA
Received message type 1b
Received revision V 05.80
model length: 6
Received model RM-495
IMEI : 353223036728633
Manufacturer : Nokia
Model : RM-495
Product name : RM-495
Revision : V 05.80
Serial device: closing device
Thank in advance for any help you can provide.
Regards
--
Gustavo Delfino
GPG key ID: AA4063D6
- *** glibc detected *** smsd: free(): invalid pointer: 0x080f1388 ***,
Gustavo Delfino <=