SEGFAULT FFA sending Manager event (1.8.2)

Community-based Support for users of Free Fax For Asterisk

SEGFAULT FFA sending Manager event (1.8.2)

Postby stevebrandli » Sun Jan 16, 2011 9:33 pm

Now that the redirect hangup problem is fixed, I retested receiving a fax. I received a segfault. I'm hoping someone from Digium is monitoring this so that they can look into the bug. Or perhaps someone can tell me where this should be posted. It's not an Asterisk bug.

Problem: After the fax is received (successfully I might add), the Digium code calls __ast_manager_event_multichan(), a variadic function (which is in asterisk/main/manager.c). I believe this function sends manager events. If there are any manager hooks registered, then this code builds the event to send to that hook.

This function takes a format string in the printf style. The beginning of the string, which is rather long, contains "Channel: %s\r\n" indicating that the first variable to substitute should be a string. However, the first value sent into the variable argument portion of __ast_manager_event_multichan() appears to be a 1. The third through fifth arguments are strings that appear to match the format string. Just this one (the first) value is wrong.

Without source for the digium fax module, I can't determine why this is happening.
stevebrandli
Newsterisk
 
Posts: 25
Joined: Tue Oct 12, 2010 11:41 pm

Re: SEGFAULT FFA sending Manager event (1.8.2)

Postby malcolmd » Mon Jan 17, 2011 12:11 pm

Howdy,

Send me your architecture and processor type to my username @ digium.com. We've got something you can try.

Cheers.
Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 3019
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: SEGFAULT FFA sending Manager event (1.8.2)

Postby stevebrandli » Tue Jan 18, 2011 7:46 pm

I am told that an updated library will be posted on Digium's download site shortly that will fix this problem. Thanks to malcolmd for such rapid help on this one.
stevebrandli
Newsterisk
 
Posts: 25
Joined: Tue Oct 12, 2010 11:41 pm

Re: SEGFAULT FFA sending Manager event (1.8.2)

Postby malcolmd » Wed Jan 19, 2011 8:30 am

No problem. :)

To add, stevebrandli noted, via e-mail, that the update did fix the reported issue.
Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 3019
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: SEGFAULT FFA sending Manager event (1.8.2)

Postby gkrawiec » Thu Jan 20, 2011 6:22 pm

can you please share with me what the fix for this is?
my environment is now.
----------------------
PBX in a Flash Version = 1.7.5.5
FreePBX Version = 2.8.0.4
Running Asterisk Version = Asterisk 1.8.2.1
Asterisk Source Version = 1.8.2.1
Dahdi Source Version = 2.4.0+2.4.0
Libpri Source Version = 1.4.11.5
IP Address = 192.168.3.99 on eth0
Operating System = CentOS release 5.5 (Final)
Kernel Version = 2.6.18-194.32.1.el5 - 32 Bit
----------------------
i couldnt get free fax for asterisk to work plus I had the blind transfer bug, so yesterday i upgraded to this
version. Now it seems blind transfer is fine, but fax is worse. When fax is called, asterisk crashes and restarts instantaneously.
Is there a patch for this?
if yes, can you please give me a link to it and instructions on how to apply it?
thanks,
-gk
gkrawiec
Newsterisk
 
Posts: 1
Joined: Thu Jan 20, 2011 6:11 pm

Re: SEGFAULT FFA sending Manager event (1.8.2)

Postby malcolmd » Fri Jan 21, 2011 8:03 am

Howdy,

Send me your architecture and processor type to my username @ digium.com.

Cheers.
Malcolm Davenport
Digium, Inc. | Senior Product Manager
malcolmd
Moves Like Spencer
 
Posts: 3019
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: SEGFAULT FFA sending Manager event (1.8.2)

Postby TimmiOrg » Wed Feb 02, 2011 4:46 pm

Hi All,

it's looks like I have the same problem.

I send already a PM to malcolmd with the requested information.

best regards
Christoph
TimmiOrg
Newsterisk
 
Posts: 17
Joined: Wed Feb 02, 2011 4:39 pm

Re: SEGFAULT FFA sending Manager event (1.8.2)

Postby TimmiOrg » Fri Feb 04, 2011 11:08 am

The Fix from malcolmd is working!
Thx for the great support.

best regards
TimmiOrg
TimmiOrg
Newsterisk
 
Posts: 17
Joined: Wed Feb 02, 2011 4:39 pm


Return to Fax For Asterisk

Who is online

Users browsing this forum: No registered users and 1 guest