[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"Assertion failed" in mv

From: Vladimir Mosgalin
Subject: "Assertion failed" in mv
Date: Wed, 29 Aug 2001 15:18:49 +0400 (MSD)


Recently, while using mv, I got an error. I was running "mv" as root:

# mv ~mosgalin/files.cd/ ./files.cd
mv: basename.c:67: base_name: Assertion `all_slashes || *(p - 1) != '/'' failed.
Aborted (core dumped)

gdb said:

Core was generated by `mv -i /home/mosgalin/files.cd/ ./files.cd'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/gconv/KOI8-R.so...done.
Loaded symbols for /usr/lib/gconv/KOI8-R.so
#0  0x400552b1 in __kill () from /lib/libc.so.6

(gdb) where
#0  0x400552b1 in __kill () from /lib/libc.so.6
#1  0x40055029 in raise (sig=6) at ../sysdeps/posix/raise.c:27
#2  0x40056694 in abort () at ../sysdeps/generic/abort.c:88
#3  0x4004e5cd in __assert_fail (
    assertion=0x80518a0 "all_slashes || *(p - 1) != '/'",
    file=0x805188a "basename.c", line=67, function=0x8051880 "base_name")
    at assert.c:60
#4  0x804d70b in strcpy () at ../sysdeps/generic/strcpy.c:31
#5  0x804cf21 in strcpy () at ../sysdeps/generic/strcpy.c:31
#6  0x8049917 in strcpy () at ../sysdeps/generic/strcpy.c:31
#7  0x8049a9e in strcpy () at ../sysdeps/generic/strcpy.c:31
#8  0x8049f5f in strcpy () at ../sysdeps/generic/strcpy.c:31
#9  0x40043f5e in __libc_start_main (main=0x8049b80 <strcpy+1436>, argc=4,
    ubp_av=0xbffff9d4, init=0x80490ac, fini=0x804ff3c <__umoddi3+572>,
    rtld_fini=0x4000d050 <_dl_fini>, stack_end=0xbffff9cc)
    at ../sysdeps/generic/libc-start.c:129

After dump I got correct files in ~/files.cd, but directories in ~/files.cd was 
empty, and nothing was deleted from original place.

mv version is "mv (GNU fileutils) 4.0x".

You can find spec file used to build fileutils in attachment.

Happy bughunting!

Attachment: fileutils.spec.gz
Description: Fileutils .spec file (gzipped)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]