Hello!

Dave Kleikamp [Wed, May 31, 2006 at 10:03:49AM -0500]:
> On Wed, 2006-05-31 at 09:38 +0200, Nico -telmich- Schottelius wrote:
> > Please CC-me and tell me how to debug / what could be the fault.
> 
> It would be useful to run jfs_fsck under gdb:
> 
> gdb /sbin/jfs_fsck
> > run /dev/mapper/nirvana
> <jfs_fsck should segfault>

I attached the output of gdb to 

http://creme.schottelius.org/~nico/linux/debug/fs/fsck.jfs-segmentation-fault-2006-05-31

But it does not look like it will help you very much.

I tried the following:

- compile jfsutils with -g:
[22:32] eiche:jfsutils-1.1.10# CFLAGS="-g" ./configure && make

- run fsck directly:
[22:33] eiche:jfsutils-1.1.10# ./fsck/jfs_fsck -V
./fsck/jfs_fsck version 1.1.10, 19-Oct-2005
[22:33] eiche:jfsutils-1.1.10# ./fsck/jfs_fsck /dev/mapper/nirvana 
./fsck/jfs_fsck version 1.1.10, 19-Oct-2005
processing started: 6/4/2006 22.33.44
Using default parameter: -p
The current device is:  /dev/mapper/nirvana
Block size in bytes:  4096
Filesystem size in blocks:  29305206
**Phase 0 - Replay Journal Log
zsh: segmentation fault  ./fsck/jfs_fsck /dev/mapper/nirvana

- let's do it with gdb:

[22:33] eiche:jfsutils-1.1.10# gdb ./fsck/jfs_fsck                
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library 
"/lib/
tls/libthread_db.so.1".

(gdb) set args /dev/mapper/nirvana
(gdb) run
Starting program: /root/jfs_segfault/jfsutils-1.1.10/fsck/jfs_fsck 
/dev/mapper/nirva
na
/root/jfs_segfault/jfsutils-1.1.10/fsck/jfs_fsck version 1.1.10, 19-Oct-2005
processing started: 6/4/2006 22.34.14
Using default parameter: -p
The current device is:  /dev/mapper/nirvana
Block size in bytes:  4096
Filesystem size in blocks:  29305206
**Phase 0 - Replay Journal Log

Program received signal SIGSEGV, Segmentation fault.
0x0807ff5e in markImap (fsimap=
      {fileset = 16, imap_page_count = 689, fsimapctrl = 0xb7dec000, imap_wsp = 
0xb7
def000, iag_pbuf = 0xb7ded000, imap_pagenum = 593, iag_pbuf2 = 0xb7dee000, 
imap_page
num2 = 0, next = 0x0}, inum=2826141353, inopxd=
      {len = 4804934, addr1 = 17, addr2 = 2082961255}, val=1, vol=0)
    at log_work.c:2024
2024            imp = fsimap.imap_wsp[(iag_num + 1)].imap_data;


Hope that helps (you and after that me and my data, too :)

Nico

P.S.: as always, please CC

-- 
:x

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Jfs-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to