Re: a modem problem introduced in 2.2.4

Sergei Ivanov (svivanov@pdmi.ras.ru)
Sun, 4 Apr 1999 17:46:26 +0400 (MSD)


> >
> > The changes to drivers/char/serial.c made between 2.2.3 and 2.2.4
> > introduced a problem with my modem and uucp. It remains there
> > under 2.2.5.
> >
> > In short, the problem is that uucp can dial out only once after boot.
> > The next time it tries, it fails to place a call. This is 100%
> > reproducible. But I could not obtain this effect from other programs
> > and I don't know what exactly uucp does to the serial port.
>
> Serge, could you strace it? I.e.
> strace -s8192 uucico <arguments> 2>/tmp/foo
> List of system calls done by the beast would be useful.
> Cheers,
> Al

Here it is. Removed tons of gettimeofdays and log writes.

Sergei

[...]
open("/dev/ttyS1", O_RDWR|O_NONBLOCK) = 7
fcntl(7, F_GETFD) = 0
fcntl(7, F_SETFD, FD_CLOEXEC) = 0
fcntl(7, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
ioctl(7, TCGETS, {B9600 opost isig icanon echo ...}) = 0
ioctl(7, TCFLSH, TCIFLUSH) = 0
ioctl(7, SNDCTL_TMR_START, {B19200 -opost -isig -icanon -echo ...}) = 0
ioctl(7, TCGETS, {B19200 -opost -isig -icanon -echo ...}) = 0
ioctl(7, TIOCSCTTY) = 0
ioctl(7, SNDCTL_TMR_START, {B19200 -opost -isig -icanon -echo ...}) = 0
ioctl(7, TCGETS, {B19200 -opost -isig -icanon -echo ...}) = 0
ioctl(7, SNDCTL_TMR_START, {B19200 -opost -isig -icanon -echo ...}) = 0
ioctl(7, TCGETS, {B19200 -opost -isig -icanon -echo ...}) = 0
fcntl(7, F_SETFL, O_RDWR) = 0
write(7, "AT", 2) = 2
write(7, "\r", 1) = 1
SYS_174(0xe, 0xbffff4cc, 0, 0x8, 0xe) = 0
alarm(3) = 0
read(7, "AT", 16383) = 2
SYS_174(0xe, 0xbffff4cc, 0, 0x8, 0xe) = 0
alarm(0) = 3
SYS_174(0xe, 0xbffff4cc, 0, 0x8, 0xe) = 0
alarm(3) = 0
read(7, "\r", 16382) = 1
SYS_174(0xe, 0xbffff4cc, 0, 0x8, 0xe) = 0
alarm(0) = 3
SYS_174(0xe, 0xbffff4cc, 0, 0x8, 0xe) = 0
alarm(3) = 0
read(7, "\r\nOK\r\n", 16381) = 6
SYS_174(0xe, 0xbffff4cc, 0, 0x8, 0xe) = 0
alarm(0) = 3
write(7, "ATZ", 3) = 3
write(7, "\r", 1) = 1
SYS_174(0xe, 0xbffff4cc, 0, 0x8, 0xe) = 0
alarm(60) = 0
read(7, "ATZ\r", 16375) = 4
SYS_174(0xe, 0xbffff4cc, 0, 0x8, 0xe) = 0
alarm(0) = 60
SYS_174(0xe, 0xbffff4cc, 0, 0x8, 0xe) = 0
alarm(60) = 0
read(7, "\r\nOK\r\n", 16371) = 6
SYS_174(0xe, 0xbffff4cc, 0, 0x8, 0xe) = 0
alarm(0) = 60

[ And so on ]

read(7, "\r\nCONNECT 14400/", 16353) = 16
SYS_174(0xe, 0xbffff4cc, 0, 0x8, 0xe) = 0
alarm(0) = 28
ioctl(7, SNDCTL_TMR_START, {B19200 -opost -isig -icanon -echo ...}) = 0
ioctl(7, TCGETS, {B19200 -opost -isig -icanon -echo ...}) = 0
ioctl(7, SNDCTL_TMR_START, {B19200 -opost -isig -icanon -echo ...}) = 0
ioctl(7, TCGETS, {B19200 -opost -isig -icanon -echo ...}) = 0
open("/dev/ttyS1", O_RDWR) = 6
fcntl(6, F_GETFD) = 0
fcntl(6, F_SETFD, FD_CLOEXEC) = 0
fcntl(6, F_GETFL) = 0x2 (flags O_RDWR)
ioctl(6, SNDCTL_TMR_START, {B19200 -opost -isig -icanon -echo ...}) = 0
ioctl(6, TCGETS, {B19200 -opost -isig -icanon -echo ...}) = 0
close(7) = 0
SYS_174(0xe, 0xbffff524, 0, 0x8, 0xe) = 0
alarm(10) = 0
read(6, "ARQ/V32/LAPM/V42BIS\r\n", 16337) = 21
SYS_174(0xe, 0xbffff524, 0, 0x8, 0xe) = 0
alarm(0) = 10

[ Long read/write story ]

ioctl(6, SNDCTL_TMR_START, {B19200 -opost -isig -icanon -echo ...}) = 0
ioctl(6, TCGETS, {B19200 -opost -isig -icanon -echo ...}) = 0
ioctl(6, SNDCTL_TMR_START, {B19200 -opost -isig -icanon -echo ...}) = 0
ioctl(6, TCGETS, {B19200 -opost -isig -icanon -echo ...}) = 0
SYS_174(0x1, 0, 0xbffff504, 0x8, 0x1) = 0
SYS_174(0x1, 0xbffff590, 0, 0x8, 0x1) = 0
SYS_175(0, 0xbffff668, 0xbffff5e8, 0x8, 0) = 0
SYS_175(0x2, 0xbffff744, 0, 0x8, 0x2) = 0
nanosleep(0xbffff61c, 0, 0x401177dc, 0, 0x8082c49) = 0
nanosleep(0xbffff61c, 0, 0x401177dc, 0, 0x8082c49) = 0
nanosleep(0xbffff61c, 0, 0x401177dc, 0, 0x8082c4b) = 0
nanosleep(0xbffff61c, 0, 0x401177dc, 0, 0x8082c4b) = 0
write(6, "+++", 3) = 3
nanosleep(0xbffff61c, 0, 0x401177dc, 0, 0x8082c50) = 0
nanosleep(0xbffff61c, 0, 0x401177dc, 0, 0x8082c50) = 0
nanosleep(0xbffff61c, 0, 0x401177dc, 0, 0x8082c52) = 0
nanosleep(0xbffff61c, 0, 0x401177dc, 0, 0x8082c52) = 0
write(6, "ATH", 3) = 3
write(6, "\r", 1) = 1
SYS_174(0x1, 0xbffff598, 0, 0x8, 0x1) = 0
SYS_174(0xe, 0xbffff590, 0, 0x8, 0xe) = 0
alarm(30) = 0
ioctl(6, SNDCTL_TMR_STOP, {B0 -opost -isig -icanon -echo ...}) = 0
SYS_174(0xe, 0xbffff598, 0, 0x8, 0xe) = 0
alarm(0) = 30
SYS_175(0, 0xbffff66c, 0xbffff5ec, 0x8, 0) = 0
SYS_174(0x11, 0, 0xbffff3f0, 0x8, 0x11) = 0
SYS_175(0x2, 0xbffff5ec, 0, 0x8, 0x2) = 0
nanosleep(0xbffff558, 0xbffff558, 0x401177dc, 0xbffff558, 0xbffff558) = 0
SYS_174(0xe, 0xbffff584, 0, 0x8, 0xe) = 0
alarm(30) = 0
ioctl(6, SNDCTL_TMR_STOP, {B9600 opost isig icanon echo ...}) = 0
SYS_174(0xe, 0xbffff584, 0, 0x8, 0xe) = 0
alarm(0) = 30
ioctl(6, TIOCNOTTY) = 0
--- SIGHUP (Hangup) ---
sigreturn() = ? (mask now [])
--- SIGCONT (Continued) ---
close(6) = 0

[...]

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/