From nobody Tue Aug 15 12:52:28 2023 X-Original-To: freebsd-python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RQB4g3lcxz4mLpy for ; Tue, 15 Aug 2023 12:52:35 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RQB4f3V6Vz3ffw; Tue, 15 Aug 2023 12:52:34 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=WH7FVaCr; spf=pass (mx1.freebsd.org: domain of grahamperrin@gmail.com designates 2a00:1450:4864:20::62f as permitted sender) smtp.mailfrom=grahamperrin@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-99bf8e5ab39so729546766b.2; Tue, 15 Aug 2023 05:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692103951; x=1692708751; h=subject:from:content-language:to:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=lfG2exEQ8bgGPdMp2xh8LLUd+MnoVMlVjteeDoz17v0=; b=WH7FVaCrtDG6Z46fB0GeUZlgyV17ZPc4NTQtmfhKHGLE7H9rEnIilgyAtUEbUHZV9t ZyUJg/k0jqd8qvTJryrWPf4QgMgR2awmxf2QtjwGLW4baS4/mNCZ9QZJv0BZHje156rJ w4bBAn7NOAv8EbTOPR9fXJvPMz/k87ffRNVQhKS3EptIFXkfbHTKj5yURyxlrMNvjllP RHTHJsVvSz0rqQ9+Bj53URcSFyIYVZdBw7Prg0YubklOdtVAV4A/XYBNT+7aLpHYnn6u LfwGR7M7HCfVtgs+igxAFj89MBCpDvFBh3Hs54QuG3fDaBMRjFSeMNIwsehvI/e2vMSC gThg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692103951; x=1692708751; h=subject:from:content-language:to:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lfG2exEQ8bgGPdMp2xh8LLUd+MnoVMlVjteeDoz17v0=; b=CUXTs/qsdUoLtgMwfZ2AZ8d8lLUJ4Hvq8YfskDmkdI1HzYKN42oEImOLmHA21usr+3 Rrijq0wxIOAopJsieWMOhF4w0LOK9J76OFFnd4L1LfndGGO3Kh9E/Y3g9SiWE62LIqtv IMWxAL5bJ1qtXRZ1xu81U5SneLFK+ywcrGTz1wwp8LQfwMVJcMmNjyH4zsLnqoGdntTc V5tzGBqYxF6/JfPRJvPUQbze0aeAf81ZuEs9fApMQ+yYpYyWh0U6rJ2PMmk89K7IpqOE +Y/sxvV+iyV6S9ghoc4tBRPfDbKzf/G5gZbVLkEhNuAOuGtWT7yIIWx17NsqQngxgCrA JaHA== X-Gm-Message-State: AOJu0YzPstZH6PtM9pmKbjaPcZXx+yBDIwjhoVnsd4vV016dYh4H61Qp bqncErcVZiXY03fQj/Sv+iVHUGw0W3KmYQ== X-Google-Smtp-Source: AGHT+IHeaXWm6Sw/vq9PC08RG/Vm0b2gC9w/E/Pc5U/x8NlYwe/scxuZPWaB+WgnHE1xBntBVKBQSQ== X-Received: by 2002:a17:907:7883:b0:99b:e464:bf49 with SMTP id ku3-20020a170907788300b0099be464bf49mr10123079ejc.51.1692103950666; Tue, 15 Aug 2023 05:52:30 -0700 (PDT) Received: from [192.168.1.10] (80-42-66-93.dynamic.dsl.as9105.com. [80.42.66.93]) by smtp.gmail.com with ESMTPSA id v8-20020a1709060b4800b009930308425csm7013480ejg.31.2023.08.15.05.52.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Aug 2023 05:52:30 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------mfI6PhTfhsDORwOSVtLIhvHg" Message-ID: <2018f00a-6e76-7fdd-3941-279a0abb3156@gmail.com> Date: Tue, 15 Aug 2023 13:52:28 +0100 List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 To: Roman Bogorodskiy , freebsd-python@freebsd.org, kde@freebsd.org Content-Language: en-US From: Graham Perrin Subject: lang/python39 Python 3.9 crashes after relatively long runs of www/qutebrowser, libQt5WebEngineCore.so.5 from www/qt5-webengine in the backtrace X-Spamd-Result: default: False [-2.04 / 15.00]; URI_COUNT_ODD(1.00)[11]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_SHORT(-0.04)[-0.038]; FREEFALL_USER(0.00)[grahamperrin]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62f:from]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-python@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Spamd-Bar: -- X-Rspamd-Queue-Id: 4RQB4f3V6Vz3ffw This is a multi-part message in MIME format. --------------mfI6PhTfhsDORwOSVtLIhvHg Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit More than a handful of crashes, at qutebrowser quit time. I typically key Control-Q or Alt-F4. To not have discussion across two lists, should I make a bug report in Bugzilla? *Example* % qutebrowser /usr/local/poudriere/data/logs/bulk/main-default/latest/index.html 10:03:07WARNING: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-grahamperrin' 10:03:09WARNING: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-grahamperrin' 10:03:13WARNING: Could not create scene graph context for backend 'opengl' - check that plugins are installed correctly in /usr/local/lib/qt5/plugins Fatal Python error: Bus error Thread 0x000008ac4b012000 (most recent call first): Bus error (core dumped) % pwd /usr/home/grahamperrin % ls -hlrt *.core -rw-------  1 grahamperrin grahamperrin  200M 29 Jul 18:37 sqlitebrowser.core -rw-------  1 grahamperrin grahamperrin   46M  5 Aug 03:56 plasmashell.core -rw-------  1 grahamperrin grahamperrin  138M  9 Aug 15:08 remmina.core -rw-------  1 grahamperrin grahamperrin   44M 14 Aug 13:24 kded5.core -rw-------  1 grahamperrin grahamperrin   45M 14 Aug 13:24 drkonqi.core -rw-------  1 grahamperrin grahamperrin  230M 14 Aug 16:21 WebKitWebProcess.core -rw-------  1 grahamperrin grahamperrin  334M 15 Aug 11:09 python3.9.core % *Backtrace (probably nothing useful)* % gdb /usr/local/bin/python3.9 -- /home/grahamperrin/python3.9.core GNU gdb (GDB) 13.1 [GDB v13.1 for FreeBSD] Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-portbld-freebsd14.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at:    . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/local/bin/python3.9... (No debugging symbols found in /usr/local/bin/python3.9) [New LWP 209302] [New LWP 208896] [New LWP 209282] [New LWP 209283] [New LWP 209285] [New LWP 209286] [New LWP 209294] [New LWP 209303] [New LWP 209315] [New LWP 209318] [New LWP 209319] [New LWP 220530] [New LWP 220532] Core was generated by `/usr/local/bin/python3.9 /usr/local/bin/qutebrowser /usr/local/poudriere/data/lo'. Program terminated with signal SIGBUS, Bus error. Sent by thr_kill() from pid 45669 and user 1002. #0 thr_kill() at thr_kill.S:4 4       RSYSCALL(thr_kill) [Current thread is 1 (LWP 209302)] warning: File "/usr/local/lib/libpython3.9.so.1.0-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load". To enable execution of this file add        add-auto-load-safe-path /usr/local/lib/libpython3.9.so.1.0-gdb.py line to your configuration file "/home/grahamperrin/.config/gdb/gdbinit". To completely disable this security protection add        set auto-load safe-path / line to your configuration file "/home/grahamperrin/.config/gdb/gdbinit". For more information about this security protection see the "Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:        info "(gdb)Auto-loading safe path" (gdb) bt #0 thr_kill() at thr_kill.S:4 #1 0x000000082510a1b4in __raise(s=10) at /usr/src/lib/libc/gen/raise.c:52 #2 0x00000008257798dfin handle_signal(actp=actp@entry=0x926add500, sig=sig@entry=10, info=info@entry=0x926add8f0, ucp=ucp@entry=0x926add580) at /usr/src/lib/libthr/thread/thr_sig.c:303 #3 0x0000000825778e7bin thr_sighandler(sig=10, info=0x926add8f0, _ucp=0x926add580) at /usr/src/lib/libthr/thread/thr_sig.c:246 #4 0x00000008207fd2d3in () #5 check_and_init_mutex(mutex=0x5a5a5a5a5a5a5a5a, m=) at /usr/src/lib/libthr/thread/thr_mutex.c:597 #6 __Tthr_mutex_trylock(mutex=0x5a5a5a5a5a5a5a5a) at /usr/src/lib/libthr/thread/thr_mutex.c:625 #7 0x0000000861d20876in  () at /usr/local/lib/qt5/libQt5WebEngineCore.so.5 #8 0x000008ac4de7f000in  () #9 0x000008ac4de7f040in  () #10 0x000008ac4de7f010in  () #11 0x000008ac4de7f038in  () #12 0x0000000926addbe0in  () #13 0x0000000861d06c6fin  () at /usr/local/lib/qt5/libQt5WebEngineCore.so.5 #14 0x000008ac4de7f000in  () #15 0x000008ac4de5a000in  () #16 0x000008ac4de05380in  () #17 0x000008ac4de1c710in  () #18 0x0000000926addc00in  () #19 0x0000000861d06e7ein  () at /usr/local/lib/qt5/libQt5WebEngineCore.so.5 #20 0x0000000867b86eb8in  () at /usr/local/lib/qt5/libQt5WebEngineCore.so.5 #21 0x000008ac4de62600in  () #22 0x0000000926addc40in  () #23 0x000000086445726ain  () at /usr/local/lib/qt5/libQt5WebEngineCore.so.5 #24 0x000008ac52569288in  () #25 0x0000000000000000in  () (gdb) bt all No symbol "all" in current context. (gdb) q % date ; uname -aKU Tue 15 Aug 2023 11:13:20 BST FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT amd64 1400094 #2 main-n264621-09c20a293280-dirty: Wed Aug  9 02:15:02 BST 2023     grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64 .amd64/sys/GENERIC-NODEBUG amd64 1400094 1400094 % pkg iinfo qutebrowser qutebrowser-2.5.4_1 % --------------mfI6PhTfhsDORwOSVtLIhvHg Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

