[asterisk-users] asterisk-1.6.0.9-x86_64: voicemail: Segmentation fault (core dumped)

Martin asterisklist at callthem.info
Sun Apr 19 14:25:26 CDT 2009


ok,

just in case check if you have /usr/share/zoneinfo/UTC

also if you still have the coredump file ... enter gdb
and do

frame 0
print p
print name

Martin



On Sun, Apr 19, 2009 at 3:31 AM, Justin Piszcz <jpiszcz at lucidpixels.com> wrote:
>
>
> On Sat, 18 Apr 2009, Martin wrote:
>
>> Hi,
>>
>> Your backtrace doesn't make sense to me.
>>
>> Do you have in main/stdtime/localtime.c
>>
>> this function that way ?
>>
>> struct ast_tm *ast_localtime(const struct timeval *timep, struct
>> ast_tm *tmp, const char *zone)
>> {
>>        const struct state *sp = ast_tzset(zone);
>>        memset(tmp, 0, sizeof(*tmp));
>>        return sp ? localsub(timep, 0L, tmp, sp) : NULL;
>> }
>
> Yes, it seems to match:
> 1140 struct ast_tm *ast_localtime(const struct timeval *timep, struct ast_tm *tm     p, const char *zone)
> 1141 {
> 1142   const struct state *sp = ast_tzset(zone);
> 1143   memset(tmp, 0, sizeof(*tmp));
> 1144   return sp ? localsub(timep, 0L, tmp, sp) : NULL;
> 1145 }
>
>>
>> If so your backtrace states:
>>
>>> #3  0x00000000004da92d in ast_tzset (zone=0x7f7f741e5bf9 "UTC")
>>>     at stdtime/localtime.c:1029
>>> #4  0x00000000004db98c in ast_localtime (timep=0x7f7f8407c500,
>>>     tmp=0x7f7f84076ba0, zone=0x0) at stdtime/localtime.c:1142
>>
>> ast_localtime is called with zone=NULL
>> and yet ast_tzset is called with zone = "UTC"
>>
>> you must have downloaded some version with hardcoded "UTC" timezone ...
>> or there's a major memory problem ...
> Memtest86 has run many passed with no errors and I have no other problems
> with any other applications on the machine...
>
> Any other recommendations?
>
>>
>> Martin
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list