bug-coreutils
[Top][All Lists]
Advanced

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

Re: Segmentation fault copying a file


From: Jim Meyering
Subject: Re: Segmentation fault copying a file
Date: Tue, 14 Aug 2007 14:32:29 +0200

Eneko Nieto <address@hidden> wrote:
> I get a segmentation fault when I try to copy a file in particular:
>
> $ cp a b
> Fallo de segmentación
>
> Note: "Fallo de segmentación" means segmentation fault.
>
> $ ls -l
> -rwx------ 1 eneko eneko  16875520 2007-08-14 12:55 b
> -rwx------ 1 eneko eneko 102049992 2006-05-05 11:23 a
>
> These messages appear in /var/log/messages:
>
> Aug 14 12:55:35 eneko kernel: [101755.918638]  <1>BUG: unable to handle 
> kernel paging request at virtual address 00010000
> Aug 14 12:55:35 eneko kernel: [101801.885715] c0157076
> Aug 14 12:55:35 eneko kernel: [101801.885724] Modules linked in:...
>
> $ uname -a
> Linux eneko 2.6.20-16-generic #2 SMP Thu Jun 7 20:19:32 UTC 2007 i686 
> GNU/Linux
>
> $ cp --version
> cp (GNU coreutils) 5.97
...
> I am using Kubuntu Feisty 7.04.
>
> Do you need more info? Perhaps a kernel bug?

Thanks for the report.
Like you, I suspect a kernel problem, but you can narrow it down
by providing more info:

- Tell us your file system type:

    df -T .

- See if your file "a" is sparse: Run both of these:

    du --apparent a
    du a

- Rerun your command under strace:

    strace -o log cp a b

  then, look at (and send here) the file "log".
  It tells a lot about the syscalls cp uses.

- maybe useful: try to provoke the failure using a smaller file.
  If you can, how small can you go?




reply via email to

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