[Bug 1960088] Re: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN
This bug was fixed in the package libapache2-mod-python - 3.5.0+git20211031-0ubuntu1 --- libapache2-mod-python (3.5.0+git20211031-0ubuntu1) jammy; urgency=medium * Bump to commit e6458ecc285f as mod_python does not deliver release anymore. * d/patches: + adapted 03_ignore-git-version.patch + removed as already applied 05_fix_spelling.patch + removed as already applied 07_fix-compilation-with-python-3.7.patch + removed as already applied 09_create-DESTDIR-BINDIR-if-needed.patch + added 11_py310_py_ssize_t_clean.patch from ahasenack (LP: #1960088) + added 12_py310_collections_import.patch from ahasenack (LP: #1960088) + added 13_version_fix.patch * Update maintainer to Ubuntu developers * Regenerate doc-html -- Alexandre Ghiti Wed, 23 Feb 2022 13:32:41 +0100 ** Changed in: libapache2-mod-python (Ubuntu) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1960088 Title: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/1960088/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1960088] Re: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN
** Changed in: libapache2-mod-python (Ubuntu) Status: Triaged => Fix Committed ** Changed in: libapache2-mod-python (Ubuntu) Assignee: (unassigned) => Graham Inggs (ginggs) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1960088 Title: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/1960088/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1960088] Re: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN
I second Graham's suggestion: if one day 3.6.0 gets released, or skipped by e.g. a jump to 4.0, having a package with version 3.6.0 will be confusing. Given that upstream development is slow I don't think it's worth adding a short commit hash to the version string. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1960088 Title: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/1960088/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1960088] Re: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN
I suggest using a version like 3.5.0+git20211031-0ubuntu1. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1960088 Title: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/1960088/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1960088] Re: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN
I went ahead and gave master a try here [1] and that locally fixes the segfault. I think taking master is ok, there's not much activity in this repo which I interpret as master is stable enough. I versioned this package as 3.6.0 but I'm not sure here. Thanks xnox, [1] https://launchpad.net/~alexghiti/+archive/ubuntu/riscv/+sourcepub/13277687/+listing- archive-extra -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1960088 Title: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/1960088/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1960088] Re: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN
Applying the patches on top of git master makes things work. So i wonder if we should just package the git snapshot. Or like apply all patches from git master. Or like see which ones we need. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1960088 Title: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/1960088/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1960088] Re: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN
I have just asked for help here https://github.com/grisha/mod_python/issues/113 ** Bug watch added: github.com/grisha/mod_python/issues #113 https://github.com/grisha/mod_python/issues/113 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1960088 Title: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/1960088/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1960088] Re: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN
** Changed in: libapache2-mod-python (Ubuntu) Status: New => Triaged ** Changed in: libapache2-mod-python (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1960088 Title: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/1960088/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1960088] Re: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN
I worked a bit on this package too, here are my findings: ``` Thread 2 "apache2" hit Breakpoint 2, 0x5624ceb81420 in ap_rwrite () (gdb) bt #0 0x5624ceb81420 in ap_rwrite () #1 0x7fe7c99bbe72 in req_write (self=0x7fe7c84df700, args=) at /home/ubuntu/libapache2-mod-python/libapache2-mod-python-3.5.0/src/requestobject.c:1590 #2 0x7fe7c9501bce in ?? () from target:/lib/x86_64-linux-gnu/libpython3.10.so.1.0 #3 0x7fe7c948be4e in _PyEval_EvalFrameDefault () from target:/lib/x86_64-linux-gnu/libpython3.10.so.1.0 #4 0x7fe7c95d7e1f in ?? () from target:/lib/x86_64-linux-gnu/libpython3.10.so.1.0 #5 0x7fe7c948a58e in _PyEval_EvalFrameDefault () from target:/lib/x86_64-linux-gnu/libpython3.10.so.1.0 #6 0x7fe7c95d7e1f in ?? () from target:/lib/x86_64-linux-gnu/libpython3.10.so.1.0 #7 0x7fe7c948a58e in _PyEval_EvalFrameDefault () from target:/lib/x86_64-linux-gnu/libpython3.10.so.1.0 #8 0x7fe7c95d7e1f in ?? () from target:/lib/x86_64-linux-gnu/libpython3.10.so.1.0 #9 0x7fe7c948a58e in _PyEval_EvalFrameDefault () from target:/lib/x86_64-linux-gnu/libpython3.10.so.1.0 #10 0x7fe7c95d7e1f in ?? () from target:/lib/x86_64-linux-gnu/libpython3.10.so.1.0 #11 0x7fe7c94f8f48 in ?? () from target:/lib/x86_64-linux-gnu/libpython3.10.so.1.0 #12 0x7fe7c94f9143 in ?? () from target:/lib/x86_64-linux-gnu/libpython3.10.so.1.0 #13 0x7fe7c94f9825 in _PyObject_CallMethod_SizeT () from target:/lib/x86_64-linux-gnu/libpython3.10.so.1.0 #14 0x7fe7c99c505c in python_handler (req=0x7fe7c93740a0, phase=) at /home/ubuntu/libapache2-mod-python/libapache2-mod-python-3.5.0/src/mod_python.c:1535 #15 0x5624ceb8dc08 in ap_run_handler () #16 0x5624ceb8faf6 in ap_invoke_handler () #17 0x5624cebb6678 in ap_process_async_request () #18 0x5624cebb6d1b in ?? () #19 0x5624ceba2d68 in ap_run_process_connection () #20 0x7fe7c9a1d795 in ?? () from target:/usr/lib/apache2/modules/mod_mpm_event.so #21 0x7fe7c9a1e13c in ?? () from target:/usr/lib/apache2/modules/mod_mpm_event.so #22 0x7fe7c9c05b43 in start_thread (arg=) at ./nptl/pthread_create.c:442 #23 0x7fe7c9c97b80 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 (gdb) up #1 0x7fe7c99bbe72 in req_write (self=0x7fe7c84df700, args=) at /home/ubuntu/libapache2-mod-python/libapache2-mod-python-3.5.0/src/requestobject.c:1590 1590rc = ap_rwrite(buff, len, self->request_rec); (gdb) p/x buff $1 = 0x7fe7 (gdb) p/x *buff Cannot access memory at address 0x7fe7 ``` And indeed the segfault happens in a lower frame at this same address: ``` Thread 2 "apache2" received signal SIGSEGV, Segmentation fault. __memmove_sse2_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:416 416 ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory. (gdb) display /i $pc 1: x/i $pc => 0x7fe7c9c35a60 <__memmove_sse2_unaligned_erms+96>: mov -0x8(%rsi,%rdx,1),%rcx (gdb) p/x $rsi $2 = 0x7fe7 (gdb) p/x $rdx $3 = 0xe ``` And I can't find this address in /proc/pid/maps, which is weird because that would mean PyArg_ParseTuple returns a wrong address. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1960088 Title: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/1960088/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1960088] Re: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN
** Tags added: server-todo -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1960088 Title: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/1960088/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1960088] Re: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN
** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1960088 Title: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/1960088/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1960088] Re: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN
I tried these patches, but apache is segfaulting still. ** Patch added: "11_py310_py_ssize_t_clean.patch" https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/1960088/+attachment/5559326/+files/11_py310_py_ssize_t_clean.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1960088 Title: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/1960088/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1960088] Re: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN
** Patch added: "12_py310_collections_import.patch" https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/1960088/+attachment/5559327/+files/12_py310_collections_import.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1960088 Title: a) "collections" has no attribute "callable"; b) PY_SSIZE_T_CLEAN To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-python/+bug/1960088/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs