[Asterisk-Dev] Re: res_config_mysql.c v1.7

Leonardo F. Bauchwitz lbauchwitz at yahoo.com.ar
Wed Jul 6 09:46:25 MST 2005


Hi Matthew:
I have a  problem with realtime and mysql.
My Asterisk is Asterisk 1.0.9.
I  compiled the res_config_mysql.c 
<http://bugs.digium.com/file_download.php?file_id=3709&type=bug> without 
problems, but when I start Asterisk crash.

The error message is:_

> Segmentation fault
> sast:/usr/src/asterisk-addons# output: fwrite: Broken pipe

If I look /var/log/messages:
 

> ul  6 10:43:27 DEBUG[4003]: MySQL RealTime Host: 127.0.0.1
> Jul  6 10:43:27 DEBUG[4003]: MySQL RealTime Port: 3306
> Jul  6 10:43:27 DEBUG[4003]: MySQL RealTime User: root
> Jul  6 10:43:27 DEBUG[4003]: MySQL RealTime Password: mateamargo2005
> Jul  6 10:43:27 DEBUG[4003]: MySQL RealTime: Successfully connected to 
> database.

The connection to database is ok

If I remove /usr/lib/asterisk/modules/res_config_mysql.so, then  
Asterisk start without a problem

Can you help me?
Leonardo
Leonardo Federico Bauchwitz

Matthew Boehm wrote:

>Before hand I wasn't calling ast_category_new("") and the operations below
>on that struct (ast_variable_append, and ast_category_append) where
>operating on a NULL pointer.
>
>-Matthew
>
>----- Original Message ----- 
>From: "Kevin P. Fleming" <kpfleming at starnetworks.us>
>To: "Asterisk Developers Mailing List" <asterisk-dev at lists.digium.com>
>Sent: Friday, January 28, 2005 12:13 PM
>Subject: Re: [Asterisk-Dev] Re: res_config_mysql.c v1.7
>
>
>  
>
>>Matthew Boehm wrote:
>>    
>>
>>>Seems it works.
>>>
>>>http://bugs.digium.com/bug_view_page.php?bug_id=0003446
>>>      
>>>
>>But that would only make a difference if the Asterisk process is running
>>out of memory. Is that likely to be the actual cause of the problem you
>>are seeing?
>>_______________________________________________
>>Asterisk-Dev mailing list
>>Asterisk-Dev at lists.digium.com
>>http://lists.digium.com/mailman/listinfo/asterisk-dev
>>To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>>    
>>
>
>_______________________________________________
>Asterisk-Dev mailing list
>Asterisk-Dev at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-dev
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>
>  
>




More information about the asterisk-dev mailing list