Summary: | net-fs/nfs-utils-1.2.6: mount.nfs: Cannot allocate memory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | Current packages | Assignee: | Network Filesystems <net-fs> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | strace_mount.txt |
Description
Juergen Rose
2013-01-21 09:49:31 UTC
is there anything in `dmesg` ? what does `strace -f mount` show ? Some NFS functionality is available, the /usr partition of "caiman" is mounted at "impala": root@impala:/root(30)# mount | grep nfs rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) nfsd on /proc/fs/nfsd type nfsd (rw,nodev,noexec,nosuid) caiman:/usr on /net/caiman/usr type nfs (rw,nosuid,nodev,intr,sloppy,vers=4,addr=192.168.1.86,clientaddr=192.168.1.81) condor:/usr on /net/condor/usr type nfs (rw,nosuid,nodev,intr,sloppy,vers=4,addr=192.168.1.76,clientaddr=192.168.1.81) root@impala:/root(31)# ll /net/caiman/usr | head total 38992 drwxr-xr-x 3 root root 4096 Apr 2 2011 adm/ drwxr-xr-x 2 root root 204800 Jan 22 07:13 bin/ -rw-r--r-- 1 root root 2032 Aug 25 09:14 CDFLeapSeconds.txt drwxr-xr-x 3 root root 4096 Jan 17 2012 data/ drwxr-xr-x 3 root root 4096 Jan 24 2011 etc/ drwxr-xr-x 4 games root 4096 Aug 27 04:19 games/ drwxr-xr-x 6 root root 4096 Jan 24 2011 gnu-classpath-0.98/ drwxr-xr-x 717 root root 118784 Jan 22 06:39 include/ -rw-r--r-- 1 root root 10190 Aug 6 20:19 INSTALL I just found, that even the command 'mount caiman:/home_caiman /mnt/test2' works again (without any reboot of "impala" or "caiman", only 'emerge -uvDN world' was partly running). Thus, may only some bits in memory switchted randomly. Now it is again impossible to access the partition /net/caiman/home_caiman, which was automounted four hours ago. I had to restart autofs (/etc/init.d/autofs restart) to access them again. I hit almost the same error again: root@impala:/root(4)# mount caiman:/usr/local/portage/distfiles_caiman /mnt/test2 mount.nfs: Cannot allocate memory root@impala:/root(5)# strace -f -o strace_mount.txt mount caiman:/usr/local/portage/distfiles_caiman /mnt/test2 mount.nfs: Cannot allocate memory root@impala:/root(6)# dmesg | tail [ 255.393512] ata2.00: failed to get Identify Device Data, Emask 0x1 [ 255.393524] ata2.00: configured for UDMA/133 [ 255.393565] ata2: EH complete [ 255.475340] ata4.00: failed to get Identify Device Data, Emask 0x1 [ 255.508382] ata4.00: failed to get Identify Device Data, Emask 0x1 [ 255.508400] ata4.00: configured for UDMA/133 [ 255.508424] ata4: EH complete [ 256.312320] EXT4-fs (dm-6): re-mounted. Opts: user_xattr,commit=0 [ 256.318492] EXT4-fs (dm-10): re-mounted. Opts: user_xattr,commit=0 [ 483.646198] mount.nfs (28820) used greatest stack depth: 2168 bytes left In /var/log/messages I find: root@impala:/root(8)# tail /var/log/messages Jan 31 16:06:35 impala dbus[25017]: [system] Activated service 'org.freedesktop.NetworkManager' failed: Launch helper exited with unknown return code 1 Jan 31 16:07:37 impala kernel: [ 483.646198] mount.nfs (28820) used greatest stack depth: 2168 bytes left Jan 31 16:08:47 impala crontab[1032]: (root) LIST (root) Jan 31 16:09:47 impala su[28715]: Successful su for root by rose Jan 31 16:09:47 impala su[28715]: + /dev/pts/0 rose:root Jan 31 16:09:47 impala su[28715]: pam_unix(su:session): session opened for user root by rose(uid=1203) Jan 31 16:10:01 impala cron[1791]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-crons) Jan 31 16:10:01 impala run-crons[1808]: (root) CMD (/etc/cron.hourly/logsentry.cron) Jan 31 16:10:01 impala run-crons[1812]: (root) CMD (/etc/cron.hourly/vnstat) Jan 31 16:13:26 impala crontab[6894]: (root) LIST (root) Created attachment 337456 [details]
strace_mount.txt
I tried to run mount thought gdb: root@impala:/usr/portage(21)# grep ^CFLAGS /etc/make.conf CFLAGS="-march=amdfam10 -O2 -g" root@impala:/usr/portage(22)# grep ^FEAT /etc/make.conf FEATURES="nostrip noclean" root@impala:/usr/portage(23)# emerge -v1 nfs-utils root@impala:/usr/portage(22)# gdb /sbin/mount GNU gdb (Gentoo 7.5.1 p1) 7.5.1 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". For bug reporting instructions, please see: <http://bugs.gentoo.org/>... Reading symbols from /sbin/mount.nfs...done. (gdb) set args caiman:/usr/local/portage/distfiles_caiman /mnt/test2 (gdb) run Starting program: /sbin/mount.nfs caiman:/usr/local/portage/distfiles_caiman /mnt/test2 warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". mount.nfs: Cannot allocate memory [Inferior 1 (process 26770) exited with code 040] (gdb) set logging file backtrace.log (gdb) set logging on Copying output to backtrace.log. (gdb) bt No stack. (gdb) set logging off Done logging to backtrace.log. (gdb) quit root@impala:/usr/portage(35)# ll backtrace.log -rw-r--r-- 1 root root 20 Jan 31 16:57 backtrace.log root@impala:/usr/portage(36)# cat backtrace.log No stack. No stack. What I am doing wrong? (In reply to comment #6) you have to set a breakpoint on exit. the code isn't getting killed or aborting, it's writing an error message and calling exit(). b *_exit b *exit r you might have better luck e-mailing linux-nfs@vger.kernel.org when it comes to debugging nfs behavior. i haven't gotten this low before w/nfs. |