Package: mtd-utils
Version: 20090217-1
Severity: normal
running mkfs.jffs2 causes a segfault when you use the -v parameter if
files in the directory are owned by a user.
I generated this report via reportbug on the system in question, and
sent it via my normal mail client, since reportbug didn't like my MTA.
---------------------------------------------------------------------
Steps to reproduce..
# mkdir foo
# touch foo/bar
# chown jean.jean foo/bar
# ls -Flan foo/
total 8
drwxr-xr-x 2 0 0 4096 2009-04-14 14:08 ./
drwxr-xr-x 18 0 0 4096 2009-04-14 14:04 ../
-rw-r--r-- 1 1001 1001 0 2009-04-14 14:00 bar
# mkfs.jffs2 -v -r foo -o fs.foo.img
/
[1] 5868 segmentation fault mkfs.jffs2 -v -r foo -o fs.foo.img
---------------------------------------------------------------------
After compiling from package source, a backtrace from gdb results in...
# gdb --args /home/jean/mtd-utils-20090217/mkfs.jffs2 -v -r foo -o
fs.foo.img
(gdb) run
Starting program: /home/jean/mtd-utils-20090217/mkfs.jffs2 -v -r foo -o
fs.foo.img
/
Program received signal SIGSEGV, Segmentation fault.
0xb7e901cb in strlen () from /lib/i686/cmov/libc.so.6
(gdb) bt full
#0 0xb7e901cb in strlen () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#1 0xb7e5c648 in vfprintf () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#2 0xb7e62ad0 in printf () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#3 0x0804d66b in recursive_populate_directory (dir=0x9a87170) at
mkfs.jffs2.c:1400
e = (struct filesystem_entry *) 0x9a872d8
wrote = 0
#4 0x0804d80f in create_target_filesystem (root=0x9a87170) at
mkfs.jffs2.c:1437
No locals.
#5 0x0804ed13 in main (argc=6, argv=0xbfbe3264) at mkfs.jffs2.c:1894
c = -1209500882
opt = -1
cwd = 0x9a87160 "/root/foo"
sb = {st_dev = 2049, __pad1 = 0, __st_ino = 230889, st_mode =
16877, st_nlink = 2, st_uid = 0, st_gid = 0,
st_rdev = 0, __pad2 = 0, st_size = 4096, st_blksize = 4096, st_blocks
= 8, st_atim = {tv_sec = 1239732739,
tv_nsec = 0}, st_mtim = {tv_sec = 1239732499, tv_nsec = 0}, st_ctim
= {tv_sec = 1239732499, tv_nsec = 0},
st_ino = 230889}
devtable = (FILE *) 0x0
root = (struct filesystem_entry *) 0x9a87170
compr_name = 0x0
compr_prior = -1
warn_page_size = 0
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages mtd-utils depends on:
ii libc6 2.9-4 GNU C Library: Shared libraries
ii liblzo2-2 2.03-1 data compression library
ii libuuid1 1.41.3-1 universally unique id library
ii zlib1g 1:1.2.3.3.dfsg-13 compression library - runtime
mtd-utils recommends no packages.
mtd-utils suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org