[apport] genromfs crashed with SIGSEGV in readdir()

Bug #121287 reported by lucck
4
Affects Status Importance Assigned to Milestone
genromfs (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: genromfs

crash

ProblemType: Crash
Architecture: i386
CrashCounter: 1
Date: Mon Jun 18 10:36:43 2007
Dependencies:
 tzdata 2007b-0ubuntu1
 belocs-locales-bin 2.4-2ubuntu2
 locales 2.3.23
 libc6 2.5-0ubuntu14
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/genromfs
Package: genromfs 0.5.1-3.1build1
PackageArchitecture: i386
ProcCmdline: genromfs -v -V dupa -d ./romfs -f dupa.romfs
ProcCwd: /var/tftp
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/usr/local/arm-elf-gcc/bin:/usr/local/arm-elf-gcc/bin
 LANG=pl_PL.UTF-8
 LANGUAGE=pl_PL:pl:en_GB:en
Signal: 11
SourcePackage: genromfs
Stacktrace:
 #0 0xb7f12805 in readdir () from /lib/tls/i686/cmov/libc.so.6
 #1 0x08049762 in ?? ()
 #2 0x00000000 in ?? ()
StacktraceTop:
 readdir () from /lib/tls/i686/cmov/libc.so.6
 ?? ()
 ?? ()
ThreadStacktrace:
 .
 Thread 1 (process 28112):
 #0 0xb7f12805 in readdir () from /lib/tls/i686/cmov/libc.so.6
 #1 0x08049762 in ?? ()
 #2 0x00000000 in ?? ()
Uname: Linux lucck-desktop 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin plugdev scanner video

Revision history for this message
lucck (lucjan-bryndza) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Symbolic stack trace

StacktraceTop:readdir () from /lib/tls/i686/cmov/libc.so.6
?? ()
?? ()

Revision history for this message
Apport retracing service (apport) wrote : Symbolic threaded stack trace
Revision history for this message
Vincent Legout (vlegout) wrote :

Thanks for taking the time to report this bug. Unfortunately we can't fix it, because your description didn't include enough information. You may find it helpful to read "How to report bugs effectively" [WWW] http://www.chiark.greenend.org.uk/~sgtatham/bugs.html. We'd be grateful if you would then provide a more complete description of the problem.

Could you please describe the specific steps or actions you took that caused you to encounter the problem ?

Changed in genromfs:
status: New → Incomplete
Revision history for this message
lucck (lucjan-bryndza) wrote :

Hi Vincent

This is segfault is generated when i try create romfs image from non exist directory (When directory dupa not exist) . Genromfs should generate error message not segfault. This is example backtrace when I try create romfs image from nonexisting directory dupa.

lucck@lucck-desktop:~/srm/sbb_base$ gdb --args genromfs -v -V dupa -d ./romfs -f dupa.romfs
GNU gdb 6.6-debian
Copyright (C) 2006 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"...
(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) r
Starting program: /usr/bin/genromfs -v -V dupa -d ./romfs -f dupa.romfs
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
0xb7e96805 in readdir () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0 0xb7e96805 in readdir () from /lib/tls/i686/cmov/libc.so.6
#1 0x08049762 in ?? ()
#2 0x00000000 in ?? ()

This bug is also generated on 64-bit AMD64.

Regards
Lucjan

Revision history for this message
Vincent Legout (vlegout) wrote :

Thank you for your explanations. I confirm the bug.

Revision history for this message
Vincent Legout (vlegout) wrote :

I mailed the upstream author about the bug.

Changed in genromfs:
status: Incomplete → Confirmed
Revision history for this message
Janos Farkas (chexum) wrote :

Actually I've been sitting on a few patches for a while. The were visible in the sf.net CVS repository, but I've now made a new genromfs 0.5.2 release which should also fix this crash too.

Revision history for this message
Vincent Legout (vlegout) wrote :

Thanks Janos.

I opened a new bug to upgrade the package.
https://bugs.launchpad.net/ubuntu/+source/genromfs/+bug/122398

Changed in genromfs:
status: Confirmed → Fix Released
Vincent Legout (vlegout)
Changed in genromfs:
status: Fix Released → Fix Committed
Vincent Legout (vlegout)
Changed in genromfs:
importance: Undecided → Low
Revision history for this message
Wouter Stomp (wouterstomp-deactivatedaccount) wrote :

Fixed: 0.5.2 is in ubuntu now.

Changed in genromfs:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.