Re: Tux3 report: A Golden Copy

sniper
2008-12-31T07:34:22Z

On Wed, Dec 31, 2008 at 11:35 AM, Daniel Phillips <phillips@phunq.net> wrote:
> All versions of Tux3 are special, we think, but this one is a little
> more special than all the rest: for the first time, it survives
> repeated fsx-linux runs. That is mainly due to a burst of amazingly
> accurate work by Hirofumi, and finishing up the SMP lock coverage.
>
> Here is the HowTo again, lightly updated to install the first official
> Tux3 Golden Copy:
>
> # Get a kernel tree:
> wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.5.tar.bz2
> tar -xjf linux-2.6.26.5.tar.bz2
> cd linux-2.6.26.5
>
> # Get the Christmas tux3 patch and patch the kernel:
> wget http://tux3.org/patches/tux3-2.6.26.5-4
> patch <tux3-2.6.26.5-4 -p1
>
> # Build linux with tux3:
> make defconfig
> make CONFIG_TUX3=y
> sudo make install
>
> # Get the Christmas tux3 userspace snapshot:
> wget http://tux3.org/downloads/snapshots/tux3-20081230.tar.gz
> tar -xzf tux3-20081230.tar.gz
> cd tux3/user
> make
>
> # make a tux3 filesystem
> sudo ./tux3 mkfs /dev/<testpartition>
>
> Boot and mount!
>
> cat /proc/filesystems | grep tux3 && mount /dev/<testpartition> /mnt
>
> Recovery after crash or unexpected shutdown is easy:
>
> tux3 mkfs <volname>
>
> In other words, do not expect Tux3 to survive this kind of treatment
> just yet. Atomic commit is on the way, and is the last major change
> planned before starting review.
>
> Caveats are the same as before:
>
> http://kerneltrap.org/mailarchive/linux-fsdevel/2008/12/26/4493214
> "Tux3 for Christmas"
>
> And finally the usual offer: If you drop by to lend a hand we will
> treat you with respect and admiration for showing such courage, and we
> will make you even more famous than you already are, by carving your
> name in the Tux3 Hall of Fame:
>
> http://tux3.org/about.html
>
> Regards,
>
> Daniel
> --

Great, I have mounted tux3 filesystem under UML with stuffs in this mail,
but I still can't debug it with gdb. Anyone gives me suggestion?

fqh@ubuntu:~/Desktop/linux-2.6.26.5$ gdb -args linux ubda=tuxroot ubdb=testdev
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run
Starting program: /home/fqh/Desktop/linux-2.6.26.5/linux ubda=tuxroot
ubdb=testdev
Locating the bottom of the address space ...
Program received signal SIGSEGV, Segmentation fault.
0x08066c7f in page_ok (page=<value optimized out>) at
arch/um/os-Linux/sys-i386/task_size.c:31
31 n = *address;
(gdb)