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 (core dumped) with steps to reproduce #1083

Open
mpownby opened this issue Jan 11, 2025 · 0 comments
Open

Segmentation fault (core dumped) with steps to reproduce #1083

mpownby opened this issue Jan 11, 2025 · 0 comments

Comments

@mpownby
Copy link
Contributor

mpownby commented Jan 11, 2025

Randomly, I am seeing error messages like this:

PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var LLVM_SYMBOLIZER_PATH to point to it):
[###############-----------------] 152/318Segmentation fault (core dumped)

It seems to happen more if I mutate google test and my google test runner (which I was doing by accident). I figure even though this is not a best practice, it still feels like a defect for it to segfault (I'd expect it to just execute slower) so I'm reporting it.


Steps to duplicate:

From a native ubuntu 24.04 bash prompt, run this docker command:

docker run --rm -ti ubuntu:24.04 sh -c "\
	apt update -y && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y git curl net-tools cmake clang-17 && \
	curl -1sLf 'https://dl.cloudsmith.io/public/mull-project/mull-stable/setup.deb.sh' | bash && \
	apt update -y && apt install -y mull-17 && \
	git clone --depth 1 https://github.com/RulecityLLC/LaserdiscPlayerAbstract.git &&
	cd LaserdiscPlayerAbstract && mkdir build && cd build && \
	CC=clang-17 CXX=clang++-17 cmake .. -DCMAKE_C_FLAGS=\"-O0 -fpass-plugin=/usr/lib/mull-ir-frontend-17 -g -grecord-command-line\" -DCMAKE_CXX_FLAGS=\"-O0 -fpass-plugin=/usr/lib/mull-ir-frontend-17 -g -grecord-command-line\" -DBUILD_TESTING=ON && \
	/bin/bash"

Once the above command finishes, you'll be inside a bash shell in a docker container. Just run "make -j 16" and "make clean" until you see the error. It happened to me twice the second time I did a build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant