release_dev wierdness in 2.1.x

Paul Rusty Russell (Paul.Russell@rustcorp.com.au)
Thu, 19 Mar 1998 12:34:52 +1130


When I insert my PCMCIA modem under 2.1.x (at least for x between 65
and 89), accessing the device gives strange behaviour. For example,
doing a `cat /dev/cua2' and then ^C'ing it gives this mangled oops
(doing a setserial gives a similar result):

tty02 at 0x03e8 (irq = 3) is a 16550A
divide error: 0000
CPU: 0
EIP: 0010:[<c204b751>]
EFLAGS: 00010057
eax: 00000000 ebx: c0bae000 ecx: 00000000 edx: 00000000
esi: c0e62000 edi: c022eda0 ebp: 00000000 esp: c0bafe40
ds: 0018 es: 0018 ss: 0018
Process cat (pid: 3123, process nr: 34, stackpage=c0baf000)
Stack: c0bae000 c0e62000 c0bafe6c c0e62000 00072717 c01859e3 c0e62000 00000000
c022eda0 c008ef44 c204d3f4 c0bae000 c0e62960 c204b5eb c0e62000 00000000
00000000 c0e62000 c10bd840 00000000 00000001 00000246 c01821af c0e62000
Call Trace: [<c01859e3>] [<c204d3f4>] [<c204b5eb>] [<c01821af>] [<c0182646>] [<c01227f2>] [<c012286f>]
[<c0116145>] [<c0109879>] [<c0119a19>] [<c018172a>] [<c0122ca6>] [<c01099b2>]
Code: f7 7f 10 89 c6 b9 05 00 00 00 31 d2 f7 f1 89 c6 85 f6 75 05

Using `/boot/System.map-2.1.89a' to map addresses to symbols.

>>EIP: c204b751 cannot be resolved
Trace: c01859e3 <tty_wait_until_sent+d7/114>
Trace: c204d3f4
Trace: c204b5eb
Trace: c01821af <release_dev+3c7/5a8>
Trace: c0182646 <tty_release+a/10>
Trace: c01227f2 <__fput+22/50>
Trace: c012286f <close_fp+4f/84>
Trace: c0116145 <do_exit+10d/20c>
Trace: c0109879 <do_signal+271/2e0>
Trace: c0119a19 <handle_mm_fault+e5/198>
Trace: c018172a <tty_read+b2/d4>
Trace: c0122ca6 <sys_read+ba/10c>
Trace: c01099b2 <signal_return+12/24>
Code:
Code: f7 7f 10 idivl 0x10(%edi),%eax
Code: 89 c6 movl %eax,%esi
Code: b9 05 00 00 00 movl $0x5,%ecx
Code: 31 d2 xorl %edx,%edx
Code: f7 f1 divl %ecx,%eax
Code: 89 c6 movl %eax,%esi
Code: 85 f6 testl %esi,%esi
Code: 75 05 jne 19 <_EIP+0x19>

Running pppd on this port gives continuous scrolling:
release_dev: %s: read/write wait queue active!

And the machine becomes unstable (crashing when I try to shutdown).

Can someone give me a hint on where to look for this?
Rusty.

--
 .sig lost in the mail.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu