[OpenAFS-devel] Re: Weird interaction between libnss-afs and aklog

Jakub Witkowski jpw@wszib.edu.pl
Tue, 24 Nov 2009 17:14:06 +0100


Dnia 2009-11-24, o godz. 10:25:51
Jeffrey Altman <jaltman@secure-endpoints.com> napisa=C5=82(a):

> Jakub Witkowski wrote:
>=20
> > The backtrace follows:
> > Program received signal SIGSEGV, Segmentation fault.
> > [Switching to Thread 0x7fd9c68ac700 (LWP 22199)]
> > 0x000000000042713f in rxi_Start (event=3D0x0, arg0=3D0x1380e00,
> > arg1=3D0x0, istack=3D0) at rx.c:5287 5287	    struct rx_peer
> > *peer =3D call->conn->peer; (gdb) backtrace
>=20
> What are the values of call and call->conn in this frame?
>=20
> Jeffrey Altman
>=20
>=20
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel

My knowledge of gdb is limited so if it's not what you need, tell me
please.
Additionally, this info is from another run of the tool, as I did not
save the core, just ran aklog from gdb and let it crash, so I'm
including whole backtrace again.

(gdb) backtrace
#0  0x000000000042713f in rxi_Start (event=3D0x0, arg0=3D0x7fe04c000f00,
arg1=3D0x0, istack=3D0) at rx.c:5287
#1  0x00007fe0504374f0 in rxi_ReadProc () from /lib/libnss_afs.so.2
#2  0x00007fe050437a70 in rx_ReadProc32 () from /lib/libnss_afs.so.2
#3  0x00007fe050439296 in xdrrx_getint32 () from /lib/libnss_afs.so.2
#4  0x00007fe050438943 in afs_xdr_u_int () from /lib/libnss_afs.so.2
#5  0x00007fe0504390b1 in afs_xdr_array () from /lib/libnss_afs.so.2
#6  0x00007fe05041af15 in xdr_namelist () from /lib/libnss_afs.so.2
#7  0x00007fe05041a149 in PR_IDToName () from /lib/libnss_afs.so.2
#8  0x00007fe05040ee3e in ubik_Call () from /lib/libnss_afs.so.2
#9  0x00007fe05040d61d in ptsid2name (uid=3D1281, buffer=3D0x7fffbddae718,=
=20
    buflen=3D0x7fffbddae710) at nss_afs.c:133
#10 0x00007fe05040e2d0 in _nss_afs_getpwuid_r (uid=3D1281,=20
    result_buf=3D0x7fe0515f98a0, buffer=3D0x7c9ab0 "=EF=BF=BD\221_Q=EF=BF=
=BD\177",
buflen=3D1024, errnop=3D0x7fe0520e4698) at nss_afs.c:447
#11 0x00007fe051347102 in getpwuid_r () from /lib/libc.so.6
#12 0x00007fe0513469cf in getpwuid () from /lib/libc.so.6
#13 0x0000000000408254 in aklog (argc=3D1, argv=3D0x7fffbddb3cf8)
    at aklog_main.c:1441
#14 0x0000000000405b47 in main (argc=3D1, argv=3D0x7fffbddb3cf8) at
aklog.c:14 (gdb) print call
$1 =3D (struct rx_call *) 0x7fe04c000f00
(gdb) print call->conn
$2 =3D (struct rx_connection *) 0x1


Jakub Witkowski