dies due to SIGXFSZ when copying large file onto VFAT filesystem

Bug #63900 reported by Carlos Renê
6
Affects Status Importance Assigned to Milestone
openssh (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Copying archives direct for one hd of partition windows FAT32, that is mounted in /home/windows

ProblemType: Crash
Date: Wed Oct 4 01:07:20 2006
Dependencies:
 debconf 1.5.2ubuntu2
 adduser 3.92
 libtext-wrapi18n-perl 0.06-5
 libtext-iconv-perl 1.4-3
 libpam0g 0.79-3.1ubuntu1
 mktemp 1.5-2
 dpkg 1.13.22ubuntu6
 debconf-i18n 1.5.2ubuntu2
 libselinux1 1.30-1
 tzdata 2006l-1ubuntu1
 coreutils 5.96-5ubuntu4
 libssl0.9.8 0.9.8b-2ubuntu1
 liblocale-gettext-perl 1.05-1
 libpam-runtime 0.79-3.1ubuntu1
 libsepol1 1.12-1
 libpam-modules 0.79-3.1ubuntu1
 passwd 1:4.0.16-2ubuntu2
 libcap1 1:1.10-14
 libkrb53 1.4.3-9ubuntu1
 libattr1 2.4.32-1ubuntu1
 libacl1 2.2.39-1ubuntu2
 zlib1g 1:1.2.3-13ubuntu1
 libncurses5 5.5-2ubuntu1
 libc6 2.4-1ubuntu10
 libedit2 2.9.cvs.20050518-2.2
 libcomerr2 1.39-1
 locales 2.3.21
 libdb4.3 4.3.29-5build1
 perl-base 5.8.8-6
 libpam-foreground 0.3
 belocs-locales-bin 2.4-1ubuntu4
 libtext-charwidth-perl 0.04-4
 login 1:4.0.16-2ubuntu2
 debianutils 2.16.2
DistroRelease: Ubuntu 6.10
ExecutablePath: /usr/bin/scp
Package: openssh-client 1:4.3p2-4ubuntu1
ProcCmdline: scp -r -t /home/windows
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
 LANG=pt_BR.UTF-8
 LANGUAGE=pt_BR:pt:en
ProcMaps:
 08048000-08053000 r-xp 00000000 03:01 101074 /usr/bin/scp
 08053000-08054000 rw-p 0000a000 03:01 101074 /usr/bin/scp
 08054000-08075000 rw-p 08054000 00:00 0 [heap]
 b7baf000-b7bb8000 r-xp 00000000 03:01 4984 /lib/tls/i686/cmov/libnss_files-2.4.so
 b7bb8000-b7bba000 rw-p 00008000 03:01 4984 /lib/tls/i686/cmov/libnss_files-2.4.so
 b7bba000-b7bc2000 r-xp 00000000 03:01 4986 /lib/tls/i686/cmov/libnss_nis-2.4.so
 b7bc2000-b7bc4000 rw-p 00007000 03:01 4986 /lib/tls/i686/cmov/libnss_nis-2.4.so
 b7bc4000-b7bcb000 r-xp 00000000 03:01 4982 /lib/tls/i686/cmov/libnss_compat-2.4.so
 b7bcb000-b7bcd000 rw-p 00006000 03:01 4982 /lib/tls/i686/cmov/libnss_compat-2.4.so
 b7bcd000-b7bce000 rw-p b7bcd000 00:00 0
 b7bce000-b7c00000 r-xp 00000000 03:01 1267 /lib/libsepol.so.1
 b7c00000-b7c01000 rw-p 00031000 03:01 1267 /lib/libsepol.so.1
 b7c01000-b7c0c000 rw-p b7c01000 00:00 0
 b7c0c000-b7c0e000 r-xp 00000000 03:01 4977 /lib/tls/i686/cmov/libdl-2.4.so
 b7c0e000-b7c10000 rw-p 00001000 03:01 4977 /lib/tls/i686/cmov/libdl-2.4.so
 b7c10000-b7d3e000 r-xp 00000000 03:01 4974 /lib/tls/i686/cmov/libc-2.4.so
 b7d3e000-b7d40000 r--p 0012d000 03:01 4974 /lib/tls/i686/cmov/libc-2.4.so
 b7d40000-b7d42000 rw-p 0012f000 03:01 4974 /lib/tls/i686/cmov/libc-2.4.so
 b7d42000-b7d45000 rw-p b7d42000 00:00 0
 b7d45000-b7d47000 r-xp 00000000 03:01 1180 /lib/libcom_err.so.2.1
 b7d47000-b7d48000 rw-p 00001000 03:01 1180 /lib/libcom_err.so.2.1
 b7d48000-b7d4c000 r-xp 00000000 03:01 26418 /usr/lib/libkrb5support.so.0.0
 b7d4c000-b7d4d000 rw-p 00003000 03:01 26418 /usr/lib/libkrb5support.so.0.0
 b7d4d000-b7d71000 r-xp 00000000 03:01 26401 /usr/lib/libk5crypto.so.3.0
 b7d71000-b7d72000 rw-p 00023000 03:01 26401 /usr/lib/libk5crypto.so.3.0
 b7d72000-b7dec000 r-xp 00000000 03:01 26417 /usr/lib/libkrb5.so.3.2
 b7dec000-b7dee000 rw-p 0007a000 03:01 26417 /usr/lib/libkrb5.so.3.2
 b7dee000-b7def000 rw-p b7dee000 00:00 0
 b7def000-b7e0a000 r-xp 00000000 03:01 26400 /usr/lib/libgssapi_krb5.so.2.2
 b7e0a000-b7e0b000 rw-p 0001b000 03:01 26400 /usr/lib/libgssapi_krb5.so.2.2
 b7e0b000-b7e1d000 r-xp 00000000 03:01 1214 /lib/libselinux.so.1
 b7e1d000-b7e1f000 rw-p 00011000 03:01 1214 /lib/libselinux.so.1
 b7e1f000-b7e24000 r-xp 00000000 03:01 4976 /lib/tls/i686/cmov/libcrypt-2.4.so
 b7e24000-b7e26000 rw-p 00004000 03:01 4976 /lib/tls/i686/cmov/libcrypt-2.4.so
 b7e26000-b7e4d000 rw-p b7e26000 00:00 0
 b7e4d000-b7e5f000 r-xp 00000000 03:01 4981 /lib/tls/i686/cmov/libnsl-2.4.so
 b7e5f000-b7e61000 rw-p 00011000 03:01 4981 /lib/tls/i686/cmov/libnsl-2.4.so
 b7e61000-b7e63000 rw-p b7e61000 00:00 0
 b7e63000-b7e76000 r-xp 00000000 03:01 3525 /usr/lib/libz.so.1.2.3
 b7e76000-b7e77000 rw-p 00012000 03:01 3525 /usr/lib/libz.so.1.2.3
 b7e77000-b7e79000 r-xp 00000000 03:01 6542 /lib/tls/i686/cmov/libutil-2.4.so
 b7e79000-b7e7b000 rw-p 00001000 03:01 6542 /lib/tls/i686/cmov/libutil-2.4.so
 b7e7b000-b7e7c000 rw-p b7e7b000 00:00 0
 b7e7c000-b7f9e000 r-xp 00000000 03:01 13075 /usr/lib/i686/cmov/libcrypto.so.0.9.8
 b7f9e000-b7fb2000 rw-p 00122000 03:01 13075 /usr/lib/i686/cmov/libcrypto.so.0.9.8
 b7fb2000-b7fb5000 rw-p b7fb2000 00:00 0
 b7fb5000-b7fc4000 r-xp 00000000 03:01 6282 /lib/tls/i686/cmov/libresolv-2.4.so
 b7fc4000-b7fc6000 rw-p 0000f000 03:01 6282 /lib/tls/i686/cmov/libresolv-2.4.so
 b7fc6000-b7fc8000 rw-p b7fc6000 00:00 0
 b7fd1000-b7fd3000 rw-p b7fd1000 00:00 0
 b7fd3000-b7fec000 r-xp 00000000 03:01 10713 /lib/ld-2.4.so
 b7fec000-b7fee000 rw-p 00018000 03:01 10713 /lib/ld-2.4.so
 bfe08000-bfe1d000 rw-p bfe08000 00:00 0 [stack]
 ffffe000-fffff000 ---p 00000000 00:00 0 [vdso]
ProcStatus:
 Name: scp
 State: D (disk sleep)
 SleepAVG: 97%
 Tgid: 10415
 Pid: 10415
 PPid: 10414
 TracerPid: 0
 Uid: 1000 1000 1000 1000
 Gid: 1000 1000 1000 1000
 FDSize: 32
 Groups: 4 20 24 25 29 30 44 46 108 111 113 1000
 VmPeak: 4612 kB
 VmSize: 4576 kB
 VmLck: 0 kB
 VmHWM: 1492 kB
 VmRSS: 1492 kB
 VmData: 392 kB
 VmStk: 84 kB
 VmExe: 44 kB
 VmLib: 3844 kB
 VmPTE: 16 kB
 Threads: 1
 SigQ: 0/4294967295
 SigPnd: 0000000000000000
 ShdPnd: 0000000000000000
 SigBlk: 0000000000000000
 SigIgn: 0000000000000000
 SigCgt: 0000000000000000
 CapInh: 0000000000000000
 CapPrm: 0000000000000000
 CapEff: 0000000000000000
 Cpus_allowed: ff
 Mems_allowed: 1
Signal: 25
SourcePackage: openssh
Stacktrace:
 (no debugging symbols found)
 Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
 Core was generated by `scp -r -t /home/windows'.
 Program terminated with signal 25, File size limit exceeded.
 #0 0xffffe410 in __kernel_vsyscall ()
 #0 0xffffe410 in __kernel_vsyscall ()
 No symbol table info available.
 #1 0xb7ccdb83 in __write_nocancel () from /lib/tls/i686/cmov/libc.so.6
 No symbol table info available.
 #2 0x0804e6dd in error ()
 No symbol table info available.
 #3 0x0804adb3 in ?? ()
 No symbol table info available.
 #4 0x0804928c in getpgrp@plt ()
 No symbol table info available.
 #5 0x00000003 in ?? ()
 No symbol table info available.
 #6 0x08055788 in ?? ()
 No symbol table info available.
 #7 0x00010000 in ?? ()
 No symbol table info available.
 #8 0x08051f17 in _IO_stdin_used ()
 No symbol table info available.
 #9 0xbfe1b095 in ?? ()
 No symbol table info available.
 #10 0x180ffffa in ?? ()
 No symbol table info available.
 #11 0x00000001 in ?? ()
 No symbol table info available.
 #12 0x00000001 in ?? ()
 No symbol table info available.
 #13 0x08053748 in program_invocation_short_name ()
 No symbol table info available.
 #14 0x00010000 in ?? ()
 No symbol table info available.
 #15 0x00000000 in ?? ()
 No symbol table info available.
ThreadStacktrace:
 (no debugging symbols found)
 Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
 Core was generated by `scp -r -t /home/windows'.
 Program terminated with signal 25, File size limit exceeded.
 #0 0xffffe410 in __kernel_vsyscall ()
 .
 Thread 1 (process 10415):
 #0 0xffffe410 in __kernel_vsyscall ()
 No symbol table info available.
 #1 0xb7ccdb83 in __write_nocancel () from /lib/tls/i686/cmov/libc.so.6
 No symbol table info available.
 #2 0x0804e6dd in error ()
 No symbol table info available.
 #3 0x0804adb3 in ?? ()
 No symbol table info available.
 #4 0x0804928c in getpgrp@plt ()
 No symbol table info available.
 #5 0x00000003 in ?? ()
 No symbol table info available.
 #6 0x08055788 in ?? ()
 No symbol table info available.
 #7 0x00010000 in ?? ()
 No symbol table info available.
 #8 0x08051f17 in _IO_stdin_used ()
 No symbol table info available.
 #9 0xbfe1b095 in ?? ()
 No symbol table info available.
 #10 0x180ffffa in ?? ()
 No symbol table info available.
 #11 0x00000001 in ?? ()
 No symbol table info available.
 #12 0x00000001 in ?? ()
 No symbol table info available.
 #13 0x08053748 in program_invocation_short_name ()
 No symbol table info available.
 #14 0x00010000 in ?? ()
 No symbol table info available.
 #15 0x00000000 in ?? ()
 No symbol table info available.
Uname: Linux ubuntu 2.6.17-10-generic #2 SMP Tue Sep 26 16:53:47 UTC 2006 i686 GNU/Linux
CoreDump: base64

Revision history for this message
didier (did447-deactivatedaccount) wrote :

Hi,

What was the cmd line used? Is your file > 2GB?

IIRC linux send a SIGXFZ for vfat fs, even if the file is open with O_LARGEFILE. You have to add a 'signal(SIGXFSZ , SIG_IGN);' there's none in ssh.

Changed in openssh:
status: Unconfirmed → Needs Info
Revision history for this message
Carlos Renê (slipttees) wrote : Re: [Bug 63900] Re: Crash Copying archives!! (edgy)

yes, I was using the command! e was but of 9GB of
transference in local net!!

--- didier <email address hidden> escreveu:

> Hi,
>
> What was the cmd line used? Is your file > 2GB?
>
> IIRC linux send a SIGXFZ for vfat fs, even if the
> file is open with
> O_LARGEFILE. You have to add a 'signal(SIGXFSZ ,
> SIG_IGN);' there's none
> in ssh.
>
>
> ** Changed in: openssh (Ubuntu)
> Status: Unconfirmed => Needs Info
>
> --
> Crash Copying archives!! (edgy)
> https://launchpad.net/bugs/63900
>

