Re: store_tool segmentation fault
Alvaro Cornejo <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Alex
I was retrying the tool to see if it passes and I get the following dump:
Note that the list shows reccords 1-> 100 however at the moment I run
the tool I had over 400 messages queued.
Also note the strange chars on the header lines. I use iso-8891 as my
locale charset
[user@srvcom1 kannel]# ./store_tools -c /etc/kannel/kannel.conf list
Listing records 1 -> 100
+- ¡G-------------------------------------+-h¡G-----------+-X¡G-----------+-h¡G---------------+- ¡G---------------------------------------------------+
| message id | from | to |
smsc | text |
+-°¡G-------------------------------------+-P¡G-----------+-h¡G--------- -+-h¡G---------------+- ¡G---------------------------------------------------+
| 3a795b55-e3af-4003-927a-1daed29d7890 | %2B5255 | +5266 | telcel
| Mensaje xxxx |
| 3ec5ba03-ad3c-4078-b2b1-60631cc80ae8 | %2B5255 | +5232 | telcel
| Mensaje xxxx |
+-x¡G-------------------------------------+-P¡G-----------+-h¡G--------- -+----------------+- ¡G---------------------------------------------------+
*** glibc detected *** ./store_tools: free(): invalid next size
(fast): 0x09a47148 ***
======= Backtrace: =========
/lib/libc.so.6[0x3a609d]
/lib/libc.so.6(cfree+0x90)[0x3a96f0]
./store_tools(octstr_destroy+0x3d)[0x806a2fd]
./store_tools[0x805c283]
./store_tools(dict_destroy+0x49)[0x805c6a9]
./store_tools[0x805b69e]
./store_tools(dict_destroy+0x42)[0x805c6a2]
./store_tools(cfg_destroy+0x23)[0x805b643]
./store_tools(main+0x1ac)[0x804f9dc]
/lib/libc.so.6(__libc_start_main+0xdc)[0x355f2c]
./store_tools[0x804f381]
======= Memory map: ========
00101000-0022f000 r-xp 00000000 fd:00 7757927 /usr/lib/libxml2.so.2.6.29
0022f000-00234000 rwxp 0012d000 fd:00 7757927 /usr/lib/libxml2.so.2.6.29
00234000-00235000 rwxp 00234000 00:00 0
00235000-002bb000 r-xp 00000000 fd:00 7757931 /usr/lib/libkrb5.so.3.2
002bb000-002bd000 rwxp 00086000 fd:00 7757931 /usr/lib/libkrb5.so.3.2
00323000-0033c000 r-xp 00000000 fd:00 1736706 /lib/ld-2.5.so
0033c000-0033d000 r-xp 00018000 fd:00 1736706 /lib/ld-2.5.so
0033d000-0033e000 rwxp 00019000 fd:00 1736706 /lib/ld-2.5.so
00340000-00477000 r-xp 00000000 fd:00 1736722 /lib/libc-2.5.so
00477000-00479000 r-xp 00137000 fd:00 1736722 /lib/libc-2.5.so
00479000-0047a000 rwxp 00139000 fd:00 1736722 /lib/libc-2.5.so
0047a000-0047d000 rwxp 0047a000 00:00 0
0047f000-00481000 r-xp 00000000 fd:00 1736729 /lib/libdl-2.5.so
00481000-00482000 r-xp 00001000 fd:00 1736729 /lib/libdl-2.5.so
00482000-00483000 rwxp 00002000 fd:00 1736729 /lib/libdl-2.5.so
00485000-004aa000 r-xp 00000000 fd:00 1736739 /lib/libm-2.5.so
004aa000-004ab000 r-xp 00024000 fd:00 1736739 /lib/libm-2.5.so
004ab000-004ac000 rwxp 00025000 fd:00 1736739 /lib/libm-2.5.so
004ae000-004c0000 r-xp 00000000 fd:00 7757691 /usr/lib/libz.so.1.2.3
004c0000-004c1000 rwxp 00011000 fd:00 7757691 /usr/lib/libz.so.1.2.3
004c3000-004d6000 r-xp 00000000 fd:00 1736745 /lib/libpthread-2.5.so
004d6000-004d7000 r-xp 00012000 fd:00 1736745 /lib/libpthread-2.5.so
004d7000-004d8000 rwxp 00013000 fd:00 1736745 /lib/libpthread-2.5.so
004d8000-004da000 rwxp 004d8000 00:00 0
005ed000-005f8000 r-xp 00000000 fd:00 1736753
/lib/libgcc_s-4.1.2-20070626.so.1
005f8000-005f9000 rwxp 0000a000 fd:00 1736753
/lib/libgcc_s-4.1.2-20070626.so.1
0086c000-00873000 r-xp 00000000 fd:00 1736757 /lib/librt-2.5.so
00873000-00874000 r-xp 00006000 fd:00 1736757 /lib/librt-2.5.so
00874000-00875000 rwxp 00007000 fd:00 1736757 /lib/librt-2.5.so
00877000-00879000 r-xp 00000000 fd:00 1736779 /lib/libcom_err.so.2.1
00879000-0087a000 rwxp 00001000 fd:00 1736779 /lib/libcom_err.so.2.1
0099f000-00abb000 r-xp 00000000 fd:00 1736798 /lib/libcrypto.so.0.9.8b
00abb000-00acd000 rwxp 0011c000 fd:00 1736798 /lib/libcrypto.so.0.9.8b
00acd000-00ad1000 rwxp 00acd000 00:00 0
00ad4000-00ad5000 r-xp 00ad4000 00:00 0 [vdso]
00b5d000-00b87000 r-xp 00000000 fd:00 7757932 /usr/lib/libgssapi_krb5.so.2.2
00b87000-00b88000 rwxp 00029000 fd:00 7757932 /usr/lib/libgssapi_krb5.so.2.2
00bae000-00bb7000 r-xp 00000000 fd:00 1736744 /lib/libnss_files-2.5.so
00bb7000-00bb8000 r-xp 00008000 fd:00 1736744 /lib/libnss_files-2.5.so
00bb8000-00bb9000 rwxp 00009000 fd:00 1736744 /lib/libnss_files-2.5.so
00bcb000-00bd2000 r-xp 00000000 fd:00 7757929 /usr/lib/libkrb5support.so.0.1
00bd2000-00bd3000 rwxp 00006000 fd:00 7757929 /usr/lib/libkrb5support.so.0.1
00bd5000-00bfa000 r-xp 00000000 fd:00 7757930 /usr/lib/libk5crypto.so.3.0
00bfa000-00bfb000 rwxp 00025000 fd:00 7757930 /usr/lib/libk5crypto.so.3.0
00bfd000-00c3e000 r-xp 00000000 fd:00 1736886 /lib/libssl.so.0.9.8b
00c3e000-00c42000 rwxp 00040000 fd:00 1736886 /lib/libssl.so.0.9.8b
00cb9000-00ccc000 r-xp 00000000 fd:00 1736775 /lib/libnsl-2.5.so
00ccc000-00ccd000 r-xp 00012000 fd:00 1736775 /lib/libnsl-2.5.so
00ccd000-00cce000 rwxp 00013000 fd:00 1736775 /lib/libnsl-2.5.so
00cce000-00cd0000 rwxp 00cce000 00:00 0
00ce2000-00cf1000 r-xp 00000000 fd:00 1736777 /lib/libresolv-2.5.so
00cf1000-00cf2000 r-xp 0000e000 fd:00 1736777 /lib/libresolv-2.5.so
00cf2000-00cf3000 rwxp 0000f000 fd:00 1736777 /lib/libresolv-2.5.so
00cf3000-00cf5000 rwxp 00cf3000 00:00 0
00d25000-00d2a000 r-xp 00000000 fd:00 1736914 /lib/libcrypt-2.5.so
00d2a000-00d2b000 r-xp 00004000 fd:00 1736914 /lib/libcrypt-2.5.so
00d2b000-00d2c000 rwxp 00005000 fd:00 1736914 /lib/libcrypt-2.5.so
00d2c000-00d53000 rwxp 00d2c000 00:00 0
0640d000-0652d000 r-xp 00000000 fd:00 8390015
/usr/lib/mysql/libmysqlclient_r.so.15.0.0
0652d000-0656f000 rwxp 00120000 fd:00 8390015
/usr/lib/mysql/libmysqlclient_r.so.15.0.0
0656f000-06570000 rwxp 0656f000 00:00 0
08048000-08083000 r-xp 00000000 fd:00 22708313 /etc/kannel/store_tools
08083000-08084000 rw-p 0003b000 fd:00 22708313 /etc/kannel/store_tools
08084000-08112000 rw-p 08084000 00:00 0
099cd000-09b38000 rw-p 099cd000 00:00 0
b7faf000-b7fb4000 rw-p b7faf000 00:00 0
b7fca000-b7fcc000 rw-p b7fca000 00:00 0
bfa51000-bfa66000 rw-p bfa51000 00:00 0 [stack]
Aborted
[usert@srvcom1 kannel]#
|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com
On Wed, Jan 28, 2009 at 4:55 PM, Alvaro Cornejo
<[email protected]> wrote:
> Hi Alex
>
> I'v downloaded your store_tool and try to use; however, I got an
> segmentation fault when listing the store:
>
> Message and phone numbers were changed due messages are from
> production. Kannel wasn't affected by fault.
>
> [user@srvcom1 kannel]# ./store_tools -c /etc/kannel/kannel.conf list
> Listing records 1 -> 100
> +-EURO ¡G-------------------------------------+-h¡G-----------+-X¡G-----------+-h¡G---------------+-EURO ¡G---------------------------------------------------+
> | message id | from | to |
> smsc | text |
> +-°¡G-------------------------------------+-P¡G-----------+-h¡G--------- -+-h¡G---------------+- ¡G---------------------------------------------------+
> | b92be2b7-ffbd-4518-97eb-a078cd0bd8d5 | %2B5255 | +5255 | telcel
> | Mensaje xxxx |
> | b636a904-1a2f-4daa-a673-3ea6bb58e167 | %2B52 | +5244 | telcel
> |Mensaje xxxx |
> | f56b70b1-39cc-4212-a3ee-33f309ee6cf0 | %2B5255 | +5244 | telcel
> | Mensaje xxxx |
> | cd3e247a-d805-4369-b02a-e62a7a1ee84a | %2B5255 | +5246 | telcel
> | Mensaje xxxx|
> | 607a0aec-1802-4249-97b5-bd046f1e0be4 | %2B5255 | +5244 | telcel
> | Mensaje xxxx|
> | 774db93e-d81f-4ebc-8861-01d520f5d722 | %2B5255 | +5222 | telcel
> | Mensaje xxxx|
> | 4f691990-b2a3-413d-9953-460290f1cc12 | %2B5255 | +5247 | telcel
> | Mensaje xxxx |
> Segmentation fault
> [user@srvcom1 kannel]#
>
> I use:
>
> Kannel bearerbox version `cvs-20090121'. Build `Jan 21 2009 09:57:51',
> compiler `4.1.2 20070626 (Red Hat 4.1.2-13)'. System Linux, release
> 2.6.20-1.2962.fc6, version #1 SMP Tue Jun 19 19:27:14 EDT 2007,
> machine i686. Hostname hostname, IP 10.10.5.2. Libxml version 2.6.29.
> Using OpenSSL 0.9.8b 04 May 2006. Compiled with MySQL 5.0.27, using
> MySQL 5.0.27. Using native malloc.
>
> Also I use store-type = spool.
>
> If you need more info or that I run additional commands, let me know.
>
> Regards
>
>
> Alvaro
>
> |-----------------------------------------------------------------------------------------------------------------|
> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
> celular y Nextel
> en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
> SMS y GPRS online
> Visitenos en www.perusms.NET www.smsglobal.com.mx y
> www.pravcom.com
>