More than a handful of crashes, at qutebrowser quit time. I typically key Control-Q or Alt-F4.

To not have discussion across two lists, should I make a bug report in Bugzilla?

Example

% qutebrowser /usr/local/poudriere/data/logs/bulk/main-default/latest/index.html
10:03:07 WARNING: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-grahamperrin'
10:03:09 WARNING: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-grahamperrin'
10:03:13 WARNING: Could not create scene graph context for backend 'opengl' - check that plugins are installed correctly in /usr/local/lib/qt5/plugins
Fatal Python error: Bus error

Thread 0x000008ac4b012000 (most recent call first):
<no Python frame>
Bus error (core dumped)
% pwd
/usr/home/grahamperrin
% ls -hlrt *.core
-rw-------  1 grahamperrin grahamperrin  200M 29 Jul 18:37 sqlitebrowser.core
-rw-------  1 grahamperrin grahamperrin   46M  5 Aug 03:56 plasmashell.core
-rw-------  1 grahamperrin grahamperrin  138M  9 Aug 15:08 remmina.core
-rw-------  1 grahamperrin grahamperrin   44M 14 Aug 13:24 kded5.core
-rw-------  1 grahamperrin grahamperrin   45M 14 Aug 13:24 drkonqi.core
-rw-------  1 grahamperrin grahamperrin  230M 14 Aug 16:21 WebKitWebProcess.core
-rw-------  1 grahamperrin grahamperrin  334M 15 Aug 11:09 python3.9.core
%

