Port-evbmips archive

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

'amd' Invalid argument data



So, getting back to the problem with 'amd' failing to mount my
various automount points with "Invalid argument" reports, below
is the relevant excerpt from '/var/log/messages':

Jun  8 13:21:59 chalk amd[263]: '/home': mount: Invalid argument
Jun  8 13:21:59 chalk amd[685]: '/m': mount: Invalid argument
Jun  8 13:22:04 chalk /netbsd: ktrace timeout
Jun  8 13:22:04 chalk amd[264]: '/net': mount: Invalid argument
Jun  8 13:22:04 chalk amd[264]: '/net': mount: Invalid argument
Jun  8 13:22:05 chalk amd[264]: amfs_toplvl_mount: amfs_mount failed: Invalid 
argument
Jun  8 13:22:05 chalk amd[881]: /net: mount (amfs_cont): Invalid argument
Jun  8 13:22:10 chalk amd[263]: '/home': mount: Invalid argument
Jun  8 13:22:10 chalk amd[685]: '/m': mount: Invalid argument
Jun  8 13:22:10 chalk amd[685]: amfs_toplvl_mount: amfs_mount failed: Invalid 
argument
Jun  8 13:22:10 chalk amd[881]: /m: mount (amfs_cont): Invalid argument
Jun  8 13:22:10 chalk amd[263]: amfs_toplvl_mount: amfs_mount failed: Invalid 
argument
Jun  8 13:22:10 chalk amd[881]: /home: mount (amfs_cont): Invalid argument
Jun  8 13:22:46 chalk syslogd[381]: last message repeated 3 times


And here are what I hope are the relevant snippets of "ktruss" output
generated with 'ktruss -i /etc/rc.d/amd start | tee amd.ktruss'.  In
the first case, "netbsd32_bind()" on a socket fails.  After that, all
the failures are in "netbsd32___mount50()"


   881      1 amd      netbsd32___socket30(0x2, 0x2, 0) = 5, -53
   881      1 amd      netbsd32_bind(0x5, 0x7fff6980, 0x10) Err#48 EADDRINUSE
   881      1 amd      netbsd32_bind(0x5, 0x7fff6980, 0x10) Err#48 EADDRINUSE
   881      1 amd      netbsd32_bind(0x5, 0x7fff6980, 0x10) = 0, 64768
   881      1 amd      netbsd32_open("/etc/netconfig", 0x400000, 0x1b6) = 7
   881      1 amd      netbsd32___fstat50(0x7, 0x7fff6750) = 0, 2020703392
   881      1 amd      netbsd32_read(0x7, 0x78254000, 0x4000) = 774, 1
       "# $NetBSD: netconfig,v 1.1 2000/06/02 22:54:10 fvdl Exp $\n#\n# The 
networ"
   881      1 amd      netbsd32_read(0x7, 0x78254000, 0x4000) = 0, 2020703392
       ""
   881      1 amd      netbsd32_close(0x7)         = 0
   881      1 amd      netbsd32_open("/etc/netconfig", 0, 0x1b6) = 7
   881      1 amd      netbsd32___fstat50(0x7, 0x7fff67a0) = 0, 2020703392
   881      1 amd      netbsd32_read(0x7, 0x78254000, 0x4000) = 774, 1
       "# $NetBSD: netconfig,v 1.1 2000/06/02 22:54:10 fvdl Exp $\n#\n# The 
networ"
   881      1 amd      netbsd32_close(0x7)         = 0
   881      1 amd      netbsd32_getsockopt(0x5, 0, 0x13, 0x7fff68a0, 
0x7fff68ac) = 0, 24
   881      1 amd      netbsd32_setsockopt(0x5, 0, 0x13, 0x7fff68a4, 0x4) = 0, 
24
   881      1 amd      netbsd32_bind(0x5, 0x7fff6970, 0x10) Err#22 EINVAL
   881      1 amd      netbsd32_setsockopt(0x5, 0, 0x13, 0x7fff68a0, 0x4) = 0, 
2020696832
   881      1 amd      netbsd32_listen(0x5, 0x80)  Err#45 EOPNOTSUPP
   881      1 amd      netbsd32_getsockname(0x5, 0x7fff67d8, 0x7fff67d0) = 0, -1
   881      1 amd      netbsd32_getsockopt(0x5, 0xffff, 0x1008, 0x7fff67d4, 
0x7fff67d0) = 0, -1
   881      1 amd      netbsd32_getsockname(0x5, 0x7fff67e8, 0x7fff67e0) = 0, 2
   881      1 amd      netbsd32_getsockname(0x5, 0x7fff66f8, 0x7fff66f0) = 0, 2
   881      1 amd      netbsd32_getsockopt(0x5, 0xffff, 0x1008, 0x7fff66f4, 
0x7fff66f0) = 0, 2
   881      1 amd      netbsd32_getsockname(0x5, 0x7fff67c8, 0x7fff67b0) = 0, 
2020711168

   881      1 amd      fork()                      = 263
   263      1 amd      fork                        = 0
   263      1 amd      emul(netbsd32)
   263      1 amd      getpid()                    = 263, 1
   263      1 amd      netbsd32___stat50("/home", 0x7fff65a8) = 0, 3
   881      1 amd      netbsd32___sigprocmask14(0x3, 0x7fff68a0, 0) = 0, 1
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 1
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 4
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 989707
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 288
   881      1 amd      netbsd32_mkdir("/m", 0x16d) Err#17 EEXIST
   881      1 amd      netbsd32___stat50("/m", 0x7fff6800) = 0, 3965
   881      1 amd      netbsd32___sigprocmask14(0x1, 0x7fff6890, 0x7fff68a0) = 
0, 320
   881      1 amd      fork()                      = 685
   263      1 amd      getppid()                   = 881, 2021327296
   263      1 amd      netbsd32___mount50(0x10026a50, 0x782241f8, 0x100000, 
0x7fff5f90, 0) Err#22 EINVAL
   263      1 amd      issetugid()                 = 0, 108
   263      1 amd      issetugid()                 = 0, 32


   685      1 amd      fork                        = 0
   685      1 amd      emul(netbsd32)
   685      1 amd      getpid()                    = 685, 1
   685      1 amd      netbsd32___stat50("/m", 0x7fff65a8) = 0, 3
   881      1 amd      netbsd32___sigprocmask14(0x3, 0x7fff68a0, 0) = 0, 2
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 1
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 5
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 114294
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 352
   881      1 amd      netbsd32_mkdir("/net", 0x16d) Err#17 EEXIST
   881      1 amd      netbsd32___stat50("/net", 0x7fff6800) = 0, 2013
   881      1 amd      netbsd32___sigprocmask14(0x1, 0x7fff6890, 0x7fff68a0) = 
0, 384
   881      1 amd      fork()                      = 264
   685      1 amd      getppid()                   = 881, 2021327296
   685      1 amd      netbsd32___mount50(0x10026a50, 0x78218274, 0x100000, 
0x7fff5f90, 0) Err#22 EINVAL
   685      1 amd      issetugid()                 = 0, 108
   685      1 amd      issetugid()                 = 0, 32

   264      1 amd      fork                        = 0
   264      1 amd      emul(netbsd32)
   264      1 amd      getpid()                    = 264, 1
   264      1 amd      netbsd32___stat50("/net", 0x7fff65a8) = 0, 3
   264      1 amd      getppid()                   = 881, 2021327296
   264      1 amd      netbsd32___mount50(0x10026a50, 0x78224238, 0x100000, 
0x7fff5f90, 0) Err#22 EINVAL
   264      1 amd      issetugid()                 = 0, 108
   264      1 amd      issetugid()                 = 0, 32

   881      1 amd      netbsd32___sigprocmask14(0x3, 0x7fff6850, 0) = 0, 509
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 1
   881      1 amd      netbsd32___sigprocmask14(0x1, 0x10048330, 0x7fff6a20) = 0
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 416
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 1
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 2015691536
   881      1 amd      netbsd32___sigprocmask14(0x10048340, 0, 0x10048594) = 0, 
3
   881      1 amd      netbsd32___sigaltstack14(0, 0x7fff69b0) = 0, 3
   881      1 amd      netbsd32___sigprocmask14(0x3, 0x7fff69c0, 0) = 0, 1
   264      1 amd      netbsd32___nanosleep50      = 0, -53
   264      1 amd      netbsd32___mount50(0x10026a50, 0x78224238, 0x100000, 
0x7fff5f90, 0) Err#22 EINVAL
   264      1 amd      issetugid()                 = 0, 108
   264      1 amd      issetugid()                 = 0, 32

   881      1 amd      getpid()                    = 881, 1983
   881      1 amd      netbsd32___socket30(0x1, 0x10000002, 0) = 9
   881      1 amd      netbsd32_connect(0x9, 0x786f4f60, 0x6a) = 0, -1
   881      1 amd      netbsd32_sendto(0x9, 0x7fff57b0, 0x72, 0, 0, 0) = 114, 
2020696832
       "<27>1 2012-06-08T13:22:05.542349-05:00 chalk.technoskunk.fur amd 881 - - 
/"
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 268693008
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 17
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 1
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 509
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 1
   881      1 amd      netbsd32___gettimeofday50(0x787a8438, 0) = 0, 2015691536
   881      1 amd      netbsd32___sigprocmask14(0x10048340, 0, 0x10048594) = 0, 
268500992
   881      1 amd      netbsd32___sigaltstack14(0, 0x7fff69b0) = 0, 268500992
   881      1 amd      netbsd32___sigprocmask14(0x3, 0x7fff69c0, 0) = 0, 1
   263      1 amd      netbsd32___mount50(0x10026a50, 0x782241f8, 0x100000, 
0x7fff5f90, 0) Err#22 EINVAL
   263      1 amd      issetugid()                 = 0, 108
   263      1 amd      issetugid()                 = 0, 32

   263      1 amd      netbsd32_munmap(0x787b0000, 0x10be) = 0
   263      1 amd      netbsd32___gettimeofday50(0x7fff4418, 0) = 0, 1
   263      1 amd      getpid()                    = 263, 1983
   263      1 amd      netbsd32_fcntl(0x9, 0x3, 0) = 2
   263      1 amd      netbsd32_sendto(0x9, 0x7fff4d10, 0x69, 0, 0, 0) = 105, 
2020696832
       "<27>1 2012-06-08T13:22:10.570502-05:00 chalk.technoskunk.fur amd 263 - - 
'"
   263      1 amd      issetugid()                 = 0, 108
   263      1 amd      issetugid()                 = 0, 32
   263      1 amd      netbsd32_open("/usr/share/nls/nls.alias.db", 0x400000, 
0) Err#2 ENOENT
   263      1 amd      netbsd32_open("/usr/share/nls/nls.alias", 0x400000, 0) = 
10, 2
   685      1 amd      netbsd32___mount50(0x10026a50, 0x78218274, 0x100000, 
0x7fff5f90, 0) Err#22 EINVAL
   685      1 amd      issetugid()                 = 0, 108
   685      1 amd      issetugid()                 = 0, 32


Hope this helps sort out compat32 support.

--
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645


Home | Main Index | Thread Index | Old Index