phdeniel/nfs-ganesha — Issue #64: segfault when getting ENOSPC
Author: kc-cea
Created: 2012-03-02 11:02:23+00:00
State: open
Labels: Bug

When writing a file too big to fit on the underlying filesystem, one of ganesha's threads segfaults:

```
[root@xxx] # df -h /mnt/ganesha
Filesystem Size Used Avail Use% Mounted on
xxx:lustre 4.0G 1.1G 2.7G 30% /mnt/ganesha
[root@xxx] # dd if=/dev/zero of=./foo bs=1k count=4096k
dd: writing `./foo': No space left on device
904646+0 records in
904645+0 records out
926356480 bytes (926 MB) copied, 19.605 s, 47.3 MB/s
```

One of nfs-ganesha's threads actually segfaulted:

```
lustre.ganesha.[26191]: segfault at 1620 ip 00000035d2c091e0 sp 00007f02bedeb7e8 error 4 in libpthread-2.12.so[35d2c00000+17000]
```

The main log file sometimes contains the following, but not each time:

```
02/03/2012 11:40:21 epoch=1330684821 : xxx : lustre.ganesha.nfsd-26055[Worker Thread #7] :nfs3_Errno :NFS PROTO: CRITICAL ERROR: Error CACHE_INODE_FSAL_ERROR converted to NFS3ERR_IO but was set non-retryable
```

Build info:

```
nfs-ganesha compiled on Mar 2 2012 at 10:47:13
Release = 1.4.0
Release comment = GANESHA 64 bits compliant. SNMP exported stats. FSAL_PROXY re-exports NFSv3. RPCSEC_GSS support (partial). FUSELIKE added
Git HEAD = 38257b0fb7d9ae399a5cb5ec4138989f6338e5fe
Git Describe = stable_09_feb_2012-76-g38257b0
```