Backtrace (probably nothing useful)

% gdb /usr/local/bin/python3.9 -- /home/grahamperrin/python3.9.core
GNU gdb (GDB) 13.1 [GDB v13.1 for FreeBSD]
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd14.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
   <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/python3.9...
(No debugging symbols found in /usr/local/bin/python3.9)
[New LWP 209302]
[New LWP 208896]
[New LWP 209282]
[New LWP 209283]
[New LWP 209285]
[New LWP 209286]
[New LWP 209294]
[New LWP 209303]
[New LWP 209315]
[New LWP 209318]
[New LWP 209319]
[New LWP 220530]
[New LWP 220532]
Core was generated by `/usr/local/bin/python3.9 /usr/local/bin/qutebrowser /usr/local/poudriere/data/lo'.
Program terminated with signal SIGBUS, Bus error.
Sent by thr_kill() from pid 45669 and user 1002.
#0  thr_kill () at thr_kill.S:4
4       RSYSCALL(thr_kill)
[Current thread is 1 (LWP 209302)]
warning: File "/usr/local/lib/libpython3.9.so.1.0-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
       add-auto-load-safe-path /usr/local/lib/libpython3.9.so.1.0-gdb.py
line to your configuration file "/home/grahamperrin/.config/gdb/gdbinit".
To completely disable this security protection add
       set auto-load safe-path /
line to your configuration file "/home/grahamperrin/.config/gdb/gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
       info "(gdb)Auto-loading safe path"
(gdb) bt
#0  thr_kill () at thr_kill.S:4
#1  0x000000082510a1b4 in __raise (s=10) at /usr/src/lib/libc/gen/raise.c:52
#2  0x00000008257798df in handle_signal (actp=actp@entry=0x926add500, sig=sig@entry=10, info=info@entry=0x926add8f0, ucp=ucp@entry=0x926add580) at /usr/src/lib/libthr/thread/thr_sig.c:303
#3  0x0000000825778e7b in thr_sighandler (sig=10, info=0x926add8f0, _ucp=0x926add580) at /usr/src/lib/libthr/thread/thr_sig.c:246
#4  0x00000008207fd2d3 in <signal handler called> ()
#5  check_and_init_mutex (mutex=0x5a5a5a5a5a5a5a5a, m=<optimized out>) at /usr/src/lib/libthr/thread/thr_mutex.c:597
#6  __Tthr_mutex_trylock (mutex=0x5a5a5a5a5a5a5a5a) at /usr/src/lib/libthr/thread/thr_mutex.c:625
#7  0x0000000861d20876 in  () at /usr/local/lib/qt5/libQt5WebEngineCore.so.5
#8  0x000008ac4de7f000 in  ()
#9  0x000008ac4de7f040 in  ()
#10 0x000008ac4de7f010 in  ()
#11 0x000008ac4de7f038 in  ()
#12 0x0000000926addbe0 in  ()
#13 0x0000000861d06c6f in  () at /usr/local/lib/qt5/libQt5WebEngineCore.so.5
#14 0x000008ac4de7f000 in  ()
#15 0x000008ac4de5a000 in  ()
#16 0x000008ac4de05380 in  ()
#17 0x000008ac4de1c710 in  ()
#18 0x0000000926addc00 in  ()
#19 0x0000000861d06e7e in  () at /usr/local/lib/qt5/libQt5WebEngineCore.so.5
#20 0x0000000867b86eb8 in  () at /usr/local/lib/qt5/libQt5WebEngineCore.so.5
#21 0x000008ac4de62600 in  ()
#22 0x0000000926addc40 in  ()
#23 0x000000086445726a in  () at /usr/local/lib/qt5/libQt5WebEngineCore.so.5
#24 0x000008ac52569288 in  ()
#25 0x0000000000000000 in  ()
(gdb) bt all
No symbol "all" in current context.
(gdb) q
% date ; uname -aKU
Tue 15 Aug 2023 11:13:20 BST
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT amd64 1400094 #2 main-n264621-09c20a293280-dirty: Wed Aug  9 02:15:02 BST 2023     grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64
.amd64/sys/GENERIC-NODEBUG amd64 1400094 1400094
% pkg iinfo qutebrowser
qutebrowser-2.5.4_1
%

--------------mfI6PhTfhsDORwOSVtLIhvHg--