_______________________________________________________
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora!
http://br.mobile.yahoo.com/mailalertas/

Revision history for this message
Colin Watson (cjwatson) wrote : Re: Crash Copying archives!! (edgy)

This sounds plausible, although I'm not sure that simply ignoring the signal is the right fix.

Changed in openssh:
status: Needs Info → Confirmed
Revision history for this message
David Faure (faure) wrote :

I get something very similiar (termination due to signal 25, SIGXFSZ) when letting "cat" write into a FAT32 system (in my case "cat /dev/video0 > foo.mpg"). Tried patching cat to no avail, which actually makes sense since it's the shell which is writing into the file. I tried zsh and bash...

Surely all the tools can't be changed to ignore SIGXFSZ, the right fix is in the vfat code of the linux kernel, isn't it?

Revision history for this message
didier (did447-deactivatedaccount) wrote : Re: [Bug 63900] Re: dies due to SIGXFSZ when copying large file onto VFAT filesystem

On 12/25/06, David Faure <email address hidden> wrote:
> Surely all the tools can't be changed to ignore SIGXFSZ, the right fix
> is in the vfat code of the linux kernel, isn't it?
As a matter of fact my memories were about linux 2.4, I had the
problem with netatalk.

In my understanding, after a quick look at linux 2.6 source code, it's
by default for all file systems write, cf. mm/filemap.c.

On the other hand SIGXFSZ is sent when files ulimit is reached so
maybe tools should
deal with it.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.