asterisk-app-fax crashes Asterisk

Bug #325787 reported by beniwtv
8
Affects Status Importance Assigned to Milestone
asterisk-spandsp-plugins (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi all,

I have installed asterisk-app-fax from the repos, but every time I try to RxFax, Asterisk crashes after a few seconds (Segmentation fault).

Here's my config:
exten => _[a-zA-Z0-9].,1,Answer()
exten => _[a-zA-Z0-9].,2,RxFax(/tmp/file.tif)

Asterisk logs do not say anything either.

(NOTE: This is on Hardy LTS, fully up-to-date), Package version is: asterisk-app-fax 0.0.20070624-1

Found a Debian bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479612. Might that apply to Ubuntu as well?

Strace:

0x7fff9a60593f, 1) = ? ERESTARTSYS (To be restarted)
--- SIGURG (Urgent I/O condition) @ 0 (0) ---
rt_sigaction(SIGURG, {0x422300, [URG], SA_RESTORER|SA_RESTART, 0x7f04913c4100}, {0x422300, [URG], SA_RESTORER|SA_RESTART, 0x7f04913c4100}, 8) = 0
rt_sigreturn(0x17) = 0
read(0, 0x7fff9a60593f, 1) = ? ERESTARTSYS (To be restarted)
--- SIGURG (Urgent I/O condition) @ 0 (0) ---
rt_sigaction(SIGURG, {0x422300, [URG], SA_RESTORER|SA_RESTART, 0x7f04913c4100}, {0x422300, [URG], SA_RESTORER|SA_RESTART, 0x7f04913c4100}, 8) = 0
rt_sigreturn(0x17) = 0
read(0, 0x7fff9a60593f, 1) = ? ERESTARTSYS (To be restarted)
+++ killed by SIGSEGV (core dumped) +++
Process 4404 detached

Revision history for this message
enzo (jdespatis) wrote :

I have the same problem as you

I have a fresh install of ubuntu 9.04, with :
* libspandsp1 0.0.5~pre4-1
* asterisk-app-fax 0.0.20070624-2ubuntu1

And each time I get a fax, RxFax is called and crashes Asterisk, I can see the last error:
    -- AGI Script Executing Application: (RxFAX) Options: (/tmp/asterisk_faxreceive.sourcerh.00007.00001.gEKVnS/fax.tiff)
asterisk: symbol lookup error: /usr/lib/asterisk/modules/app_rxfax.so: undefined symbol: t30_set_local_ident
Died at /usr/share/asterisk/agi-bin/receive_fax line 233, <stdin> line 21.

As a result I think asterisk-app-fax has been compiled with a wrong version of libspandsp

In fact, i've found somewhere this link which reports the compilation of asterisk-spandsp-plugins_0.0.20070624-2 as a success
http://www.linux-m32r.org/pipermail/build-status/Week-of-Mon-20080922/171649.html

However it shows warnings:
app_rxfax.c:288: warning: implicit declaration of function 't30_set_local_ident'

The compilation is thought to be good, but not at all, because it generates error when using RxFax

So I hope Ubuntu will upgrade soon compatible versions of asterisk-app-fax and libspandsp1, because for now, it's unusable...

Revision history for this message
Ivan Bonacci (bons) wrote :

i had experience on asteriskNow distro and often fighted with the faxoverip reliability

i compiled spandsp and also rx_fax and tx_fax with the same errors but they where working anyway

check the spandsp lib version in use is correspondig to the apps
and check the asterisk makefile patching procedure

http://www.asteriskguru.com/tutorials/spandsp.html

using app_rxfax.c, app_txfax.c and apps_makefile.patch

maybe same patching procedure will work for ubuntu

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.