faxgetty exited on signal 6

Ryan Noll <[email protected]> Mon, 28 Mar 2016 22:36:32 -0700
Newsgroups gmane.comp.telephony.fax.hylafax.user
Message-ID <CAGzpdJDsafFX8y8m+8NdowaujBNfVLBkguhD+XQtNjk3h0WiXQ@mail.gmail.com>
Hello,

I am running HylaFax 6.0.6 on FreeBSD 10.2-RELEASE-p7. HylaFax is
currently able to send using spandsp from FreeSwitch 1.4.19 64-bit. (I
am able to send and receive using the internal FreeSwitch txfax and
rxfax.) The only thing that I am currently unable to do is to receive
a fax using HylaFax.

HylaFax was built from source with the CONFIG_OPENFIFO="O_RDWR"
CONFIG_FIFOBUG="yes" compile options to reduce the 100% CPU
utilization experienced under FreeBSD, and this does appear to provide
a workaround on FreeBSD.

The problem that I am experiencing is faxgetty is exiting on signal 6,
and I am not sure how to track down the problem. This is causing the
following messages in FreeSwitch:

[WARNING] mod_spandsp_modem.c:1274 Buffer Full, retrying....
[DEBUG] mod_spandsp_fax.c:286 FLOW T.31 No room in buffer for new data!
[ERR] mod_spandsp_modem.c:109 Unable to pass the full buffer onto the
device file. -1 bytes of 250 written: Resource temporarily unavailable
[DEBUG] mod_spandsp_modem.c:120 Successfully flushed pty buffer


My configuration is as follows:
1. FreeSwitch is running as a non-root user and provides one tty (/dev/pts/0),
2. FreeBSD is configured to update the permissions on /dev/pts/0 to
rw-rw-rw- (0666),
3. When connecting to /dev/pts/0 with cu, I am able to issue commands
such as atz, ati, ati3 and receive responses,
4. When dialing in to the extension, I am able to see RING and the
caller ID information,
5. cache.setup was modified to add HFAXD_ARGS='-l 127.0.0.1' to have
hfaxd listen to the local IPv4 address (for some reason, it was
binding to ::1, IPv6),
6. faxq, hfaxd, and faxgetty start automatically on bootup. HylaFax
starts after FreeSwitch has started up to allow for the spandsp modems
to be created and initialized,
7. The compiler used to compile was clang 3.4.1, RELEASE_34/dot1-final
208032 (20140512), and
8. faxgetty is started under /etc/ttys (I think this is equivalent to
/etc/inittab?).

Below is what normally happens on receipt with HylaFax:

Mar 28 21:00:01.14: [21287]: SESSION BEGIN 000000004 XXXXXXXXXXX
Mar 28 21:00:01.14: [21287]: HylaFAX (tm) Version 6.0.6
Mar 28 21:00:01.14: [21287]: CallID: "1006" "Extension 1006" "1006" "a"
Mar 28 21:00:01.14: [21287]: <-- [4:ATA\r]
Mar 28 21:00:05.29: [21287]: --> [7:CONNECT]
Mar 28 21:00:05.29: [21287]: ANSWER: FAX CONNECTION  DEVICE '/dev/pts/0'
Mar 28 21:00:05.29: [21287]: RECV FAX: begin
Mar 28 21:00:05.29: [21287]: <-- data [32]
Mar 28 21:00:05.29: [21287]: <-- data [2]
Mar 28 21:00:06.23: [21287]: --> [7:CONNECT]
Mar 28 21:00:06.23: [21287]: <-- data [23]
Mar 28 21:00:06.23: [21287]: <-- data [2]
Mar 28 21:00:06.97: [21287]: --> [7:CONNECT]
Mar 28 21:00:06.97: [21287]: <-- data [13]
Mar 28 21:00:06.97: [21287]: <-- data [2]
Mar 28 21:00:07.55: [21287]: --> [2:OK]
Mar 28 21:00:07.55: [21287]: <-- [9:AT+FRH=3\r]
Mar 28 21:00:07.93: [21287]: --> [7:CONNECT]
Mar 28 21:00:09.61: [21287]: --> [2:OK]
Mar 28 21:00:09.61: [21287]: RECV recv TSI (sender id)
Mar 28 21:00:09.61: [21287]: REMOTE TSI "Fax"
Mar 28 21:00:09.61: [21287]: <-- [9:AT+FRH=3\r]
Mar 28 21:00:10.07: [21287]: --> [7:CONNECT]
Mar 28 21:00:10.15: [21287]: --> [2:OK]
Mar 28 21:00:10.15: [21287]: RECV recv DCS (command signal)
Mar 28 21:00:10.15: [21287]: REMOTE wants 14400 bit/s
Mar 28 21:00:10.15: [21287]: REMOTE wants A4 page width (215 mm)
Mar 28 21:00:10.15: [21287]: REMOTE wants A4 page length (297 mm)
Mar 28 21:00:10.15: [21287]: REMOTE wants 7.7 line/mm
Mar 28 21:00:10.15: [21287]: REMOTE wants 2-D MR
Mar 28 21:00:10.15: [21287]: RECV training at v.17 14400 bit/s
Mar 28 21:00:10.15: [21287]: <-- [11:AT+FRM=145\r]
Mar 28 21:00:11.89: [21287]: --> [7:CONNECT]
Mar 28 21:00:13.41: [21287]: RECV: TCF 2736 bytes, 1% non-zero, 2700 zero-run
Mar 28 21:00:13.41: [21287]: --> [10:NO CARRIER]
Mar 28 21:00:13.41: [21287]: <-- [9:AT+FRS=7\r]
Mar 28 21:00:13.47: [21287]: --> [2:OK]
Mar 28 21:00:13.47: [21287]: TRAINING succeeded
Mar 28 21:00:13.47: [21287]: <-- [9:AT+FTH=3\r]
Mar 28 21:00:13.47: [21287]: --> [7:CONNECT]
Mar 28 21:00:13.47: [21287]: <-- data [3]
Mar 28 21:00:13.47: [21287]: <-- data [2]
Mar 28 21:00:14.55: [21287]: --> [2:OK]
Mar 28 21:00:14.55: [21287]: <-- [11:AT+FRM=146\r]
Mar 28 21:00:15.17: [21287]: --> [7:CONNECT]
Mar 28 21:00:15.17: [21287]: RECV: begin page

Right after RECV: begin page, faxgetty exits with

Mar 28 21:00:16 freeswitch kernel: pid 21287 (faxgetty), uid 66:
exited on signal 6

Does anyone have any ideas of what could cause this problem? Like I
mentioned, sending works great. I do not think there is a problem with
FreeSwitch because I can send and receive just with HylaFax I cannot
receive because faxgetty is exiting.

I'm thinking that it could be an abort() call? Perhaps I need to build
with HAS_SYSCONF?

Any ideas would be greatly appreciated.

Thank You,
Ryan


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe [email protected] < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail [email protected].*