Skip to contentSkip to conversation

Segfaulting with reiser4 after doing file extensive operations on reiser4 system from a chrooted environment.

DISCUSSION Gary Hawco 2 participants 2 messages Feb 18, 2008 – Feb 19, 2008

lore
Share & tools
lore

Gary Hawco

author
#0 lore raw

Hi guys. First time post.

Here is my issue with reiser4. Been a long time user. Have two Linux systems, Slackware12 and Gentoo x86. Gentoo has been formatted with reiser4 from Slackware using latest reiser4progs-1.0.6 with mkfs.reiser4 /dev/sda7.

My Gentoo tarballs extract fine to the freshly formatted partition. Use the standard noatime,nodiratime settings for Gentoo /etc/fstab. Slackware uses a vanilla 2.6.24.2 kernel patched with the latest (012508) reiser4 patch and Gentoo uses same patch with 2.6.24-r2 gentoo sources kernel. All kernel configurations identical with reiser4 support compiled into kernel.

If I boot into Gentoo everything is fine. I have played around with the compression plugins and they're fine too.

The problem is if I chroot into Gentoo while running Slackware from a console to, for instance, update my Gentoo system (emerge --sync && emerge -uDN world), when I actually reboot into Gentoo I ALWAYS get a segfault. A reboot into Gentoo corrects the problem.

Steps to ALWAYS reproduce problem:

From a Slackware console:
mount /dev/sda7 /sda7 (Gentoo partition)
mount -t proc none /sda7/proc (to enable internet connection in chrooted environment)
chroot /sda7 /bin/bash
env-update && source /etc/profile
emerge --sync && emerge -uDN world

After Gentoo is updated:
exit
umount /sda7/proc /sda7

It was suggested I try to sync the fs before umounting. Tried it, but same results, i.e. reboot into Gentoo and it segtaults near the end of the boot process complaining about several .sh scripts. Minor changes to Gentoo from the chrooted environment do not cause the segfaults when actually subsequently booting into Gentoo, nor are there ever any segfaults while in the chrooted environment. An fsck check after I umount the Gentoo partition does not show any irregularities or fs corruption either.

I believe this issue is a bug, albeit minor.

Any other information I can provide will be forth coming.

Thank you for an otherwise stellar fs experience.

Gary Hawco
Tucson, AZ.

#1 lore raw
Quoted 4 lines · Gary Hawco

Hi guys. First time post.

Hello, welcome

Quoted 10 lines

Here is my issue with reiser4. Been a long time user. Have two Linux systems, Slackware12 and Gentoo x86. Gentoo has been formatted with reiser4 from Slackware using latest reiser4progs-1.0.6 with mkfs.reiser4 /dev/sda7.

My Gentoo tarballs extract fine to the freshly formatted partition. Use the standard noatime,nodiratime settings for Gentoo /etc/fstab. Slackware uses a vanilla 2.6.24.2 kernel patched with the latest (012508) reiser4 patch and Gentoo uses same patch with 2.6.24-r2 gentoo sources kernel. All kernel configurations identical with reiser4 support compiled into kernel.

Quoted 10 lines

If I boot into Gentoo everything is fine. I have played around with the compression plugins and they're fine too.

The problem is if I chroot into Gentoo while running Slackware from a console to, for instance, update my Gentoo system (emerge --sync && emerge -uDN world), when I actually reboot into Gentoo I ALWAYS get a segfault. A reboot into Gentoo corrects the problem.

i.e. the second boot to Gentoo is okay?

Quoted 10 lines

Steps to ALWAYS reproduce problem:

Quoted 1 line

From a Slackware console:

mount /dev/sda7 /sda7 (Gentoo partition)
mount -t proc none /sda7/proc (to enable internet connection in chrooted environment)
chroot /sda7 /bin/bash
env-update && source /etc/profile
emerge --sync && emerge -uDN world

Quoted 5 lines

After Gentoo is updated:
exit
umount /sda7/proc /sda7

You get a kernel oops at this point, or?
Would you please try to catch the kernel messages via serial console, or somehow else?

Quoted 24 lines

It was suggested I try to sync the fs before umounting. Tried it, but same results, i.e. reboot into Gentoo and it segtaults near the end of the boot process complaining about several .sh scripts. Minor changes to Gentoo from the chrooted environment do not cause the segfaults when actually subsequently booting into Gentoo, nor are there ever any segfaults while in the chrooted environment. An fsck check after I umount the Gentoo partition does not show any irregularities or fs corruption either.

I believe this issue is a bug, albeit minor.

Any other information I can provide will be forth coming.

Thank you for an otherwise stellar fs experience.

Gary Hawco
Tucson, AZ.

-
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html