dd segfaults (amd64)

Bug #62034 reported by Miek Gieben on 2006-09-23
4
Affects Status Importance Assigned to Milestone
coreutils (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: coreutils

Didn't even know dd /could/ segfault, but here it is:
% dd if=/dev/zero of=/dev/null bs=1 count=40 skip=52
40+0 records in
40+0 records out
zsh: segmentation fault dd if=/dev/zero of=/dev/null bs=1 count=40 skip=52

Miek Gieben (miek) wrote :

On i386 nothing happens

Vassilis Pandis (pandisv) wrote :

Thanks for reporting this. With what version of dd is this? Can you please try to get a backtrace by following http://wiki.ubuntu.com/DebuggingProgramCrash ? Also try running 'export LANG=C' before dd. If this fixes the problem, please paste the output of 'echo $LANG' . Thanks in advance.

Changed in coreutils:
importance: Untriaged → Medium
status: Unconfirmed → Needs Info

[On 23 Sep, @17:37, Vassilis Pandis wrote in "[Bug 62034] Re: dd segfaults ( ..."]
> Thanks for reporting this. With what version of dd is this? Can you

sorry, the version in dapper: Version: 5.93-5ubuntu4

> please try to get a backtrace by following
> http://wiki.ubuntu.com/DebuggingProgramCrash ? Also try running 'export

Core was generated by `./dd if /dev/zero of /dev/null bs 1 count 40 skip 52'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
#0 0x00002aaaaad3afc0 in strlen () from /lib/libc.so.6
(gdb) where
#0 0x00002aaaaad3afc0 in strlen () from /lib/libc.so.6
#1 0x00002aaaaad0d7e7 in vfprintf () from /lib/libc.so.6
#2 0x00002aaaaad0a1a9 in cuserid () from /lib/libc.so.6
#3 0x00002aaaaad0a389 in vfprintf () from /lib/libc.so.6
#4 0x00002aaaaad12db6 in fprintf () from /lib/libc.so.6
#5 0x0000000000401d6f in print_stats () at dd.c:553
#6 0x000000000040372f in main (argc=6, argv=0x7fffffc8e868) at dd.c:600

I've edited the file so I'm not really to sure about that
line number.

> LANG=C' before dd. If this fixes the problem, please paste the output of
> 'echo $LANG' . Thanks in advance.

Yep, right on target, now it works:
% LANG=C dd if=/dev/zero of=/dev/null bs=1 count=40 skip=52
40+0 records in
40+0 records out
40 bytes (40 B) copied, 5.3e-05 seconds, 755 kB/s

--
grtz,
  - Miek

  http://www.miek.nl
  PGP: 6A3C F450 6D4E 7C6B C23C F982 258B 85CF 3880 D0F6

Changed in coreutils:
status: Needs Info → Rejected
Vassilis Pandis (pandisv) wrote :

Thanks for the bug report. This particular bug has already been
reported into our bug tracking system, but please feel free to report
any further bugs which you find.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers