GNU bug report logs - #69064
python-mysqlclient: MySQLdb.string_literal SIGSEGV

Previous Next

Package: guix;

Reported by: Marco Rimoldi <rimarko <at> libero.it>

Date: Mon, 12 Feb 2024 00:09:02 UTC

Severity: normal

To reply to this bug, email your comments to 69064 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#69064; Package guix. (Mon, 12 Feb 2024 00:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marco Rimoldi <rimarko <at> libero.it>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 12 Feb 2024 00:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Marco Rimoldi <rimarko <at> libero.it>
To: bug-guix <at> gnu.org
Subject: python-mysqlclient: MySQLdb.string_literal SIGSEGV
Date: Mon, 12 Feb 2024 01:08:16 +0100
Hello,

I think I found a bug in python-mysqlclient <at> 2.0.1 compiled with mariadb:dev <at> 10.10.2.

To reproduce: run a Python 3.10.7 terminal, import the MySQLdb module, call the  string_literal function with any argument. Interpreter crashes due to segmentation fault. Arch is x86_64.

Same with version 2.2.4, tested tweaking the package definition.

I tried installing mariadb with debug symbols, but I was not able to make mysqlclient link against that variant (either using transformations in a manifest file or --with-debug-info=mariadb). Suggestions are welcome.

The bug affects the openmolar package.

Marco




Information forwarded to bug-guix <at> gnu.org:
bug#69064; Package guix. (Mon, 12 Feb 2024 14:41:02 GMT) Full text and rfc822 format available.

Message #8 received at 69064 <at> debbugs.gnu.org (full text, mbox):

From: Marco Rimoldi <rimarko <at> libero.it>
To: 69064 <at> debbugs.gnu.org
Subject: Re: bug#69064: python-mysqlclient: MySQLdb.string_literal SIGSEGV
Date: Mon, 12 Feb 2024 15:19:18 +0100
I've set up to test this bug with a more recent version of mariadb, but I must be missing something important about the Guix workflow here. Maybe that could explain the bug as an error on my part, as well. I'd really appreciate your help, because I'm at a loss here.

The steps I've taken so far:

I populated a manifest.scm file along these lines:

(define-public mariadb-test
  (package
    (name "mariadb-test")
    (version "10.11.7")
    [...]
    (build-system cmake-build-system)
    (outputs '("out" "lib" "dev"))
    (arguments
     `(#:tests? #f   ;; tests disabled but passing for the most part
    [...]

(define-public python-mysqlclient-test
  (package
    (name "python-mysqlclient")
    (version "2.2.4")
    [...]
    (build-system pyproject-build-system)
    (arguments '(#:tests? #f))          ;XXX: requires a live database
    (inputs (list pkg-config 
                  `(,mariadb-test "dev")
		  `(,mariadb-test "lib")
                  zlib))
    (propagated-inputs (list `(,mariadb-test "lib")))
    [...]

(define transform
  (options->transformation
   '((with-debug-info . "mariadb-test"))))

(packages->manifest (list gdb
			  python-pdbpp
			  python-3
			  (transform python-mysqlclient-test)
			  (transform mariadb-test)))

I then launched a guix shell and ran the debugger:

guix shell --manifest=manifest.scm
gdb --args "python3 test.py"
(gdb) run
Starting program: /gnu/store/hm1kl7zi0r2nbg1zgh8ywwm0h35h6zfx-profile/bin/python3 test.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/gnu/store/ln6hxqjvz6m9gdd9s97pivlqck7hzs99-glibc-2.35/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff75b5f23 in ?? () from /gnu/store/z0c58i28g97z85w986i841l4crbpf8zk-mariadb-10.10.2-lib/lib/libmariadb.so.3

The part that I cannot understand is why the segfault always happens in mariadb-10.10.2-lib, ie. a different package compared to what I declared in the manifest file. This happens after running "guix gc", as well.

Marco




Added indication that bug 69064 blocks69122 Request was from Marco Rimoldi <rimarko <at> libero.it> to control <at> debbugs.gnu.org. (Thu, 21 Mar 2024 15:42:02 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 90 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.