Segfault on server exit with a GSSAPI server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Project Moonshot |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Hi,
I met a segfault when exiting a program which has instanced at least one
GSSAPI server:
==22893== Invalid read of size 4
==22893== at 0x7E91818: shibresolver:
/usr/lib/
==22893== by 0x40D250E: __run_exit_handlers (exit.c:78)
==22893== by 0x40D257E: exit (exit.c:100)
==22893== by 0x81773C8: Py_Exit (pythonrun.c:1774)
==22893== by 0x8175967: handle_system_exit (pythonrun.c:1146)
==22893== by 0x8175985: PyErr_PrintEx (pythonrun.c:1156)
==22893== by 0x8175638: PyErr_Print (pythonrun.c:1059)
==22893== by 0x8174FE8: PyRun_SimpleFil
==22893== by 0x817473B: PyRun_AnyFileEx
==22893== by 0x818CFA9: Py_Main (main.c:639)
==22893== by 0x805D2E6: main (python.c:23)
==22893== Address 0x49c5de0 is 0 bytes inside a block of size 28 free'd
==22893== at 0x402719C: operator delete(void*) (vg_replace_
==22893== by 0x9533032: xmltooling:
/usr/lib/
==22893== by 0x40D257E: exit (exit.c:100)
==22893== by 0x81773C8: Py_Exit (pythonrun.c:1774)
==22893== by 0x8175967: handle_system_exit (pythonrun.c:1146)
==22893== by 0x8175985: PyErr_PrintEx (pythonrun.c:1156)
==22893== by 0x8175638: PyErr_Print (pythonrun.c:1059)
==22893== by 0x8174FE8: PyRun_SimpleFil
==22893== by 0x817473B: PyRun_AnyFileEx
==22893== by 0x818CFA9: Py_Main (main.c:639)
==22893== by 0x805D2E6: main (python.c:23)
==22893==
pure virtual method called
terminate called without an active exception
Distrib: Live DVD R4
Cheers,
Vincent
PS: This is a re-post from ML moonshot-
Changed in moonshot: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Hi.
I think I mentioned this on the list.
I cannot reproduce this.
Unfortunately, as Scott pointed out, the code we're seeing is after
things are already broken.
There's a double destruct of a mutex.
We're only going to see what's going on by stepping through the
close-down code.
So, for example when I run gss-server I don't see this...
Hmm, although gss-server doesn't call exit.
OK, I'll look into calling exit and seeing what I get.
Actually, trustrouter probably gives a way to try this.