Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jun 1998 00:10:57 +0930 (CST)
From:      Kris Kennaway <kkennawa@physics.adelaide.edu.au>
To:        freebsd-current@FreeBSD.ORG
Subject:   Old kernels not compatible with elf-changes?
Message-ID:  <Pine.OSF.3.90.980602235448.19167A-100000@bragg>

next in thread | raw e-mail | index | archive | help
This first part is just by way of introduction - the title becomes 
relevant later:

This morning I got bitten with a strange bug wherein a kernel current as
of the 28th of may decided to chew up one of my nosync-mounted
filesystems: the problem first manifested itself as a hang (possibly panic
to debugger, but I was in X and couldnt tell) while rm'ing a large
directory on the /usr partition (no softupdates on that partition, mount
flags nosync). Upon rebooting fsck gave a TON of errors about unreferenced
and unallocated stuff - upon later inspection, none of which seemed
to come from the directory I was actually removing. I tried to finish 
removing the directory, but it failed to remove several directories, 
claiming they were not empty, but obviously were. fsck immediately 
thereafter caught these and cleaned them up (unallocated inodes or 
something).

I lost a fair chunk of my system, so I removed softupdates from /usr2 
from single-user mode, mounted everything sync and everything but /usr 
readonly, and did a make install from /usr2/src. This failed halfway 
through with a panic somewhere in the ffs code - details of which I wrote 
down but left at work today :(

Since there was something obviously wrong with the kernel I was using 
(though I hadnt had a problem for the prior 4 days) I tried to reboot 
into the previous kernel of May 26. So far the disk seems to have 
maintained integrity, but this kernel appears to be incompatible with 
one of the ld changes since then:

[morden|root] 23:07 /usr/src/sys/compile/MORDEN ls -l /usr/bin/ld
-r-xr-xr-x  9 bin  bin  12288 May 27 22:20 /usr/bin/ld*
[morden|root] 23:08 /usr/src/sys/compile/MORDEN ld
/usr/bin/ld: Bad address.
[morden|root] 23:08 /usr/src/sys/compile/MORDEN file /usr/bin/ld
/usr/bin/ld: FreeBSD/i386 compact demand paged dynamically linked executable

So I'm obviously in a bit of a quandry: unable to link a new kernel, 
unable to link an older copy of the ld source which would presumably 
work, and unable to boot into a current kernel for fear of losing my hard 
drives. Also unable to download a current GENERIC kernel because the 
snapshots arent being released :-)

Can anyone shed some light as to whether the above problem (specifically, 
pre-elf stage 2 kernels not being able to work with post-elf stage 2 
world) is general or something which is peculiar to me?

Kris

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.3.90.980602235448.19167A-100000>