Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segmentfault when pip installing setuptools #129993

Closed
kemier opened this issue Feb 11, 2025 · 1 comment
Closed

segmentfault when pip installing setuptools #129993

kemier opened this issue Feb 11, 2025 · 1 comment
Labels
type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@kemier
Copy link

kemier commented Feb 11, 2025

Crash report

What happened?

(test) ➜ build git:(development) gdb --args /workspace/git/ezennin/mbedtls/build/test/bin/python3 /workspace/git/ezennin/mbedtls/build/test/lib/python3.12/site-packages/pip/pip-runner.py install --ignore-installed --no-user --prefix /tmp/pip-build-env-fmnjkpz1/overlay --no-warn-script-location --disable-pip-version-check --target '' -v --no-binary :none: --only-binary :none: -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple -- 'setuptools>=40.8.0'
GNU gdb (GDB) Red Hat Enterprise Linux 8.2-20.el8
Copyright (C) 2018 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-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://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"...

warning: /workspace/git/ezennin/peda/peda.py: No such file or directory
Reading symbols from /workspace/git/ezennin/mbedtls/build/test/bin/python3...done.
(gdb) r
Starting program: /workspace/git/ezennin/mbedtls/build/test/bin/python3 /workspace/git/ezennin/mbedtls/build/test/lib/python3.12/site-packages/pip/pip-runner.py install --ignore-installed --no-user --prefix /tmp/pip-build-env-fmnjkpz1/overlay --no-warn-script-location --disable-pip-version-check --target '' -v --no-binary :none: --only-binary :none: -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple -- setuptools>=40.8.0
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Using pip 25.0.1 from /workspace/git/ezennin/mbedtls/build/test/lib/python3.12/site-packages/pip (python 3.12)
[Detaching after vfork from child process 728053]
[Detaching after vfork from child process 728078]
[Detaching after vfork from child process 728079]
Looking in indexes: https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
Collecting setuptools>=40.8.0
Using cached https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/69/8a/b9dc7678803429e4a3bc9ba462fa3dd9066824d3c607490235c6a796be5a/setuptools-75.8.0-py3-none-any.whl (1.2 MB)
Installing collected packages: setuptools

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe4c0e70f in _getcode (self=0x0,
name=0x1484b58 "SNOWMAN}",\n", ' ' <repeats 16 times>, "extras_require={"voting": ["beaglevote"]},\n", ' ' <repeats 12 times>, ")\n", ' ' <repeats 12 times>, "@A\254", namelen=7,
code=0x7fffffffa48c, with_named_seq=0) at ./Modules/unicodedata.c:1275
1275 v = code_hash[i];
Missing separate debuginfos, use: yum debuginfo-install bzip2-libs-1.0.6-27.el8_10.x86_64 glibc-2.28-251.el8_10.5.x86_64 libuuid-2.32.1-46.el8.x86_64 openssl-libs-1.1.1k-14.el8_6.x86_64 xz-libs-5.2.4-4.el8_6.x86_64
(gdb) bt
#0 0x00007fffe4c0e70f in _getcode (self=0x0,
name=0x1484b58 "SNOWMAN}",\n", ' ' <repeats 16 times>, "extras_require={"voting": ["beaglevote"]},\n", ' ' <repeats 12 times>, ")\n", ' ' <repeats 12 times>, "@A\254", namelen=7,
code=0x7fffffffa48c, with_named_seq=0) at ./Modules/unicodedata.c:1275
#1 0x0000000000584e89 in _PyUnicode_DecodeUnicodeEscapeInternal (s=, size=, errors=errors@entry=0x0, consumed=consumed@entry=0x0,
first_invalid_escape=first_invalid_escape@entry=0x7fffffffa588) at Objects/unicodeobject.c:6239
#2 0x00000000005b9e6d in decode_unicode_with_escapes (parser=0x7fffe3add110, s=, len=, t=0x7fffe389d970)
at Parser/string_parser.c:146
#3 0x0000000000544f30 in _PyPegen_constant_from_string (p=p@entry=0x7fffe3add110, tok=0x7fffe389d970) at Parser/action_helpers.c:1331
#4 0x0000000000549faa in string_rule (p=0x7fffe3add110) at Parser/parser.c:16242
#5 _tmp_259_rule (p=0x7fffe3add110) at Parser/parser.c:40700
#6 _loop1_115_rule (p=0x7fffe3add110) at Parser/parser.c:32163
#7 strings_rule (p=0x7fffe3add110) at Parser/parser.c:16294
#8 0x0000000000549370 in atom_rule (p=0x7fffe3add110) at Parser/parser.c:14819
#9 0x0000000000550fd6 in primary_raw (p=0x7fffe3add110) at Parser/parser.c:14327
#10 0x0000000000550c8b in primary_rule (p=0x7fffe3add110) at Parser/parser.c:14126
#11 0x00000000005506b9 in await_primary_rule (p=0x7fffe3add110) at Parser/parser.c:14079
#12 power_rule (p=0x7fffe3add110) at Parser/parser.c:13956
#13 factor_rule (p=0x7fffe3add110) at Parser/parser.c:13906
#14 0x000000000054fbab in term_raw (p=0x7fffe3add110) at Parser/parser.c:13746
#15 0x000000000054f853 in term_rule (p=0x7fffe3add110) at Parser/parser.c:13509
#16 0x000000000054f616 in sum_raw (p=0x7fffe3add110) at Parser/parser.c:13462
#17 sum_rule (p=0x7fffe3add110) at Parser/parser.c:13342
#18 0x000000000054f342 in shift_expr_raw (p=0x7fffe3add110) at Parser/parser.c:13301
#19 shift_expr_rule (p=0x7fffe3add110) at Parser/parser.c:13181
#20 0x000000000054e8e1 in bitwise_and_raw (p=0x7fffe3add110) at Parser/parser.c:13140
#21 bitwise_and_rule (p=0x7fffe3add110) at Parser/parser.c:13059
#22 bitwise_xor_raw (p=0x7fffe3add110) at Parser/parser.c:13019
#23 bitwise_xor_rule (p=0x7fffe3add110) at Parser/parser.c:12937
#24 0x000000000054cef5 in bitwise_or_raw (p=0x7fffe3add110) at Parser/parser.c:12896
#25 bitwise_or_rule (p=0x7fffe3add110) at Parser/parser.c:12815
#26 comparison_rule (p=0x7fffe3add110) at Parser/parser.c:12055
#27 inversion_rule (p=0x7fffe3add110) at Parser/parser.c:12006
#28 0x000000000054c25f in conjunction_rule (p=0x7fffe3add110) at Parser/parser.c:11882
#29 0x000000000054bf8f in disjunction_rule (p=0x7fffe3add110) at Parser/parser.c:11794
#30 0x000000000054bdbf in expression_rule (p=0x7fffe3add110) at Parser/parser.c:11082
#31 0x000000000054b99e in _tmp_122_rule (p=0x7fffe3add110) at Parser/parser.c:32616
#32 genexp_rule (p=0x7fffe3add110) at Parser/parser.c:17168
#33 0x0000000000550ec6 in primary_raw (p=0x7fffe3add110) at Parser/parser.c:14115
#34 0x0000000000550cd8 in primary_rule (p=0x7fffe3add110) at Parser/parser.c:14126
#35 0x00000000005506b9 in await_primary_rule (p=0x7fffe3add110) at Parser/parser.c:14079
#36 power_rule (p=0x7fffe3add110) at Parser/parser.c:13956
#37 factor_rule (p=0x7fffe3add110) at Parser/parser.c:13906
#38 0x000000000054fbab in term_raw (p=0x7fffe3add110) at Parser/parser.c:13746
#39 0x000000000054f853 in term_rule (p=0x7fffe3add110) at Parser/parser.c:13509
#40 0x000000000054f616 in sum_raw (p=0x7fffe3add110) at Parser/parser.c:13462
#41 sum_rule (p=0x7fffe3add110) at Parser/parser.c:13342
#42 0x000000000054f342 in shift_expr_raw (p=0x7fffe3add110) at Parser/parser.c:13301
--Type for more, q to quit, c to continue without paging--
#43 shift_expr_rule (p=0x7fffe3add110) at Parser/parser.c:13181
#44 0x000000000054e8e1 in bitwise_and_raw (p=0x7fffe3add110) at Parser/parser.c:13140
#45 bitwise_and_rule (p=0x7fffe3add110) at Parser/parser.c:13059
#46 bitwise_xor_raw (p=0x7fffe3add110) at Parser/parser.c:13019
#47 bitwise_xor_rule (p=0x7fffe3add110) at Parser/parser.c:12937
#48 0x000000000054cef5 in bitwise_or_raw (p=0x7fffe3add110) at Parser/parser.c:12896
#49 bitwise_or_rule (p=0x7fffe3add110) at Parser/parser.c:12815
#50 comparison_rule (p=0x7fffe3add110) at Parser/parser.c:12055
#51 inversion_rule (p=0x7fffe3add110) at Parser/parser.c:12006
#52 0x000000000054c25f in conjunction_rule (p=0x7fffe3add110) at Parser/parser.c:11882
#53 0x000000000054bf8f in disjunction_rule (p=0x7fffe3add110) at Parser/parser.c:11794
#54 0x000000000054bdbf in expression_rule (p=0x7fffe3add110) at Parser/parser.c:11082
#55 0x00000000005b601f in kvpair_rule (p=0x7fffe3add110) at Parser/parser.c:16753
#56 double_starred_kvpair_rule (p=0x7fffe3add110) at Parser/parser.c:16714
#57 _gather_117_rule (p=0x7fffe3add110) at Parser/parser.c:32352
#58 0x000000000054966a in double_starred_kvpairs_rule (p=0x7fffe3add110) at Parser/parser.c:16641
#59 dict_rule (p=0x7fffe3add110) at Parser/parser.c:16561
#60 _tmp_96_rule (p=0x7fffe3add110) at Parser/parser.c:30838
#61 atom_rule (p=0x7fffe3add110) at Parser/parser.c:14772
#62 0x0000000000550fd6 in primary_raw (p=0x7fffe3add110) at Parser/parser.c:14327
#63 0x0000000000550c8b in primary_rule (p=0x7fffe3add110) at Parser/parser.c:14126
#64 0x00000000005506b9 in await_primary_rule (p=0x7fffe3add110) at Parser/parser.c:14079
#65 power_rule (p=0x7fffe3add110) at Parser/parser.c:13956
#66 factor_rule (p=0x7fffe3add110) at Parser/parser.c:13906
#67 0x000000000054fbab in term_raw (p=0x7fffe3add110) at Parser/parser.c:13746
#68 0x000000000054f853 in term_rule (p=0x7fffe3add110) at Parser/parser.c:13509
#69 0x000000000054f616 in sum_raw (p=0x7fffe3add110) at Parser/parser.c:13462
#70 sum_rule (p=0x7fffe3add110) at Parser/parser.c:13342
#71 0x000000000054f342 in shift_expr_raw (p=0x7fffe3add110) at Parser/parser.c:13301
#72 shift_expr_rule (p=0x7fffe3add110) at Parser/parser.c:13181
#73 0x000000000054e8e1 in bitwise_and_raw (p=0x7fffe3add110) at Parser/parser.c:13140
#74 bitwise_and_rule (p=0x7fffe3add110) at Parser/parser.c:13059
#75 bitwise_xor_raw (p=0x7fffe3add110) at Parser/parser.c:13019
#76 bitwise_xor_rule (p=0x7fffe3add110) at Parser/parser.c:12937
#77 0x000000000054cef5 in bitwise_or_raw (p=0x7fffe3add110) at Parser/parser.c:12896
#78 bitwise_or_rule (p=0x7fffe3add110) at Parser/parser.c:12815
#79 comparison_rule (p=0x7fffe3add110) at Parser/parser.c:12055
#80 inversion_rule (p=0x7fffe3add110) at Parser/parser.c:12006
#81 0x000000000054c25f in conjunction_rule (p=0x7fffe3add110) at Parser/parser.c:11882
#82 0x000000000054bf8f in disjunction_rule (p=0x7fffe3add110) at Parser/parser.c:11794
#83 0x000000000054bdbf in expression_rule (p=0x7fffe3add110) at Parser/parser.c:11082
#84 0x00000000005b60be in kvpair_rule (p=0x7fffe3add110) at Parser/parser.c:32277
#85 double_starred_kvpair_rule (p=0x7fffe3add110) at Parser/parser.c:16714
#86 _loop0_118_rule (p=0x7fffe3add110) at Parser/parser.c:32287
#87 _gather_117_rule (p=0x7fffe3add110) at Parser/parser.c:32354
#88 0x000000000054966a in double_starred_kvpairs_rule (p=0x7fffe3add110) at Parser/parser.c:16641
#89 dict_rule (p=0x7fffe3add110) at Parser/parser.c:16561
--Type for more, q to quit, c to continue without paging--
#90 _tmp_96_rule (p=0x7fffe3add110) at Parser/parser.c:30838
#91 atom_rule (p=0x7fffe3add110) at Parser/parser.c:14772
#92 0x0000000000548aa5 in t_primary_raw (p=0x7fffe3add110) at Parser/parser.c:18966
#93 0x000000000054afa7 in t_primary_rule (p=0x7fffe3add110) at Parser/parser.c:18757
#94 target_with_star_atom_rule (p=0x7fffe3add110) at Parser/parser.c:18257
#95 0x000000000054a541 in star_target_rule (p=0x7fffe3add110) at Parser/parser.c:18199
#96 star_targets_rule (p=0x7fffe3add110) at Parser/parser.c:17942
#97 0x00000000005478e9 in _tmp_250_rule (p=0x7fffe3add110) at Parser/parser.c:40231
#98 _loop1_14_rule (p=0x7fffe3add110) at Parser/parser.c:25810
#99 assignment_rule (p=0x7fffe3add110) at Parser/parser.c:2360
#100 simple_stmt_rule (p=0x7fffe3add110) at Parser/parser.c:1707
#101 0x0000000000546fa1 in simple_stmts_rule (p=0x7fffe3add110) at Parser/parser.c:1601
#102 0x00000000005b2722 in statement_rule (p=0x7fffe3add110) at Parser/parser.c:1426
#103 _loop1_3_rule (p=0x7fffe3add110) at Parser/parser.c:25157
#104 statements_rule (p=0x7fffe3add110) at Parser/parser.c:1360
#105 file_rule (p=0x7fffe3add110) at Parser/parser.c:1162
#106 _PyPegen_parse (p=p@entry=0x7fffe3add110) at Parser/parser.c:41920
#107 0x00000000005b142d in _PyPegen_run_parser (p=0x7fffe3add110) at Parser/pegen.c:926
#108 0x00000000005b1263 in _PyPegen_run_parser_from_string (
str=str@entry=0x14925c0 "from future import annotations\n\nimport builtins\nimport importlib\nimport os.path\nimport platform\nimport shutil\nimport stat\nimport struct\nimport sys\nimport sysconfig\nfrom contextlib import suppress\n"..., start_rule=start_rule@entry=257, filename_ob=filename_ob@entry=0x7fffe3c84c90, flags=flags@entry=0x7fffffffbab8, arena=0x7fffe3c26710,
arena@entry=0x5b1263 <_PyPegen_run_parser_from_string+147>) at Parser/pegen.c:1039
#109 0x00000000005b9f2a in _PyParser_ASTFromString (
str=str@entry=0x14925c0 "from future import annotations\n\nimport builtins\nimport importlib\nimport os.path\nimport platform\nimport shutil\nimport stat\nimport struct\nimport sys\nimport sysconfig\nfrom contextlib import suppress\n"..., filename=filename@entry=0x7fffe3c84c90, mode=mode@entry=257, flags=flags@entry=0x7fffffffbab8, arena=0x5b1263 <_PyPegen_run_parser_from_string+147>,
arena@entry=0x7fffe3c26710) at Parser/peg_api.c:14
#110 0x00000000005fcec4 in Py_CompileStringObject (
str=0x14925c0 "from future import annotations\n\nimport builtins\nimport importlib\nimport os.path\nimport platform\nimport shutil\nimport stat\nimport struct\nimport sys\nimport sysconfig\nfrom contextlib import suppress\n"..., filename=filename@entry=0x7fffe3c84c90, start=start@entry=257, flags=flags@entry=0x7fffffffbab8, optimize=optimize@entry=-1) at Python/pythonrun.c:1801
#111 0x00000000005e28e3 in builtin_compile_impl (module=, source=0x14925a0, filename=0x7fffe3c84c90, mode=0xace568 <const_str_exec+40> "exec", flags=0, dont_inherit=1, optimize=-1,
feature_version=) at Python/bltinmodule.c:831
#112 builtin_compile (module=, args=, nargs=, kwnames=)
at Python/clinic/bltinmodule.c.h:383
#113 0x000000000056c272 in cfunction_vectorcall_FASTCALL_KEYWORDS (func=, args=, nargsf=, kwnames=) at ./Include/cpython/methodobject.h:50
#114 0x00000000005bd795 in _PyVectorcall_Call (tstate=0xb53070 <_PyRuntime+458992>, func=0x56c220 <cfunction_vectorcall_FASTCALL_KEYWORDS>, callable=0x7ffff7f745e0, tuple=,
kwargs=) at Objects/call.c:283
#115 0x000000000059602a in _PyEval_EvalFrameDefault (tstate=, frame=, throwflag=) at Python/bytecodes.c:3263
#116 0x00000000005e33ae in PyEval_EvalCode (co=co@entry=0xc33ec0, globals=globals@entry=0x7fffe9fd0a00, locals=locals@entry=0x7fffe9fd0a00) at Python/ceval.c:578
#117 0x00000000005e2573 in builtin_exec_impl (module=, source=, globals=0x7fffe9fd0a00,
locals=0x7fffe9fd0a00, closure=) at Python/bltinmodule.c:1096
#118 builtin_exec (module=, args=, nargs=, kwnames=) at Python/clinic/bltinmodule.c.h:586
#119 0x000000000056c272 in cfunction_vectorcall_FASTCALL_KEYWORDS (func=, args=, nargsf=, kwnames=) at ./Include/cpython/methodobject.h:50
#120 0x000000000055a0e4 in _PyObject_VectorcallTstate (tstate=0xb53070 <_PyRuntime+458992>, callable=0x7ffff7f74770,
callable@entry=, args=,
args@entry=, nargsf=,
nargsf@entry=, kwnames=,
kwnames@entry=) at ./Include/internal/pycore_call.h:92
--Type for more, q to quit, c to continue without paging--
#121 PyObject_Vectorcall (callable=0x7ffff7f74770, args=, nargsf=, kwnames=) at Objects/call.c:325
#122 0x000000000058eca9 in _PyEval_EvalFrameDefault (tstate=, frame=, throwflag=) at Python/bytecodes.c:2715
#123 0x00000000005e33ae in PyEval_EvalCode (co=co@entry=0xbf72b0, globals=globals@entry=0x7ffff7fd23c0, locals=locals@entry=0x7ffff7fd23c0) at Python/ceval.c:578
#124 0x00000000005fd0e7 in run_eval_code_obj (tstate=0xb53070 <_PyRuntime+458992>, co=0xbf72b0, globals=0x7ffff7fd23c0, locals=0x7ffff7fd23c0) at Python/pythonrun.c:1722
#125 0x00000000005fd073 in run_mod (mod=, filename=, globals=0x7ffff7fd23c0, locals=0x7ffff7fd23c0, flags=, arena=) at Python/pythonrun.c:1743
#126 0x00000000005fd4e2 in pyrun_file (fp=fp@entry=0xb96840, filename=filename@entry=0x7ffff7f30810, start=start@entry=257, globals=globals@entry=0x7ffff7fd23c0, locals=locals@entry=0x7ffff7fd23c0,
closeit=closeit@entry=1, flags=0x7fffffffc208) at Python/pythonrun.c:1643
#127 0x00000000005fd395 in _PyRun_SimpleFileObject (fp=0xb96840, filename=0x7ffff7f30810, closeit=1, flags=0x7fffffffc208) at Python/pythonrun.c:433
#128 0x00000000005fd1ca in _PyRun_AnyFileObject (fp=fp@entry=0xb96840, filename=filename@entry=0x7ffff7f30810, closeit=closeit@entry=1, flags=flags@entry=0x7fffffffc208) at Python/pythonrun.c:78
#129 0x0000000000602e41 in pymain_run_file_obj (program_name=0x7ffff7f07150, filename=0x7ffff7f30810, skip_source_first_line=0) at Modules/main.c:360
#130 pymain_run_file (config=0xaf5c50 <_PyRuntime+77008>) at Modules/main.c:379
#131 pymain_run_python (exitcode=) at Modules/main.c:633
#132 Py_RunMain () at Modules/main.c:713
#133 0x0000000000602a95 in Py_BytesMain (argc=, argv=) at Modules/main.c:767
#134 0x00007ffff70877e5 in __libc_start_main () from /lib64/libc.so.6
#135 0x00000000005b102e in _start () at Modules/main.c:478
(gdb)
(gdb)
(gdb) p code_hash
value requires 262144 bytes, which is more than max-value-size
(gdb) info locals
h = 9443209
v =
i = 9496694
incr =
(gdb)

CPython versions tested on:

3.12

Operating systems tested on:

Linux

Output from running 'python -VV' on the command line:

Python 3.12.8 (main, Jan 21 2025, 03:13:20) [GCC 15.0.0 20241111 (experimental)]

@kemier kemier added the type-crash A hard crash of the interpreter, possibly with a core dump label Feb 11, 2025
@StanFromIreland
Copy link
Contributor

Please close as is a duplicate of your previous issue.

@hugovk hugovk closed this as completed Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

3 participants