[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dd Segmentation Fault
From: |
Eric Blake |
Subject: |
Re: dd Segmentation Fault |
Date: |
Thu, 14 Sep 2006 06:00:06 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5) Gecko/20060719 Thunderbird/1.5.0.5 Mnenhy/0.7.4.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Richard Hirner on 9/14/2006 5:48 AM:
> Hello,
>
> 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:
>
> #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
Thanks for the report. The culprit line is:
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));
What version of gettext do you have installed? What locale are you using?
My guess is that the PRIuMAX is being mishandled by your older version,
and passing an invalid string to ngettext; see
http://lists.gnu.org/archive/html/bug-coreutils/2006-07/msg00087.html for
a similar report. You should also try coreutils beta 6.1, which requires
a newer gettext in an attempt to avoid these types of coredumps.
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFCURF84KuGfSFAYARAn/gAKCAFGPfbmx9wYUrRAe2NX/CHqiN4wCfTltw
n+9nVcDUqUYTGQXNeSCx6Yo=
=Z1nG
-----END PGP SIGNATURE-----