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

Segmentation fault while building verison 0.0.4 #26

Open
emptyVoid opened this issue Feb 25, 2025 · 3 comments
Open

Segmentation fault while building verison 0.0.4 #26

emptyVoid opened this issue Feb 25, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@emptyVoid
Copy link

OS: RHEL 9.4
Python: 3.12.1

$ ./ya make -r perforator/bundle
Downloading https://devtools-registry.s3.yandex.net/8029728073 [............................................] OK
Warn: Traceback (most recent call last):
Warn:   File "<frozen importlib._bootstrap_external>", line 1489, in _path_importer_cache
Fatal Python error: Segmentation fault

Thread 0x00007f530463bb00 (most recent call first):
  File "devtools/ya/build/ymake2/__init__.py", line 653 in _run_ymake
  File "devtools/ya/build/ymake2/__init__.py", line 452 in _prepare_and_run_ymake
  File "devtools/ya/core/yarg/behaviour.py", line 96 in go
  File "devtools/ya/core/yarg/behaviour.py", line 109 in behave
  File "devtools/ya/build/ymake2/__init__.py", line 204 in ymake_gen_graph
  File "devtools/ya/build/graph.py", line 2004 in _gen_graph_json
  File "devtools/ya/build/graph.py", line 1741 in _gen_graph
  File "devtools/ya/build/graph.py", line 1660 in _prepare_graph
  File "devtools/ya/build/graph.py", line 1586 in _build_pic
  File "devtools/ya/exts/asyncthread.py", line 15 in wrap
  File "devtools/ya/build/graph.py", line 1060 in _wrapper
  File "devtools/ya/build/graph.py", line 1498 in gen_pic
  File "contrib/tools/python3/Lib/concurrent/futures/thread.py", line 59 in run
  File "contrib/tools/python3/Lib/concurrent/futures/thread.py", line 93 in _worker
  File "contrib/tools/python3/Lib/threading.py", line 1012 in run
  File "contrib/tools/python3/Lib/threading.py", line 1075 in _bootstrap_inner
  File "contrib/tools/python3/Lib/threading.py", line 1032 in _bootstrap

Current thread 0x00007f5304e0fb00 (most recent call first):
  File "library/python/json/__init__.py", line 7 in loads
  File "devtools/ya/exts/yjson.py", line 34 in loads
  File "devtools/ya/build/ymake2/__init__.py", line 564 in stderr_listener
  File "devtools/ya/build/ymake2/__init__.py", line 653 in _run_ymake
  File "devtools/ya/build/ymake2/__init__.py", line 452 in _prepare_and_run_ymake
  File "devtools/ya/core/yarg/behaviour.py", line 96 in go
  File "devtools/ya/core/yarg/behaviour.py", line 109 in behave
  File "devtools/ya/build/ymake2/__init__.py", line 204 in ymake_gen_graph
  File "devtools/ya/build/graph.py", line 2004 in _gen_graph_json
  File "devtools/ya/build/graph.py", line 1741 in _gen_graph
  File "devtools/ya/build/graph.py", line 1660 in _prepare_graph
  File "devtools/ya/build/graph.py", line 1620 in _build_no_pic
  File "devtools/ya/exts/asyncthread.py", line 15 in wrap
  File "devtools/ya/build/graph.py", line 1060 in _wrapper
  File "devtools/ya/build/graph.py", line 1448 in gen_no_pic
  File "contrib/tools/python3/Lib/concurrent/futures/thread.py", line 59 in run
  File "contrib/tools/python3/Lib/concurrent/futures/thread.py", line 93 in _worker
  File "contrib/tools/python3/Lib/threading.py", line 1012 in run
  File "contrib/tools/python3/Lib/threading.py", line 1075 in _bootstrap_inner
  File "contrib/tools/python3/Lib/threading.py", line 1032 in _bootstrap

Thread 0x00007f530e3e5e80 (most recent call first):
  File "contrib/tools/python3/Lib/threading.py", line 359 in wait
  File "contrib/tools/python3/Lib/queue.py", line 180 in get
  File "devtools/ya/build/graph.py", line 1093 in _interruptable_queue_get
  File "devtools/ya/build/graph.py", line 1073 in get
  File "devtools/ya/build/graph.py", line 2902 in _get_tools
  File "devtools/ya/build/graph.py", line 2254 in _build_graph_and_tests
  File "devtools/ya/build/graph.py", line 1264 in build_graph_and_tests
  File "devtools/ya/build/ya_make.py", line 311 in _build_graph_and_tests
  File "devtools/ya/build/ya_make.py", line 914 in __init__
  File "devtools/ya/build/ya_make.py", line 1337 in __init__
  File "devtools/ya/build/build_handler.py", line 99 in do_ya_make
  File "devtools/ya/app/__init__.py", line 186 in helper
  File "devtools/ya/core/yarg/handler.py", line 434 in handle
  File "devtools/ya/core/yarg/dispatch.py", line 38 in handle
  File "devtools/ya/core/yarg/handler.py", line 222 in handle
  File "devtools/ya/entry/entry.py", line 48 in do_main
  File "devtools/ya/app/__init__.py", line 134 in helper
  File "devtools/ya/entry/entry.py", line 235 in do_app
  File "devtools/ya/entry/entry.py", line 258 in main
  File "devtools/ya/entry/main.py", line 38 in main

Extension modules: run_import_hook, __res, sitecustomize, simplejson._speedups, library.python.json.loads, ujson, library.python.strings.strings, devtools.ya.app_config.python.config, devtools.executor.proc_util.python.lib, zstandard.backend_c, libarchive._libarchive_swg, codecs.__codecs, __codecs, library.python.mlockall.mlockall, library.python.svn_version.__svn_version, devtools.ya.yalibrary.sjson.dumper, devtools.ya.yalibrary.sjson.loader, yalibrary.platform_matcher.matcher, devtools.ya.build.build_plan.build_plan, cityhash, _brotli, grpc._cython.cygrpc, devtools.libs.acdigest.python.acdigest, devtools.libs.yaplatform.python.platform_map, devtools.ya.build.ccgraph.cpp_string_wrapper, devtools.ya.build.ccgraph.ccgraph, devtools.ya.build.ymake2.run_ymake, devtools.ya.test.util.path, re2, devtools.ya.build.stat.graph_metrics, devtools.libs.universal_fetcher.py.universal_fetcher, devtools.ya.build.stat.graph, devtools.ya.build.stat.statistics, devtools.ya.test.tracefile.tracefile, open_hash_map, google.protobuf.pyext._message, google3.net.proto2.python.internal.cpp._message, devtools.local_cache.psingleton.python.systemptr, devtools.local_cache.toolscache.python.toolscache (total: 39)
Ошибка сегментирования (стек памяти сброшен на диск)
@frazenshtein
Copy link
Contributor

Could you run ya make by adding --log-file /tmp/ya.log --evlog-file /tmp/ya.evlog and attach both of these files. And also attach the core dump file, please.

Without these, it is not very clear what exactly the problem is. Looks like something went terribly wrong when loading json.

@emptyVoid
Copy link
Author

Logs and the core dump: ya.zip

@frazenshtein
Copy link
Contributor

frazenshtein commented Feb 25, 2025

I have reproduced the problem - it is caused by the fact that the path to the repository contains Russian characters: /home/en.badaev/Загрузки/perforator-0.0.4. Unexpectedly, this is leading to crash of the graph generating subsystem and producing a broken json data, which leads to a chain of crashes. We will see what exactly is causing the problem and fix it in near future.

Right now you need to move the project to a directory where there are no Russian characters in the path.

@frazenshtein frazenshtein added the bug Something isn't working label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants