NetBSD-Bugs archive

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

Re: bin/51505: amd in 7.0_STABLE can segfault



The following reply was made to PR bin/51505; it has been noted by GNATS.

From: Mark Davies <mark%ecs.vuw.ac.nz@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/51505: amd in 7.0_STABLE can segfault
Date: Mon, 3 Oct 2016 15:30:32 +1300

 On 27/09/16 09:10, Mark Davies wrote:
 >  Unfortunately I don't have a debug version that matches the build that 
 >  was running, so will have to wait for it to occur with the current amd.
 
 And it has:
 
 
 #0  0x00007f7ff69005db in strcmp () from /usr/lib/libc.so.12
 #1  0x000000000041970b in find_nfs_srvr (mf=0x7f7ff773dd80) at
 srvr_nfs.c:945
 #2  0x000000000040abe1 in amfs_nfsl_ffserver (mf=0x7f7ff773dd80) at
 amfs_nfsl.c:234
 #3  0x000000000041175c in init_mntfs (mf=mf@entry=0x7f7ff773dd80,
 ops=ops@entry=0x630ee0 <amfs_nfsl_ops>, mo=mo@entry=0x7f7ff770d900,
     mp=mp@entry=0x7f7ff7706340 "/am/paramount/vol/ecs",
 info=info@entry=0x7f7ff7706380 "paramount:/am/paramount/vol/ecs",
     auto_opts=auto_opts@entry=0x7f7ff773d180
 "type:=nfsl;rfs:=${autodir}/${rhost}/vol/${key};fs:=${rfs};opts:=rw,intr,nolock,vers=3,xlatecookie;remopts:=${opts};",
 mopts=mopts@entry=0x7f7ff771d4a0 "rw,intr,nolock,vers=3,xlatecookie",
     remopts=remopts@entry=0x7f7ff771d9e0
 "rw,intr,nolock,vers=3,xlatecookie") at mntfs.c:98
 #4  0x0000000000411b29 in alloc_mntfs (remopts=0x7f7ff771d9e0
 "rw,intr,nolock,vers=3,xlatecookie",
     mopts=0x7f7ff771d4a0 "rw,intr,nolock,vers=3,xlatecookie",
     auto_opts=0x7f7ff773d180
 "type:=nfsl;rfs:=${autodir}/${rhost}/vol/${key};fs:=${rfs};opts:=rw,intr,nolock,vers=3,xlatecookie;remopts:=${opts};",
 
     info=0x7f7ff7706380 "paramount:/am/paramount/vol/ecs",
 mp=0x7f7ff7706340 "/am/paramount/vol/ecs", mo=0x7f7ff770d900,
 ops=0x630ee0 <amfs_nfsl_ops>)
     at mntfs.c:109
 #5  find_mntfs (ops=0x630ee0 <amfs_nfsl_ops>,
 mo=mo@entry=0x7f7ff770d900, mp=0x7f7ff7706340 "/am/paramount/vol/ecs",
     info=0x7f7ff7706380 "paramount:/am/paramount/vol/ecs",
     auto_opts=auto_opts@entry=0x7f7ff773d180
 "type:=nfsl;rfs:=${autodir}/${rhost}/vol/${key};fs:=${rfs};opts:=rw,intr,nolock,vers=3,xlatecookie;remopts:=${opts};",
 mopts=0x7f7ff771d4a0 "rw,intr,nolock,vers=3,xlatecookie",
 remopts=0x7f7ff771d9e0 "rw,intr,nolock,vers=3,xlatecookie") at mntfs.c:207
 #6  0x00000000004093d6 in amfs_lookup_one_location
 (new_mp=0x7f7ff7701d00, mf=0x7f7ff7b19c00, pfname=0x7f7ff773eb88 "ecs",
     def_opts=0x7f7ff773d180
 "type:=nfsl;rfs:=${autodir}/${rhost}/vol/${key};fs:=${rfs};opts:=rw,intr,nolock,vers=3,xlatecookie;remopts:=${opts};",
 
     ivec=0x7f7ff7706280 "rhost:=paramount") at amfs_generic.c:301
 #7  amfs_lookup_loc (new_mp=new_mp@entry=0x7f7ff7701d00,
 error_return=error_return@entry=0x7f7fffffd3ec) at amfs_generic.c:477
 #8  0x0000000000409a51 in amfs_generic_lookup_child (mp=0x7f7ff7b42150,
 fname=<optimized out>, error_return=0x7f7fffffd3ec, op=1) at
 amfs_generic.c:1184
 #9  0x0000000000413afd in nfsproc_lookup_2_svc (argp=0x7f7fffffd430,
 rqstp=<optimized out>) at nfs_subr.c:230
 #10 0x000000000041227b in nfs_program_2 (rqstp=0x7f7fffffd4c0,
 transp=0x7f7ff7b46080) at nfs_prot_svc.c:283
 #11 0x00007f7ff68c9401 in svc_getreq_common () from /usr/lib/libc.so.12
 #12 0x00007f7ff68c9444 in svc_getreqset () from /usr/lib/libc.so.12
 #13 0x0000000000412b9f in run_rpc () at nfs_start.c:289
 #14 mount_automounter (ppid=ppid@entry=441) at nfs_start.c:452
 #15 0x0000000000420b7b in main (argc=13, argv=<optimized out>) at amd.c:561
 
 
 (gdb) up
 #1  0x000000000041970b in find_nfs_srvr (mf=0x7f7ff773dd80) at
 srvr_nfs.c:945
 945             STREQ(nfs_proto, fs->fs_proto)) {
 (gdb) p fs
 $1 = (fserver *) 0x7f7ff7b2a5c0
 (gdb) p *fs
 $2 = {fs_q = {q_forw = 0x7f7ff7b2a6e0, q_back = 0x7f7ff7b2a800}, fs_refc
 = 0, fs_host = 0x7f7ff7705980 "paramount.ecs.vuw.ac.nz",
   fs_ip = 0x7f7ff773f480, fs_cid = 418546, fs_pinger = 30, fs_flags = 2,
 fs_type = 0x4257b9 "nfs", fs_version = 3, fs_proto = 0x0,
   fs_private = 0x7f7ff77059a0, fs_prfree = 0x405e20 <free@plt>}
 (gdb) p nfs_proto
 $3 = 0x424771 "tcp"
 
 
 cheers
 mark
 


Home | Main Index | Thread Index | Old Index