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

Justin Piszcz jpiszcz at lucidpixels.com
Sun Apr 19 03:31:02 CDT 2009



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




More information about the asterisk-users mailing list