Bug 159150 - glibc detected *** malloc(): memory corruption: 0x09c59060
glibc detected *** malloc(): memory corruption: 0x09c59060
Product: Fedora
Classification: Fedora
Component: dos2unix (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2005-05-30 14:31 EDT by Timo Lindfors
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version: FC4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-09-09 10:02:40 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Timo Lindfors 2005-05-30 14:31:36 EDT
Description of problem:
dos2unix crashes with some specific command line parameters.

Version-Release number of selected component (if applicable):
dos2unix 3.1 (Thu Nov 19 1998)
linux 2.6.11-1.14_FC3

How reproducible:

Steps to Reproduce:
1. mkdir -p video/video/natural/microsoft-2.3-001213/sys/decoder/ mpeg4ip-1.2/common/video/mpeg4-2000/sys/decoder/
2. touch video/video/natural/microsoft-2.3-001213/sys/decoder/mbinterlacedec.cpp mpeg4ip-1.2/common/video/mpeg4-2000/sys/decoder/mbinterlacedec.cpp
3. dos2unix video/video/natural/microsoft-2.3-001213/sys/decoder/mbinterlacedec.cpp mpeg4ip-1.2/common/video/mpeg4-2000/sys/decoder/mbinterlacedec.cpp
Actual results:
dos2unix: converting file video/video/natural/microsoft-2.3-001213/sys/decoder/mbinterlacedec.cpp to UNIX format ...
dos2unix: converting file mpeg4ip-1.2/common/video/mpeg4-2000/sys/decoder/mbinterlacedec.cpp to UNIX format ...
*** glibc detected *** malloc(): memory corruption: 0x09f17060 ***
Aborted (core dumped)

Expected results:
dos2unix should recrate the files (they are empty so there isn't much to convert) and not crash.

Additional info:
This bug seems to be very sensitive to the length of the filenames that are given as command line arguments.
Comment 1 Sitsofe Wheeler 2005-05-30 14:47:43 EDT
Sounds like a dup of bug #150277
Comment 2 Tim Waugh 2005-05-31 08:02:50 EDT
Perhaps time for an update.
Comment 3 Tim Waugh 2005-05-31 10:58:42 EDT
Please try this update:

Comment 4 Max Kanat-Alexander 2005-06-28 23:25:08 EDT
I get something similar on RHEL 4, when trying to rebuild an old Red Hat
perl-5.8.0 SRPM (so that I can have multiple perls on a development testing

dos2unix: converting file jpl/JNI/JNI.xs to UNIX format ...
*** glibc detected *** free(): invalid pointer: 0x08792038 ***
/var/tmp/rpm-tmp.99171: line 74: 24303 Aborted

I can re-arrange the dos2unix calls in the perl.spec file, and then I get:

dos2unix: problems renaming 'jpl/JNI/d2utmpvSaZCV' to 'jpl/JNI/JNI.xs'
          output file remains in 'jpl/JNI/d2utmpvSaZCV'
Comment 5 Max Kanat-Alexander 2005-06-28 23:25:55 EDT
Oh, and FWIW, I have dos2unix-3.1-21.
Comment 6 Max Kanat-Alexander 2005-06-28 23:31:16 EDT
OK, I can confirm that at least my problem is fixed by dos2unix-3.1-24.
Comment 7 Tim Waugh 2005-06-29 04:16:13 EDT
Will someone try the test update for Fedora Core 3 mentioned in comment #3? 
Otherwise there is no point in releasing it as a final update.

Note You need to log in before you can comment on or make changes to this bug.