store_tool segmentation fault

Alejandro Guerrieri aguerrieri at kannel.org
Thu Jan 29 08:30:49 CET 2009


Alvaro,

First of all, thanks for trying the patch.

I couldn't reproduce the error locally. This is probably related to  
something inside your store rising some unexpected condition that  
store_stool cannot handle.

Could you please mail me the store file you're using so I can try to  
reproduce it? You can use fictitious data and/or search and replace  
the phone numbers if that bothers you, as long as it yields the same  
errors on your platform.

Regards,
--
Alejandro Guerrieri
aguerrieri at kannel.org



On 28/01/2009, at 23:23, Alvaro Cornejo wrote:

> Hi Alex
>
> Encore this other error:
>
> [user at srvcom1 test]# ./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---------------------------------------------------+
> | b7516f02-d05d-4385-a5e0-25972a74d7ce | %2B5255 | +5223 | telcel1
>   | Mensajexxxx |
> | 2efc6586-d0cc-4db7-88a7-5fa695b41cab | %2B5255 | +5222 | telcel1
>   | Mensajexxxx |
>
> +-°¡G-------------------------------------+-P¡G-----------+- 
> h¡G--------- -+----------------+-  
> ¡G---------------------------------------------------+
> 2009-01-28 16:20:36 [25168] [0] PANIC: gwlib/octstr.c:2491:
> seems_valid_real: Assertion `ostr->data[ostr->len] == '\0'' failed.
> (Called from gwlib/octstr.c:324:octstr_destroy.)
> 2009-01-28 16:20:36 [25168] [0] PANIC: ./store_tools(gw_panic+0xc2)  
> [0x80676c2]
> 2009-01-28 16:20:36 [25168] [0] PANIC: ./store_tools [0x8067e6e]
> 2009-01-28 16:20:36 [25168] [0] PANIC:
> ./store_tools(octstr_destroy+0x26) [0x806a2e6]
> 2009-01-28 16:20:36 [25168] [0] PANIC: ./store_tools [0x805b688]
> 2009-01-28 16:20:36 [25168] [0] PANIC:
> ./store_tools(dict_destroy+0x42) [0x805c6a2]
> 2009-01-28 16:20:36 [25168] [0] PANIC: ./store_tools(cfg_destroy+0x23)
> [0x805b643]
> 2009-01-28 16:20:36 [25168] [0] PANIC: ./store_tools(main+0x1ac)  
> [0x804f9dc]
> 2009-01-28 16:20:36 [25168] [0] PANIC:
> /lib/libc.so.6(__libc_start_main+0xdc) [0x355f2c]
> 2009-01-28 16:20:36 [25168] [0] PANIC: ./store_tools [0x804f381]
>
>
>
> | 
> -----------------------------------------------------------------------------------------------------------------|
> 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
> <cornejo.alvaro at gmail.com> 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 at 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 at 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
>>
>




More information about the devel mailing list