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: Always 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.
Sounds like a dup of bug #150277
Perhaps time for an update.
Please try this update: https://www.redhat.com/archives/fedora-test-list/2005-May/msg01590.html
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 machine): 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'
Oh, and FWIW, I have dos2unix-3.1-21.
OK, I can confirm that at least my problem is fixed by dos2unix-3.1-24.
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.