bug-coreutils
[Top][All Lists]
Advanced

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

dd.c crash coreutils-5.97


From: Jon Grant
Subject: dd.c crash coreutils-5.97
Date: Sun, 03 Sep 2006 17:45:30 +0100
User-agent: Thunderbird 1.5.0.5 (X11/20060728)

Hi,

Hello, I experiece a crash when copying fd0 into a file on my Kubuntu
6.06 system, I downloaded and built coreutils myself and got the same
result.

print_stats() dd.c:553, the crash is in fprintf, which calls strlen(),
could be the localised format string or something else.

I'm happy to look into it if you would be happy to accept my patch for
review. Let me know what you want me to do.

Please include my email address in any replies (I'm not subscribed to
the list)

Kind regards
Jon

  fprintf (stderr,
           ngettext ("1 byte (1 B) copied",
                     "%"PRIuMAX" bytes (%s) copied",
                     MIN (w_bytes, ULONG_MAX)),
           w_bytes,
           human_readable (w_bytes, hbuf, human_opts, 1, 1));



address@hidden:~/coreutils-5.97/src$ gdb
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".
(gdb) exec /home/now3d/coreutils-5.97/src/dd
(gdb) run if=/dev/fd0 of=/home/now3d/rip.bin bs=512
Starting program: /home/now3d/coreutils-5.97/src/dd if=/dev/fd0
of=/home/now3d/rip.bin bs=512
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1210111776 (LWP 23158)]
(no debugging symbols found)
2880+0 records in
2880+0 records out

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210111776 (LWP 23158)]
0xb7e6f2a3 in strlen () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7e6f2a3 in strlen () from /lib/tls/i686/cmov/libc.so.6
#1  0xb7e432e4 in vfprintf () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7e3fd7c in cuserid () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7e3ffbb in vfprintf () from /lib/tls/i686/cmov/libc.so.6
#4  0xb7e486af in fprintf () from /lib/tls/i686/cmov/libc.so.6
#5  0x080497b2 in ?? ()
(gdb)








reply via email to

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