Faxsend crashes while trying to play file

Bug #638789 reported by CountZero
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HylaFAX
New
Undecided
Unassigned
hylafax (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hello!
I tried to play rmd file into line through modem (I used various modems: Zyxel Omni 56K and Acorp Sprinter 56K), but program faxsend from package hylafax seems to be crashed when trying to do it. Version from Ubuntu packages (Lucid Lynx and Maverick) does not give any error message, but version from sources from hylafax.org (6.0.4) gives message "FaxSend[10970]: Assertion failed "Invalid Str[] index", file ".././libhylafax/Str.h" line 106.". It is not a problem of audio format or modem, because version Hylafax 5.2.7 from AltLinux plays it OK.

Revision history for this message
Giuseppe Sacco (eppesuig) wrote :

Hi,
could you please better explain how you play such file? What command options are you giving?

Revision history for this message
CountZero (countzero1981) wrote :

1) I installed hylafax-client and hylafax-server.
2) Fixed problem with Fontmap (Bug #372605, path /var/lib/defoma/gs.d/dirs/fonts is still not added into default /etc/hylafax/hyla.conf from package, though this bug is marked as "Fix Commited")
3) I ran faxsetup and faxaddmodem (my config is in attach). My modem dial string is following:
ModemDialCmd: "ATS7=50\nAT+FCLASS=8&H3\nAT+VRN=0;+VTD=10\nAT+VGT=130\nAT+FLO=1\nAT+VSM=4,9600\nATDT%s\n<waitfor:VCON>AT+VTX\n<waitfor:CONNECT><play:1>AT&H4+FCLASS=1\nATX3D"

Instead of <play:1> I also tried <play:play1.raw>, <play:/var/spool/hylafax/etc/play1.raw>

Revision history for this message
CountZero (countzero1981) wrote :

In the attachment is log of hylafax, below is contents of /var/log/daemon.log:

Sep 15 15:42:09 countzero-desktop FaxSend[6514]: MODEM ZYXEL V.92/V.44 1.01 1610/
Sep 15 15:42:09 countzero-desktop FaxSend[6514]: SEND FAX: JOB 4 DEST 989628621247 COMMID 000000001 DEVICE '/dev/ttyS0' FROM 'Alex <countzero@countzero-desktop>' USER countzero
Sep 15 15:42:13 countzero-desktop FaxSend[6514]: Assertion failed "Invalid Str[] index", file ".././libhylafax/Str.h" line 106.
Sep 15 15:42:13 countzero-desktop FaxQueuer[5022]: JOB 4: Send program terminated abnormally with exit status 0x6
Sep 15 15:42:13 countzero-desktop FaxQueuer[5022]: NOTIFY: bin/notify "doneq/q4" "failed" "0:00:14"
Sep 15 15:42:13 countzero-desktop FaxQueuer[5022]: NOTIFY exit status: 0 (6754)
Sep 15 15:42:37 countzero-desktop FaxGetty[6493]: MODEM ZYXEL V.92/V.44 1.01 1610/

Revision history for this message
Giuseppe Sacco (eppesuig) wrote :

In order to collect more information, could you change ServerTracing and SessionTracing to 8FFFF, restart hylafax, produce the error, and then send the relevant log from /var/log/messages ?
Thanks

Revision history for this message
CountZero (countzero1981) wrote :

I'm using the following command to try to send fax:
/usr/bin/sendfax -t 1 -T 1 -R -n -I 120 -h localhost -d 989628621247 1.txt

Revision history for this message
CountZero (countzero1981) wrote :
Revision history for this message
CountZero (countzero1981) wrote :
Revision history for this message
CountZero (countzero1981) wrote :
Revision history for this message
CountZero (countzero1981) wrote :

My /var/log/messages is empty, seems that my Kubuntu puts all debugging information into other log files. I attached them all.

Revision history for this message
Giuseppe Sacco (eppesuig) wrote :

Do you have the same result using hylafax 6.0.4-10ubuntu1 from maverick?

Revision history for this message
CountZero (countzero1981) wrote :

I tried update to the new version of hylafax-client from maverick and get an error:
Installing new version of file /etc/hylafax/typerules ...
cp: «/etc/hylafax/pagesizes» and «/var/spool/hylafax/etc/pagesizes» is the same file
dpkg: failed to process hylafax-client (--install)

I made "aptitude purge" and installed new version. I still getting the same error when trying to play audio file...

Revision history for this message
Giuseppe Sacco (eppesuig) wrote :

Right, the upgrade error is known and it is the reason to upgrade to 6.0.4-10.
I will open a bug report against hylafax and set this as forwarded there. Let see what upstream say about this problem.

Thanks,
Giuseppe

Changed in hylafax (Ubuntu):
status: New → Confirmed
Revision history for this message
Aidan Van Dyk (aidan) wrote :

Do you have a session log?
   /var/spool/hylafax/log/c000000009

Let's hope SessionTracing is set to something high for that.

Revision history for this message
Aidan Van Dyk (aidan) wrote :

Nevermind, I found c000000001

Revision history for this message
Giuseppe Sacco (eppesuig) wrote :

From upstream developers:
-------------------------------------------------------------------------------------
I've been able to replicate this problem and we found the cause of it. We are
working on a proper fix.

In the mean time, a work around for this bug is to duplicate the ModemDialCmd
line in the config file. (both uncommented and having the same value)
-------------------------------------------------------------------------------------

CountZero, could you please check if the proposed workaround works on your system?

Thanks,
Giuseppe

Revision history for this message
CountZero (countzero1981) wrote :

Yes, it works fine now

Revision history for this message
CountZero (countzero1981) wrote :

Thank you!

Graham Binns (gmb)
Changed in hylafax:
importance: Unknown → Undecided
status: Unknown → New
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.