Package: libapache2-mod-python Version: 3.5.0+git20211031.e6458ec Severity: normal Tags: patch
Dear Maintainer, (gdb) bt #0 raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:50 #1 <signal handler called> #2 __new_sem_post (sem=0x21) at sem_post.c:36 #3 0x00007f38785080f9 in PyThread_release_lock () from /lib/x86_64-linux-gnu/libpython3.9.so.1.0 #4 0x00007f3878570be9 in ?? () from /lib/x86_64-linux-gnu/libpython3.9.so.1.0 #5 0x00007f38788d4a2a in release_interpreter (idata=0x55da959531c0) at mod_python.c:306 #6 python_handler (req=0x7f387450d0a0, phase=<optimized out>) at mod_python.c:1573 #7 0x000055da949c4bb0 in ap_run_handler () #8 0x000055da949c51a6 in ap_invoke_handler () #9 0x000055da949ddabb in ap_process_async_request () #10 0x000055da949ddcfe in ap_process_request () #11 0x000055da949d9bad in ?? () #12 0x000055da949ce860 in ap_run_process_connection () #13 0x00007f3878960133 in ?? () from /usr/lib/apache2/modules/mod_mpm_worker.so #14 0x00007f3878c5eea7 in start_thread (arg=<optimized out>) at pthread_create.c:477 #15 0x00007f3878b8edef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 Running with more debugging shows the problem to be an attempt to release the currently running thread. This is reported upstream as https://github.com/grisha/mod_python/issues/100 --- a/src/mod_python.c +++ b/src/mod_python.c @@ -303,7 +303,7 @@ static void release_interpreter(interpre { PyThreadState *tstate = PyThreadState_Get(); #ifdef WITH_THREAD - PyThreadState_Clear(tstate); + //PyThreadState_Clear(tstate); if (idata) APR_ARRAY_PUSH(idata->tstates, PyThreadState *) = tstate; else -- System Information: Debian Release: 11.4 APT prefers stable APT policy: (1002, 'stable'), (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-13-amd64 (SMP w/32 CPU threads) Kernel taint flags: TAINT_FIRMWARE_WORKAROUND Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages libapache2-mod-python depends on: ii apache2-bin [apache2-api-20120211] 2.4.54-1~deb11u1 ii libc6 2.31-13+deb11u3 ii libpython3.9 3.9.2-1 ii python3 3.9.2-3 libapache2-mod-python recommends no packages. Versions of packages libapache2-mod-python suggests: pn libapache2-mod-python-doc <none> -- no debconf information