From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C091C3858C5E; Sun, 10 Dec 2023 22:09:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C091C3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1702246143; bh=ZFFkeySSRN9+SFTMUyng1KavXT/b63EyBEhhbgZaXMs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=H6JAsD9r1LdI+cfKApwYredGj5hh0bBGIbKYUIhTXs98Jj0i3uT+OEtLp2Gt4MGka aF1SF7AnBWfr4SjgKuC8rQUZXlk4h9eyGr3b7gj+H3UgV7hWhp15oGkDBRgRi1/F/N JQkVPKFZO7Atm2Xmlx9cnnd/ni7vSHddBdp0rPNw= From: "matt.fagnani at bell dot net" To: gdb-prs@sourceware.org Subject: [Bug backtrace/31122] gdb crashed when drkonqi ran it on plasmashell crashes Date: Sun, 10 Dec 2023 22:09:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: backtrace X-Bugzilla-Version: 14.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: matt.fagnani at bell dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31122 --- Comment #3 from Matt Fagnani --- There are systemd service watchdog timeouts which default to 45 s like DefaultTimeoutStopSec=3D45s described in man systemd-user.conf. /usr/lib/systemd/user/plasma-plasmashell.service had TimeoutSec=3D40sec. So= when drkonqi was still creating the trace of plasmashell 40 s after plasmashell crashed, systemd aborted plasma-plasmashell.service's processes plasmashell, drkonqi, kioslave5, gdb. Fedora processes use the drop-in configuration file /usr/lib/systemd/user/service.d/10-timeout-abort.conf which has TimeoutStopFailureMode=3Dabort which makes processes abort when timing out = to generate core dumps https://fedoraproject.org/wiki/Changes/Shorter_Shutdown_Timer I changed the timeout to TimeoutSec=3D120sec, logged out and logged in. I reproduced the plasmashell crash, and the trace completed after about 40 s. drkonqi, plasmashell, and kioslave5 were aborted after 120 s. The default timeout of= 40 s for plasma-plasmashell.service wasn't long enough to trace plasmashell and report the crash. I previously removed the qt5, glib2, and glibc debuginfo packages I had installed and reproduced the plasmashell crash. drkonqi and kioslave5 didn't crash when I created a trace in drkonqi, but gdb crashed with a segmentation fault and drkonqi showed that the crash information couldn't be created. Th= is might be a different problem though. Core was generated by `/usr/bin/gdb -nw -n -batch -x /tmp/drkonqi.TTkFsq -x /tmp/drkonqi.lSUBPQ -p 183'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00005602a71e2ebc in operator() (__closure=3D,=20 msg=3D0x5602a7ea2880 "0x5602a71e3140 ") at ../../gdb/bt-utils.c:59 59 gdb_stderr->write_async_safe (msg, strlen (msg)); [Current thread is 1 (Thread 0x7fdb2f086080 (LWP 19378))] (gdb) bt #0 0x00005602a71e2ebc in operator() (__closure=3D,=20 msg=3D0x5602a7ea2880 "0x5602a71e3140 ") at ../../gdb/bt-utils.c:59 #1 libbacktrace_print (data=3Ddata@entry=3D0x0, pc=3Dpc@entry=3D9456939369= 7088,=20 filename=3D0x7fdaf1405c90 "../../gdb/bt-utils.c", lineno=3D122,=20 function=3D0x7fdaffe1d0b9 "gdb_internal_backtrace_1") at ../../gdb/bt-utils.c:94 #2 0x00005602a78c77d7 in report_inlined_functions (pc=3Dpc@entry=3D9456939= 3697088,=20 callback=3Dcallback@entry=3D0x5602a71e2e50 , data=3Ddata@entry=3D0x0, filename=3Dfilename@entry=3D0x5602a7ea2a70, lineno=3D0x5602a7ea2a30,=20 function=3D0x7fdaf13e9fb8) at ../../libbacktrace/dwarf.c:3612 #3 0x00005602a78ca932 in dwarf_lookup_pc (state=3D, ddata=3D,=20 pc=3D, callback=3D, error_callback=3D,=20 data=3D, found=3D) at ../../libbacktrace/dwarf.c:3879 #4 0x00005602a78cc316 in dwarf_fileline (state=3D0x7fdb2f1d3000, pc=3D94569393697088,=20 callback=3D0x5602a71e2e50 ,=20 error_callback=3D0x5602a71e2d30 , data=3D0x0) at ../../libbacktrace/dwarf.c:3906 #5 0x00005602a78c0ae3 in unwind (context=3D, vdata=3D0x5602a7ea2dd0) at ../../libbacktrace/backtrace.c:91 #6 0x00007fdb2e72488d in _Unwind_Backtrace () from /lib64/libgcc_s.so.1 #7 0x00005602a78c0b6c in backtrace_full (state=3D0x7fdb2f1d3000, skip=3D,=20 callback=3D, error_callback=3D, data=3D) at ../../libbacktrace/backtrace.c:127 --Type for more, q to quit, c to continue without paging--c #8 0x00005602a71e3141 in gdb_internal_backtrace_1 () at ../../gdb/bt-utils.c:122 #9 gdb_internal_backtrace () at ../../gdb/bt-utils.c:168 #10 0x00005602a7320253 in handle_fatal_signal (sig=3Dsig@entry=3D11) at ../../gdb/event-top.c:895 #11 0x00005602a732042a in handle_sigsegv (sig=3D11) at ../../gdb/event-top.= c:968 #12 #13 block::scope (this=3D) at ../../gdb/block.c:293 #14 0x00005602a7267067 in cp_lookup_transparent_type (name=3D0x5602a93ce0b0 "QApplication") at ../../gdb/cp-namespace.c:1029 #15 0x00005602a735c09d in check_typedef (type=3D, type@entry=3D0x5602a93da450) at ../../gdb/gdbtypes.c:3052 #16 0x00005602a733e650 in language_defn::read_var_value (this=3D, var=3D0x5602aaa651b0,=20 var_block=3D0x0, frame=3D...) at ../../gdb/findvar.c:518 #17 0x00005602a733d833 in read_var_value (var=3Dvar@entry=3D0x5602aaa651b0,= =20 var_block=3Dvar_block@entry=3D0x0, frame=3D...) at ../../gdb/findvar.c:= 746 #18 0x00005602a74dd879 in sympy_value (self=3D, args=3D) at ../../gdb/python/py-symbol.c:306 #19 0x00007fdb2e9fb4d6 in method_vectorcall_VARARGS () from /lib64/libpython3.12.so.1.0 #20 0x00007fdb2ea0ac7c in PyObject_Vectorcall () from /lib64/libpython3.12.so.1.0 #21 0x00007fdb2e90f7e1 in _PyEval_EvalFrameDefault.cold () from /lib64/libpython3.12.so.1.0 #22 0x00007fdb2ea8a996 in PyEval_EvalCode () from /lib64/libpython3.12.so.1= .0 #23 0x00007fdb2eaadafa in run_eval_code_obj () from /lib64/libpython3.12.so= .1.0 #24 0x00007fdb2eaa8a7e in run_mod () from /lib64/libpython3.12.so.1.0 #25 0x00007fdb2ea9ab16 in PyRun_StringFlags () from /lib64/libpython3.12.so= .1.0 #26 0x00007fdb2ea9aa64 in PyRun_SimpleStringFlags () from /lib64/libpython3.12.so.1.0 #27 0x00005602a74f22da in python_command (arg=3D, from_tty=3D) at ../../gdb/python/python.c:453 #28 0x00005602a721f795 in cmd_func (cmd=3D, args=3D,=20 from_tty=3D) at ../../gdb/cli/cli-decode.c:2735 #29 0x00005602a762fb25 in execute_command (p=3D,=20 p@entry=3D0x5602c3a05290 "py print_preamble()", from_tty=3D) at ../../gdb/top.c:575 #30 0x00005602a7320ab2 in command_handler (command=3D0x5602c3a05290 "py print_preamble()") at ../../gdb/event-top.c:555 #31 0x00005602a7630525 in read_command_file (stream=3Dstream@entry=3D0x5602c3ee1af0) at ../../gdb/top.c:342 #32 0x00005602a722d0e9 in script_from_file (stream=3Dstream@entry=3D0x5602c= 3ee1af0,=20 file=3Dfile@entry=3D0x7ffd6cf49733 "/tmp/drkonqi.TTkFsq") at ../../gdb/cli/cli-script.c:1642 #33 0x00005602a721d45b in source_script_from_stream ( file_to_open=3D0x5602c38da360 "/tmp/drkonqi.TTkFsq", file=3D0x7ffd6cf49= 733 "/tmp/drkonqi.TTkFsq",=20 stream=3D0x5602c3ee1af0) at ../../gdb/cli/cli-cmds.c:730 #34 source_script_with_search (file=3D0x7ffd6cf49733 "/tmp/drkonqi.TTkFsq",= =20 file@entry=3D,=20 from_tty=3D,=20 search_path=3D) at ../../gdb/cli/cli-cmds.c:775 #35 0x00005602a740d90a in catch_command_errors (command=3D, arg=3D,=20 from_tty=3D, do_bp_actions=3Ddo_bp_actions@entry=3Dfalse= ) at ../../gdb/main.c:513 #36 0x00005602a740d9b8 in execute_cmdargs (cmdarg_vec=3Dcmdarg_vec@entry=3D0x7ffd6cf48a90,=20 file_type=3Dfile_type@entry=3DCMDARG_FILE, cmd_type=3Dcmd_type@entry=3DCMDARG_COMMAND,=20 ret=3Dret@entry=3D0x7ffd6cf48a84) at ../../gdb/main.c:609 #37 0x00005602a740fe49 in captured_main_1 (context=3Dcontext@entry=3D0x7ffd6cf48c90) at ../../gdb/main.c:1293 #38 0x00005602a7410870 in captured_main (data=3D0x7ffd6cf48c90) at ../../gdb/main.c:1314 #39 gdb_main (args=3Dargs@entry=3D0x7ffd6cf48cd0) at ../../gdb/main.c:1343 #40 0x00005602a70e0bb0 in main (argc=3D11, argv=3D0x7ffd6cf48e28) at ../../gdb/gdb.c:47 --=20 You are receiving this mail because: You are on the CC list for the bug.=