dd segfault when LANGUAGE=en_GB
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coreutils (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: coreutils
DD appears to segfault when using languages it is not made for. I am using Ubuntu 6.06 with coreutils 5.93-5ubuntu4.
Here is an example of how to generate the segmentation fault:
rancell@bos:~$ LANGUAGE=en_GB dd if=/dev/zero bs=1 count=2 of=/tmp/foo
2+0 records in
2+0 records out
Segmentation fault (core dumped)
And here is it working correctly:
rancell@bos:~$ LANGUAGE=C dd if=/dev/zero bs=1 count=2 of=/tmp/foo
2+0 records in
2+0 records out
2 bytes (2 B) copied, 4.3e-05 seconds, 46.5 kB/s
(Note it would work fine using bs=1 count=1 as this executes a different codepath).
Looking through the source code (apt-get source coreutils) the problem is in print_stats() (coreutils-
I have tried this with the latest upstream coreutils (5.97) and the bug is still present.
This bug is always reproducible.
Possibly a duplicate of bug 42264 ?