Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* two oopses with 2.0.17
@ 1996-09-03  6:19 Richard Henderson
  1996-09-03  6:44 ` Linus Torvalds
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Henderson @ 1996-09-03  6:19 UTC (permalink / raw)


I should also mention that the 2.0.17 includes David's 2.0.16.
Unfortunately, the one time I remove -g from the build flags,
it turns out I need it.  Go figure.

I believe I was messing with the shared libraries at the time
the system lost stability.

It was sort of odd... first sign of trouble was init dying.  (Yikes!)
Then sync wouldn't work (first recorded oops).  Then I noticed that
syslogd wasn't running, and tried to start that (second recorded
oops).  All the while I am able to poke around with ps, ls, cat,
and gdb (no less!).

Anyway, here's what I could recover.

r~

----------------------------------------------------------------------
Unable to handle kernel paging request at virtual address 0000000000000015
sync(23010): Oops 0
pc = [<fffffc0000338a94>] ps = 0000
rp = [<fffffc00003390f8>] sp = fffffc0000749ed0
r0=0 r1=5 r2=fffffc000102f4dd r3=0
r8=fffffc00037d4dd8
r16=fffffc000102f3e8 r17=0 r18=400 r19=400
r20=7 r21=7 r22=ffff r23=fffffc000033cd28
r24=a80e r25=fff1 r26=fffffc00003390f8 r27=fffffc000031abe0
r28=1 r29=fffffc0000463ea0 r30=fffffc0000749ed0
Code: e4200004  a4210020  e4200002 <a4210010> f4200005  2c2900f5  413eb402  48220041  3c2900f5
Segmentation fault
(gdb) x/6i 0xfffffc0000338a94-8
0xfffffc0000338a8c <write_inode..ng+92>:
        a4210020  ldq        t0,32(t0)
0xfffffc0000338a90 <write_inode..ng+96>:
        e4200002  beq        t0,0xfffffc0000338a9c <write_inode..ng+108>
0xfffffc0000338a94 <write_inode..ng+100>:
        a4210010  ldq        t0,16(t0)
0xfffffc0000338a98 <write_inode..ng+104>:
        f4200005  bne        t0,0xfffffc0000338ab0 <write_inode..ng+128>
0xfffffc0000338a9c <write_inode..ng+108>:
        2c2900f5  ldq_u      t0,245(s0)
0xfffffc0000338aa0 <write_inode..ng+112>:
        413eb402  addq       s0,0xf5,t1
[turns out to be inode.c:242]
(gdb) x/i 0xfffffc00003390f8
0xfffffc00003390f8 <sync_inodes..ng+168>:
        a43d97c8  ldq        t0,-26680(gp)
[turns out to be inode.c:400]
----------------------------------------------------------------------
[root@twiddle /root]# syslogd
fcntl_setlk() called by process 23076 (syslogd) with broken flock() emulation
Unable to handle kernel paging request at virtual address 0000000000000178
syslogd(23075): Oops 1
pc = [<fffffc0000322e44>] ps = 0000
rp = [<fffffc0000322dcc>] sp = fffffc00017fbcf0
r0=7 r1=0 r2=fffffc0000024420 r3=fffffc0000c02c10
r8=7
r16=0 r17=fffffc0000c02c10 r18=1 r19=0
r20=0 r21=0 r22=0 r23=1
r24=8a00000000000000 r25=12003c6e8 r26=fffffc0000322dcc r27=fffffc000031ad88
r28=0 r29=fffffc0000463ea0 r30=fffffc00017fbcf0
Code: a4290168  a4210170  b4290180 <b5210178> a4290168  b5210170  a4290000  4020
7521  f4200002
Segmentation fault
(gdb) x/6i 0xfffffc0000322e44-8
0xfffffc0000322e3c <exit_notify..ng+420>:
        a4210170  ldq        t0,368(t0)
0xfffffc0000322e40 <exit_notify..ng+424>:
        b4290180  stq        t0,384(s0)
0xfffffc0000322e44 <exit_notify..ng+428>:
        b5210178  stq        s0,376(t0)
0xfffffc0000322e48 <exit_notify..ng+432>:
        a4290168  ldq        t0,360(s0)
0xfffffc0000322e4c <exit_notify..ng+436>:
        b5210170  stq        s0,368(t0)
0xfffffc0000322e50 <exit_notify..ng+440>:
        a4290000  ldq        t0,0(s0)
[turns out to be exit.c:541]
(gdb) x/i 0xfffffc0000322dcc
0xfffffc0000322dcc <exit_notify..ng+308>:
        a42a0000  ldq        t0,0(s1)
[turns out to be exit.c:532 -- i.e. invalid]
----------------------------------------------------------------------

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: two oopses with 2.0.17
  1996-09-03  6:19 two oopses with 2.0.17 Richard Henderson
@ 1996-09-03  6:44 ` Linus Torvalds
  0 siblings, 0 replies; 5+ messages in thread
From: Linus Torvalds @ 1996-09-03  6:44 UTC (permalink / raw)


On Tue, 3 Sep 1996, Richard Henderson wrote:
> 
> I believe I was messing with the shared libraries at the time
> the system lost stability.
> 
> It was sort of odd... first sign of trouble was init dying.  (Yikes!)

Yes, I think I've seen this before - init dies, and then it's all down-hill
from there. I suspect the primary bug is simply init dying for some reason -
after that the kernel essentially gives up because it doesn't have anybody to
give zombie children to (that is what you see with syslogd and exit-notify). 

Do you have an oops from init? That's the interesting one.. 

Alternatively, the reason for the problems might be just a bug in the shared
libs causing init to die, not a kernel problem at all. It can arguably be
considered a kernel problem that the kernel doesn't handle init dying very
gracefully, but what happens is that when init dies it tries to give all it's
children away to itself, and then when the process descriptor is free'd the
children all point to a black hole. 

(The system usually continues to limp along, but you get panic messages for
anything that causes a child to be inherited by the non-existent init. At
least that's how I seem to remember it). 

Now, it can certainly be a real kernel bug, but quite frankly it sounds more
likely that you were unlucky and killed init when messing with the shared
libs.. 

		Linus

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: two oopses with 2.0.17
       [not found] <Pine.LNX.3.91.960903093205.20713K-100000@linux.cs.Helsinki.FI>
@ 1996-09-03  6:55 ` Richard Henderson
  1996-09-03 12:57 ` Erik Troan
  1996-09-03 18:39 ` Michal Jaegermann
  2 siblings, 0 replies; 5+ messages in thread
From: Richard Henderson @ 1996-09-03  6:55 UTC (permalink / raw)


> Do you have an oops from init? That's the interesting one.. 

Nope.  I had been looking for it in /var/log/messages when
I noticed that neither syslogd nor klogd were running. 

It does seem to explain the syslogd deaths, but not sync.  That
was nasty on reboot, what with inodes not being flushed and all.

Ah well.  I watch careful like for it to maybe happen again.

r~

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: two oopses with 2.0.17
       [not found] <Pine.LNX.3.91.960903093205.20713K-100000@linux.cs.Helsinki.FI>
  1996-09-03  6:55 ` Richard Henderson
@ 1996-09-03 12:57 ` Erik Troan
  1996-09-03 18:39 ` Michal Jaegermann
  2 siblings, 0 replies; 5+ messages in thread
From: Erik Troan @ 1996-09-03 12:57 UTC (permalink / raw)


On Tue, 3 Sep 1996, Linus Torvalds wrote:

> Yes, I think I've seen this before - init dies, and then it's all down-hill
> from there. I suspect the primary bug is simply init dying for some reason -
> after that the kernel essentially gives up because it doesn't have anybody to
> give zombie children to (that is what you see with syslogd and exit-notify). 

This could be related to the PANIC init goes through as it receives a segv
during the shutdown sequence. I've seen this on all of my ELF machines.

Erik

-------------------------------------------------------------------------------
   Always hoped that I'd be an apostle. Knew that I would make it if I tried.
     Then when we retire we can write the gospels so they'll all talk about
       us when we've die. - "The Last Supper" from Jesus Christ Superstar
|   Erik Troan   =   http://sunsite.unc.edu/ewt/   =   ewt@sunsite.unc.edu    |

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: two oopses with 2.0.17
       [not found] <Pine.LNX.3.91.960903093205.20713K-100000@linux.cs.Helsinki.FI>
  1996-09-03  6:55 ` Richard Henderson
  1996-09-03 12:57 ` Erik Troan
@ 1996-09-03 18:39 ` Michal Jaegermann
  2 siblings, 0 replies; 5+ messages in thread
From: Michal Jaegermann @ 1996-09-03 18:39 UTC (permalink / raw)


> > It was sort of odd... first sign of trouble was init dying.  (Yikes!)
> 
> Yes, I think I've seen this before - init dies, and then it's all down-hill
> from there.
....
> 
> Do you have an oops from init? That's the interesting one.. 
> 
> Alternatively, the reason for the problems might be just a bug in the shared
> libs causing init to die, not a kernel problem at all.

I have seen yesterday something suspiciously like this, but this was
2.0.14 on a Cabriolet board and otherwise Red Hat 3.0.3, i.e. no shared
libraries at all.

I was able to watch how things evolved in a span of many hours, as I
happened to be logged on remotely but was unable to do anything.

No violent happenings, no oopses or other visible traces (syslogd
possibly went away early).  Just various daemons quietly going away.
Initially I was able to stop and restart inetd services, and this gave
me a short window in which it was possible to get another login, but
soon telnetd went away once again and could not be revived.  ftp worked
**from** an affected machine for many hours yet, but no way to ftp to
it.

When I noticed that something weird is starting I tried 'shutdown -r'.
It was going through initial messages but that was it.  Repeated
attempts did not have any real effect.

> (The system usually continues to limp along, but you get panic messages for
> anything that causes a child to be inherited by the non-existent init. At
> least that's how I seem to remember it). 

There was no panic messages.  Everything was quiet but with time more
and more daemons were turning into zombies, at least according to ps.
Eventually, after some six hours or so, most likely init itself died
and the whole machine wedged solid to be revived only with a power
switch and a prolonged fsck (some incoming mail ended in /lost+found).

I am not 100% sure that this is exactly the same, but if it is it is
not limited to 2.0.17 and shared libraries.

   Keep on hackin'
   Michal

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1996-09-03 18:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-03  6:19 two oopses with 2.0.17 Richard Henderson
1996-09-03  6:44 ` Linus Torvalds
     [not found] <Pine.LNX.3.91.960903093205.20713K-100000@linux.cs.Helsinki.FI>
1996-09-03  6:55 ` Richard Henderson
1996-09-03 12:57 ` Erik Troan
1996-09-03 18:39 ` Michal Jaegermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox