Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 171539

Summary: mkfs.jfs crashes when creating external journal
Product: Gentoo Linux Reporter: mr.qweo
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: critical CC: dave.kleikamp
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Memory map of mkfs.jfs

Description mr.qweo 2007-03-20 11:02:56 UTC
I'm trying to create JFS filesystem on /dev/groot/root (LVM) with external journal on /dev/ejournal/journal (LVM too), but mkfs.jfs fails with error:
"*** glibc detected *** mkfs.jfs: double free or corruption (!prev): 0x000000000050f260 ***"
Command line that i use:
mkfs.jfs -c -L Root -j /dev/ejournal/journal /dev/groot/root

First i think that's build/linking problem, so i try'ed GRML LiveCD and Arch instead of Gentoo LiveCD, that i use first. Than i try to do same without LVM, but get same error.


Reproducible: Always

Steps to Reproduce:
1. Create partitions for JFS filesystem and external journal
2. Try to create external journal anyway (this error happens when mkfs.jfs trying to create journal)
3. Enjoy the error :)

Actual Results:  
mkfs.jfs version 1.1.11, 05-Jun-2006
Warning!  All data on device /dev/groot/root will be lost!
Warning!  All data on device /dev/ejournal/journal will be lost!

Continue? (Y/N) Y
*** glibc detected *** mkfs.jfs: double free or corruption (!prev): 0x000000000050f260 ***
======= Backtrace: =========
/lib/libc.so.6[0x2b6c835d3f3d]
/lib/libc.so.6(__libc_free+0x76)[0x2b6c835d5576]
/lib/libc.so.6(fclose+0x14c)[0x2b6c835c5d6c]
mkfs.jfs[0x404070]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2b6c835872f4]
mkfs.jfs[0x401a19]
======= Memory map: ========
<skipped>

Expected Results:  
Just create JFS filesystem on /dev/root/groot with external journal on /dev/ejournal/journal instead of causing problem :)

I think it doesn't matter, but i trying to create JFS on LVM'ed partition, that located @ S-ATA disc (/dev/sda3 - journal, /dev/sda4 - root)
Comment 1 mr.qweo 2007-03-20 11:04:42 UTC
Created attachment 113857 [details]
Memory map of mkfs.jfs
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-03-20 11:35:21 UTC
(In reply to comment #0)
> First i think that's build/linking problem, so i try'ed GRML LiveCD and Arch
> instead of Gentoo LiveCD, that i use first. Than i try to do same without LVM,
> but get same error.

Well if you have the same problem w/ GRML and Arch Linux, then you need take this upstream, not to Gentoo. ;) Which sys-fs/jfsutils is this about? Also, emerge --info please.
Comment 3 Dave Kleikamp 2007-06-13 15:45:42 UTC
This is fixed in the jfsutils cvs tree, but I haven't released a jfsutils-1.1.12 yet.

As a workaround, the journal has been formatted by the time mkfs.jfs crashes, so you can continue with:

mkfs.jfs -c -L Root -J device=/dev/ejournal/journal /dev/groot/root