bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dd Segmentation Fault


From: Richard Hirner
Subject: dd Segmentation Fault
Date: Thu, 14 Sep 2006 13:48:39 +0200

Hello,

I'm using Ubuntu 6.06 (Linux 2.6.15-26-k7 #1 SMP PREEMPT) with coreutils
5.93 and discovered that dd crashes when I want to make an ISO file from
a cd-rom:

dd if=/dev/cdrom of=cd1.iso
[xxx records in/out]
Segmentation fault

This also happens if I read only one block:
dd if=/dev/cdrom of=cd1.iso count=1
1+0 records in
1+0 records out
Segmentation fault

So I downloaded the newest coreutils 5.97, compiled it with debug info
and got a gdb stacktrace:

---------------------------------------------------------
address@hidden:~/tmp$ gdb coreutils-5.97/src/dd
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/i686/cmov/libthread_db.so.1".

(gdb) run if=/dev/cdrom of=cd1.iso count=1
Starting program: /home/richard/tmp/coreutils-5.97/src/dd if=/dev/cdrom
of=cd1.iso count=1
[Thread debugging using libthread_db enabled]
[New Thread -1209837344 (LWP 29256)]
1+0 records in
1+0 records out

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209837344 (LWP 29256)]
0xb7eb22a3 in strlen () from /lib/tls/i686/cmov/libc.so.6
(gdb) thread apply all bt

Thread 1 (Thread -1209837344 (LWP 29256)):
#0  0xb7eb22a3 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1  0xb7e862e4 in vfprintf () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7e82d7c in buffered_vfprintf () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7e82fbb in vfprintf () from /lib/tls/i686/cmov/libc.so.6
#4  0xb7e8b6af in fprintf () from /lib/tls/i686/cmov/libc.so.6
#5  0x080497b2 in print_stats () at dd.c:553
#6  0x0804b3fa in main (argc=4, argv=0xbf9a0824) at dd.c:600

-- 
Regards,
Richard <address@hidden>
http://www.gimpusers.de

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

[Prev in Thread] Current Thread [Next in Thread]