mgetty hangs linux system

Gert Doering (gert@greenie.muc.de)
Tue, 30 Jun 1998 21:27:23 +0200


Hi,

I haven't heard about such a problem before, and I can assure you that
it's not mgetty's fault -- and even if it were, it's the system's fault if
a "bad" process can make the system hang.

I have quoted your mail completely, and set a CC: to the mgetty mailing
list.  Maybe someone out there has any tips on this.

What I find "suspcious" is that ttyS2 and ttyS3 seem to share the IRQ
number with the ttyS0 and ttyS1 ports.  Unless you have special hardware
that can do this (PCI cards, and multiport boards that can share IRQs
between ports ON THE SAME CARD), this won't work.  It might seem to, but
bad things will happen sooner or later.

This "high speed serial card", does it use the standard system serial
driver?  If yes, the driver should be ok (if not: try to get an update).

Try using different IRQ settings, or using ttyS0 / S1, and see whether
that changes the problem.

gert


Ian Leonard wrote:
> I hope I provide the information required and that I haven't missed
> anything.  Firstly, thanks for providing mgetty - it has been doing a great
> job - until now.
> 
> Background:  We have installed mgetty on a linux system and it has been
> running for months.  We recently got a new Netcomm modem for a person who
> dials up to our office.  They get a connection, then 'junk' appears on
> their terminal screen.  Shortly afterwards the linux machine 'hangs'.  The
> only way out is to reboot the machine with the reset button.  This has only
> been happening (as far as I know) with the new modem.  The new modem is not
> connected to the Linux box, just a dial up client.  I upgraded mgetty to
> the latest beta version and it still has the same problem.  These notes are
> after the upgrade.  I am only using mgetty for a dialin service - we often
> use ppp over the link.  faxes are not used at all.
> 
> I have included what I think are all relevant details below.  Thanks for
> any info you can give me and let me know if there is anything I can do at
> this end.
> 
> Regards
> Ian Leonard
> Denver Technology (Australia)
> 
> Operating System Information
> # uname -a
> Linux boulder.denver.com.au 2.0.27 #1 Thu Oct 23 15:39:59 WST 1997 i486
> Jun 30 11:40:32 boulder kernel: Symbols match kernel version 2.0.27.
> Jun 30 11:40:32 boulder kernel: Linux version 2.0.27
> (root@boulder.denver.com.au) (gcc version 2.7.2.1) #1 Thu Oct 23 15:39:59
> WST 1997
> Jun 30 11:40:32 boulder kernel: Serial driver version 4.13 with no serial
> options enabled
> Jun 30 11:40:32 boulder kernel: tty00 at 0x03f8 (irq = 4) is a 16550A
> Jun 30 11:40:32 boulder kernel: tty01 at 0x02f8 (irq = 3) is a 16550A
> Jun 30 11:40:32 boulder kernel: tty02 at 0x03e8 (irq = 4) is a 16550A
> Jun 30 11:40:32 boulder kernel: tty03 at 0x02e8 (irq = 3) is a 16550A
> 
> 
> Modem Information:
> 
> I was using a Hayes Accura 336 Message Modem Version 6.20
> I replaced it with a Discovery 56000 fax modem
> 
> Both modems are experiencing the same problems.
> 
> Serial Card:
> 
> The machine has a two port serial card:
> Banksia High Speed Serial Card.
> 
> The mgetty log file.
> 
> This shows a connection attempt at 17:19 that received some junk from the
> other end.  The server was restarted and mgetty restarted at 17:22.
> 
> 06/30 17:18:40 yS2  mgetty: experimental test release 1.1.14-Apr02
> 06/30 17:18:40 yS2  check for lockfiles
> 06/30 17:18:40 yS2   checklock: stat failed, no file
> 06/30 17:18:40 yS2  locking the line
> 06/30 17:18:40 yS2   makelock(ttyS2) called
> 06/30 17:18:40 yS2   do_makelock: lock='/var/lock/LCK..ttyS2'
> 06/30 17:18:40 yS2   lock made
> 06/30 17:18:40 yS2  can't get group 'modem': No such file or directory
> 06/30 17:18:40 yS2   tio_get_rs232_lines: status: RTS CTS DSR DTR
> 06/30 17:18:40 yS2  lowering DTR to reset Modem
> 06/30 17:18:41 yS2   tss: set speed to 38400 (017)
> 06/30 17:18:41 yS2   tio_set_flow_control( HARD )
> 06/30 17:18:41 yS2   waiting for line to clear (VTIME), read: 
> 06/30 17:18:41 yS2  send: \dATQ0V1H0[0d]
> 06/30 17:18:41 yS2  waiting for ``OK''
> 06/30 17:18:41 yS2   got: ATQ0V1H0[0d][0d][0a]OK ** found **
> 06/30 17:18:42 yS2  send: ATS0=0Q0&D3&C1[0d]
> 06/30 17:18:42 yS2  waiting for ``OK''
> 06/30 17:18:42 yS2   got: [0d][0a]ATS0=0Q0&D3&C1[0d][0d][0a]OK ** found **
> 06/30 17:18:42 yS2  mdm_send: 'ATI'
> 06/30 17:18:42 yS2   mdm_gis: string 1: '56000'
> 06/30 17:18:42 yS2   mdm_identify: string '56000'
> 06/30 17:18:42 yS2  Generic Rockwell modem (56000)
> 06/30 17:18:42 yS2  mdm_send: 'ATI3'
> 06/30 17:18:42 yS2   mdm_gis: string 1: 'V1.120-K56_DLS'
> 06/30 17:18:42 yS2  mdm_send: 'ATI4'
> 06/30 17:18:42 yS2   mdm_gis: string 1: '56000bps Voice Modem For Australia'
> 06/30 17:18:42 yS2  additional info: '56000bps Voice Modem For Australia'
> 06/30 17:18:42 yS2  modem quirks: 0004
> 06/30 17:18:42 yS2  mdm_send: 'AT+FCLASS=2'
> 06/30 17:18:42 yS2   mdm_command: string 'AT+FCLASS=2'
> 06/30 17:18:42 yS2   mdm_command: string 'ERROR' -> ERROR
> 06/30 17:18:42 yS2  mdm_send: 'AT+FCLASS=2.0'
> 06/30 17:18:42 yS2   mdm_command: string 'AT+FCLASS=2.0'
> 06/30 17:18:42 yS2   mdm_command: string 'ERROR' -> ERROR
> 06/30 17:18:42 yS2  mdm_send: 'AT+FCLASS=2'
> 06/30 17:18:42 yS2   mdm_command: string 'AT+FCLASS=2'
> 06/30 17:18:42 yS2   mdm_command: string 'ERROR' -> ERROR
> 06/30 17:18:42 yS2   no class 2/2.0 faxmodem, no faxing available
> 06/30 17:18:42 yS2   waiting for line to clear (VTIME), read: 
> 06/30 17:18:42 yS2   removing lock file
> 06/30 17:18:42 yS2  waiting...
> 06/30 17:18:43 yS2   checking lockfiles, locking the line
> 06/30 17:18:43 yS2   makelock(ttyS2) called
> 06/30 17:18:43 yS2   do_makelock: lock='/var/lock/LCK..ttyS2'
> 06/30 17:18:43 yS2   lock made
> 06/30 17:18:43 yS2  waiting for ``RING''
> 06/30 17:18:43 yS2   got: [0d][0a]RING ** found **
> 06/30 17:18:43 yS2  send: ATA[0d]
> 06/30 17:18:43 yS2  waiting for ``CONNECT''
> 06/30 17:18:43 yS2   got: [0d][0a]ATA[0d][0d][0a]CONNECT ** found **
> 06/30 17:19:03 yS2  send: 
> 06/30 17:19:03 yS2  waiting for ``_''
> 06/30 17:19:03 yS2   got:  38400[0d][0a] ** found **
> 06/30 17:19:03 yS2   waiting for line to clear (VTIME), read:
> [ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff][ff]
> 06/30 17:19:03 yS2   utmp + wtmp entry made
> 06/30 17:19:04 yS2   tio_set_flow_control( HARD )
> 06/30 17:19:04 yS2   print welcome banner (/etc/issue)
> 06/30 17:19:04 yS2   getlogname (AUTO_PPP), read:
> --
> 06/30 17:22:00 yS2  mgetty: experimental test release 1.1.14-Apr02
> 06/30 17:22:00 yS2  check for lockfiles
> 06/30 17:22:00 yS2   checklock: stat failed, no file
> 06/30 17:22:00 yS2  locking the line
> 06/30 17:22:00 yS2   makelock(ttyS2) called
> 06/30 17:22:00 yS2   do_makelock: lock='/var/lock/LCK..ttyS2'
> 06/30 17:22:00 yS2   lock made
> 06/30 17:22:00 yS2  can't get group 'modem': No such file or directory
> 06/30 17:22:01 yS2   tio_get_rs232_lines: status: RTS CTS DSR DTR
> 06/30 17:22:01 yS2  lowering DTR to reset Modem
> 06/30 17:22:02 yS2   tss: set speed to 38400 (017)
> 06/30 17:22:02 yS2   tio_set_flow_control( HARD )
> 06/30 17:22:02 yS2   waiting for line to clear (VTIME), read: 
> 06/30 17:22:02 yS2  send: \dATQ0V1H0[0d]
> 06/30 17:22:02 yS2  waiting for ``OK''
> 06/30 17:22:02 yS2   got: ATQ0V1H0[0d][0d][0a]OK ** found **
> 06/30 17:22:02 yS2  send: ATS0=0Q0&D3&C1[0d]
> 06/30 17:22:02 yS2  waiting for ``OK''
> 06/30 17:22:02 yS2   got: [0d][0a]ATS0=0Q0&D3&C1[0d][0d][0a]OK ** found **
> 06/30 17:22:02 yS2  mdm_send: 'ATI'
> 06/30 17:22:02 yS2   mdm_gis: string 1: '56000'
> 06/30 17:22:02 yS2   mdm_identify: string '56000'
> 06/30 17:22:02 yS2  Generic Rockwell modem (56000)
> 06/30 17:22:02 yS2  mdm_send: 'ATI3'
> 06/30 17:22:02 yS2   mdm_gis: string 1: 'V1.120-K56_DLS'
> 06/30 17:22:02 yS2  mdm_send: 'ATI4'
> 06/30 17:22:02 yS2   mdm_gis: string 1: '56000bps Voice Modem For Australia'
> 06/30 17:22:02 yS2  additional info: '56000bps Voice Modem For Australia'
> 06/30 17:22:02 yS2  modem quirks: 0004
> 06/30 17:22:03 yS2  mdm_send: 'AT+FCLASS=2'
> 06/30 17:22:03 yS2   mdm_command: string 'AT+FCLASS=2'
> 06/30 17:22:03 yS2   mdm_command: string 'ERROR' -> ERROR
> 06/30 17:22:03 yS2  mdm_send: 'AT+FCLASS=2.0'
> 06/30 17:22:03 yS2   mdm_command: string 'AT+FCLASS=2.0'
> 06/30 17:22:03 yS2   mdm_command: string 'ERROR' -> ERROR
> 06/30 17:22:03 yS2  mdm_send: 'AT+FCLASS=2'
> 06/30 17:22:03 yS2   mdm_command: string 'AT+FCLASS=2'
> 06/30 17:22:03 yS2   mdm_command: string 'ERROR' -> ERROR
> 06/30 17:22:03 yS2   no class 2/2.0 faxmodem, no faxing available
> 06/30 17:22:03 yS2   waiting for line to clear (VTIME), read: 
> 06/30 17:22:03 yS2   removing lock file
> 06/30 17:22:03 yS2  waiting...
> 
> 
> 
> 


-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de