From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6BD533858CDB; Mon, 6 Nov 2023 21:00:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6BD533858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699304457; bh=ekT6qy1NdO303lmzVDonN7jZgRx7kr86hpXo//7xYtg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TCY3WVMWmvLyMbdZqN44Xb4SD3EiP2xLcoylw/0PtFuSAwtHZQXT3JxUJ0hcHpxpm XjW32cBpZRB7ajkBaC+SeDDsRFz/0Sw/a+svJqdkcoh421j8L+tvcAaf0r51WPisoJ kfRloq0HEbC771MtAadqKUT2XJaLfZWTSdxWwFow= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/112415] [14 regression] Python 3.11 miscompiled on HPPA with new RTL fold mem offset pass, since r14-4664-g04c9cf5c786b94 Date: Mon, 06 Nov 2023 21:00:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112415 Sam James changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[14 regression] Python 3.11 |[14 regression] Python 3.11 |miscompiled with new RTL |miscompiled on HPPA with |fold mem offset pass, since |new RTL fold mem offset |r14-4664-g04c9cf5c786b94 |pass, since | |r14-4664-g04c9cf5c786b94 --- Comment #1 from Sam James --- Backtrace from the crashing Python: ``` (gdb) r Starting program: /var/tmp/portage/dev-lang/python-3.11.6/work/Python-3.11.6/_bootstrap_python ./Tools/scripts/deepfreeze.py Python/frozen_modules/importlib._bootstrap.h:importlib._bootstrap Python/frozen_modules/importlib._bootstrap_external.h:importlib._bootstrap_= external Python/frozen_modules/zipimport.h:zipimport Python/frozen_modules/abc.h:abc Python/frozen_modules/codecs.h:codecs Python/frozen_modules/io.h:io Python/frozen_modules/_collections_abc.h:_collections_abc Python/frozen_modules/_sitebuiltins.h:_sitebuiltins Python/frozen_modules/genericpath.h:genericpath Python/frozen_modules/ntpath.h:ntpath Python/frozen_modules/posixpath.h:posixpath Python/frozen_modules/os.h:os Python/frozen_modules/site.h:site Python/frozen_modules/stat.h:stat Python/frozen_modules/importlib.util.h:importlib.util Python/frozen_modules/importlib.machinery.h:importlib.machinery Python/frozen_modules/runpy.h:runpy Python/frozen_modules/__hello__.h:__hel= lo__ Python/frozen_modules/__phello__.h:__phello__ Python/frozen_modules/__phello__.ham.h:__phello__.ham Python/frozen_modules/__phello__.ham.eggs.h:__phello__.ham.eggs Python/frozen_modules/__phello__.spam.h:__phello__.spam Python/frozen_modules/frozen_only.h:frozen_only -o Python/deepfreeze/deepfreeze.c warning: File "/usr/lib/libthread_db.so.1" 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/lib/libthread_db.so.1 line to your configuration file "/root/.config/gdb/gdbinit". To completely disable this security protection add set auto-load safe-path / line to your configuration file "/root/.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 she= ll: info "(gdb)Auto-loading safe path" warning: Unable to find libthread_db matching inferior's thread library, th= read debugging will not be available. Program received signal SIGSEGV, Segmentation fault. 0x412083fc in _PyST_GetSymbol (name=3D0xf9a33a60, ste=3D) at Python/symtable.c:396 396 PyObject *v =3D PyDict_GetItemWithError(ste->ste_symbols, name); (gdb) bt #0 0x412083fc in _PyST_GetSymbol (name=3D0xf9a33a60, ste=3D= ) at Python/symtable.c:396 #1 _PyST_GetScope (ste=3D, name=3D0xf9a33a60) at Python/symtable.c:406 #2 0x411bb8f8 in compiler_nameop (c=3D0xf7b03b88, name=3D, ctx=3DLoad) at Python/compile.c:4274 #3 0x411be074 in compiler_visit_expr (c=3D0x1, e=3D) at Python/compile.c:5969 #4 0x411bcc88 in compiler_visit_expr1 (c=3D0xf7b03b88, e=3D0x1) at Python/compile.c:5915 #5 0x411be074 in compiler_visit_expr (c=3D0x1, e=3D) at Python/compile.c:5969 #6 0x411bceac in compiler_call (e=3D0x1, c=3D0xf7b03b88) at Python/compile= .c:4952 #7 compiler_visit_expr1 (c=3D0xf7b03b88, e=3D0x1) at Python/compile.c:5905 #8 0x411c1f34 in compiler_visit_expr (e=3D, c=3D0xf9a33a60)= at Python/compile.c:5969 #9 compiler_decorators (decos=3D0x8d, c=3D0xf9a33a60) at Python/compile.c:= 2327 #10 compiler_class (c=3D0xf9a33a60, s=3D0x414e4490) at Python/compile.c:2702 #11 0x411c566c in compiler_body (c=3D0xf7b03b88, stmts=3D0xf9a33a60) at Python/compile.c:2180 #12 0x411c7e98 in compiler_mod (mod=3D0xf7b03b88, c=3D0x0) at Python/compil= e.c:2197 #13 _PyAST_Compile (mod=3D0xf7b03b88, filename=3D0x8d, flags=3D, optimize=3D, arena=3D) at Python/compile.c:581 #14 0x411fe7b8 in Py_CompileStringObject (str=3D0xf7b03b88 "\371\240\277\220\371\236\353`\371\257\221\260\367\260:t", filename=3D0x8d, start=3D-139445336, flags=3D0xf9a33a60, optimize=3D) at Python/pythonrun.c:1799 #15 0x4119c334 in builtin_compile_impl (module=3D, feature_version=3D, optimize=3D, dont_inherit=3D, flags=3D, mode=3D, filename=3D0xf998db68, source=3D0x8d) at Python/bltinmodule.c:831 #16 builtin_compile (module=3D, args=3D, nargs=3D, kwnames=3D) at Python/clinic/bltinmodule.c.h:328 #17 0x410f3ae4 in cfunction_vectorcall_FASTCALL_KEYWORDS (func=3D0xf9a33a60, args=3D0x8d, nargsf=3D, kwnames=3D) at ./Include/cpython/methodobject.h:52 #18 0x4109fa88 in _PyVectorcall_Call (tstate=3D0xf7b03b88, func=3D, callable=3D0xf9a33a60, tuple=3D, kwargs=3D) at Objects/call.c:257 #19 0x4109fd28 in _PyObject_Call (tstate=3D0xf9a33a60, callable=3D0x1, args=3D0xf7b03ba8, kwargs=3D0x8d) at Objects/call.c:328 #20 0x4109fdb8 in PyObject_Call () at Objects/call.c:352 #21 0x411a47c8 in do_call_core (tstate=3D0x8d, func=3D0x1, callargs=3D0xf9a= 33a60, kwdict=3D0xf7b03b88, use_tracing=3D) at Python/ceval.c:7315 #22 0x411ab5dc in _PyEval_EvalFrameDefault (tstate=3D0xf7b03ba8, frame=3D0xf9a33a60, throwflag=3D1) at Python/ceval.c:5367 #23 0x411af42c in _PyEval_EvalFrame (throwflag=3D0, frame=3D0xf9a33a60, tst= ate=3D0x1) at ./Include/internal/pycore_ceval.h:73 #24 _PyEval_Vector (tstate=3D0x1, func=3D, locals=3D, args=3D, argcount=3D, kwnames=3D) at Python/ceval.c:6425 #25 0x4109fe48 in _PyFunction_Vectorcall (func=3D, stack=3D, nargsf=3D, kwnames=3D) at Objects/call.c:396 #26 0x410a0a0c in _PyObject_VectorcallTstate (kwnames=3D0x0, nargsf=3D, args=3D0xf998db68, callable=3D0xf7b03b88, tstate=3D0xf7b03ba8) at ./Include/internal/pycore_call.h:92 #27 object_vacall (tstate=3D0xf7b03ba8, base=3D, callable=3D0xf7b03b88, vargs=3D) at Objects/call.c:819 #28 0x410a0be0 in PyObject_CallMethodObjArgs (obj=3D, name=3D) at Objects/call.c:879 #29 0x411dd9e8 in import_find_and_load (abs_name=3D0xf7b03ba8, tstate=3D0xf= 9a33a60) at Python/import.c:1737 #30 PyImport_ImportModuleLevelObject (name=3D0x1, globals=3D, locals=3D, fromlist=3D0xf7b03b88, level=3D) at Python/import.c:1836 #31 0x411aefbc in import_name (level=3D, fromlist=3D, name=3D, frame=3D, tstate=3D) = at Python/ceval.c:7415 #32 _PyEval_EvalFrameDefault (tstate=3D0xf7b03ba8, frame=3D0xf9a33a60, thro= wflag=3D1) at Python/ceval.c:3937 #33 0x411af42c in _PyEval_EvalFrame (throwflag=3D0, frame=3D0xf9a33a60, tst= ate=3D0x1) at ./Include/internal/pycore_ceval.h:73 #34 _PyEval_Vector (tstate=3D0x1, func=3D, locals=3D, args=3D, argcount=3D, kwnames=3D) at Python/ceval.c:6425 #35 0x411af4e4 in PyEval_EvalCode (co=3D0xf9a33a60, globals=3D, locals=3D0xf7b03b88) at Python/ceval.c:1140 #36 0x4119b6d4 in builtin_exec_impl (module=3D, closure=3D, locals=3D0xf7b03ba8, globals=3D0x8d, source=3D0xf998db68) at Python/bltinmodule.c:1077 #37 builtin_exec (module=3D, args=3D, nargs=3D, kwnames=3D) at Python/clinic/bltinmodule.c.h:465 #38 0x410f3ae4 in cfunction_vectorcall_FASTCALL_KEYWORDS (func=3D0xf9a33a60, args=3D0x8d, nargsf=3D, kwnames=3D) at ./Include/cpython/methodobject.h:52 #39 0x4109fa14 in _PyVectorcall_Call (tstate=3D0xf7b03b88, func=3D, callable=3D0xf9a33a60, tuple=3D, kwargs=3D) at Objects/call.c:245 #40 0x4109fd28 in _PyObject_Call (tstate=3D0xf9a33a60, callable=3D0x1, args=3D0xf7b03ba8, kwargs=3D0x8d) at Objects/call.c:328 #41 0x4109fdb8 in PyObject_Call () at Objects/call.c:352 #42 0x411a47c8 in do_call_core (tstate=3D0x8d, func=3D0x1, callargs=3D0xf9a= 33a60, kwdict=3D0xf7b03b88, use_tracing=3D) at Python/ceval.c:7315 #43 0x411ab5dc in _PyEval_EvalFrameDefault (tstate=3D0xf7b03ba8, frame=3D0xf9a33a60, throwflag=3D1) at Python/ceval.c:5367 #44 0x411af42c in _PyEval_EvalFrame (throwflag=3D0, frame=3D0xf9a33a60, tst= ate=3D0x1) at ./Include/internal/pycore_ceval.h:73 #45 _PyEval_Vector (tstate=3D0x1, func=3D, locals=3D, args=3D, argcount=3D, kwnames=3D) at Python/ceval.c:6425 #46 0x4109fe48 in _PyFunction_Vectorcall (func=3D, stack=3D, nargsf=3D, kwnames=3D) at Objects/call.c:396 --Type for more, q to quit, c to continue without paging-- #47 0x410a0a0c in _PyObject_VectorcallTstate (kwnames=3D0x0, nargsf=3D, args=3D0xf998db68, callable=3D0xf7b03b88, tstate=3D0xf7b03ba8) at ./Include/internal/pycore_call.h:92 #48 object_vacall (tstate=3D0xf7b03ba8, base=3D, callable=3D0xf7b03b88, vargs=3D) at Objects/call.c:819 #49 0x410a0be0 in PyObject_CallMethodObjArgs (obj=3D, name=3D) at Objects/call.c:879 #50 0x411dd9e8 in import_find_and_load (abs_name=3D0xf7b03ba8, tstate=3D0xf= 9a33a60) at Python/import.c:1737 #51 PyImport_ImportModuleLevelObject (name=3D0x1, globals=3D, locals=3D, fromlist=3D0xf7b03b88, level=3D) at Python/import.c:1836 #52 0x411aefbc in import_name (level=3D, fromlist=3D, name=3D, frame=3D, tstate=3D) = at Python/ceval.c:7415 #53 _PyEval_EvalFrameDefault (tstate=3D0xf7b03ba8, frame=3D0xf9a33a60, thro= wflag=3D1) at Python/ceval.c:3937 #54 0x411af42c in _PyEval_EvalFrame (throwflag=3D0, frame=3D0xf9a33a60, tst= ate=3D0x1) at ./Include/internal/pycore_ceval.h:73 #55 _PyEval_Vector (tstate=3D0x1, func=3D, locals=3D, args=3D, argcount=3D, kwnames=3D) at Python/ceval.c:6425 #56 0x411af4e4 in PyEval_EvalCode (co=3D0xf9a33a60, globals=3D, locals=3D0xf7b03b88) at Python/ceval.c:1140 #57 0x411fa628 in run_eval_code_obj (tstate=3D0xf7b03b88, co=3D0xf9a33a60, globals=3D0x1, locals=3D0x8d) at Python/pythonrun.c:1710 #58 0x411fa8d8 in run_mod (mod=3D, filename=3D, globals=3D0xf9a33a60, locals=3D0x8d, flags=3D, arena=3D) at Python/pythonrun.c:1731 #59 0x411faa50 in pyrun_file (fp=3D0x0, filename=3D0x8d, start=3D, globals=3D0xf7b03b88, locals=3D, closeit=3D, flags=3D) at Python/pythonrun.c:1626 #60 0x411fdc38 in _PyRun_SimpleFileObject (fp=3D0xf998db68, filename=3D0x8d, closeit=3D-139445336, flags=3D0x0) at Python/pythonrun.c:440 #61 0x411fe30c in _PyRun_AnyFileObject (fp=3D0xf9a33a60, filename=3D0x1, closeit=3D141, flags=3D0xf7b03b88) at Python/pythonrun.c:79 #62 0x41222278 in pymain_run_file_obj (skip_source_first_line=3D1095637024, filename=3D0xf7b03ba8, program_name=3D0x8e) at Modules/main.c:360 #63 pymain_run_file (config=3D0x1) at Modules/main.c:379 #64 pymain_run_python (exitcode=3D0x8d) at Modules/main.c:601 #65 Py_RunMain () at Modules/main.c:680 #66 0x4104c4c8 in main (argc=3D, argv=3D) at Programs/_bootstrap_python.c:109 (gdb) ```=