llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.6k stars 11.82k forks source link

Segfault with absl::StatusOr #51390

Open b3334c15-e039-41ea-920e-01bc7f410019 opened 3 years ago

b3334c15-e039-41ea-920e-01bc7f410019 commented 3 years ago
Bugzilla Link 52048
Version 12.0
OS MacOS X
CC @JDevlieghere

Extended Description

LLDB consistently segfaults when calling status() on absl::StatusOr in my codebase, but I have been unable to come with a minimal repro case. The code is in a private Github repo, but I'm happy to give access to whomever and provide specific repro instructions and commit ref.

Here's the output:

(lldb) target create "build-debug/src/timeline_test" Current executable set to '/Users/adam/SpacePhysics/physics/build-debug/src/timeline_test' (x86_64). (lldb) r Process 3352 launched: '/Users/adam/SpacePhysics/physics/build-debug/src/timeline_test' (x86_64) Running main() from /Users/adam/SpacePhysics/physics/build-debug/_deps/googletest-src/googletest/src/gtest_main.cc [==========] Running 9 tests from 2 test suites. [----------] Global test environment set-up. [----------] 5 tests from TimelineTest [ RUN ] TimelineTest.FallingSphere [ OK ] TimelineTest.FallingSphere (1040 ms) [ RUN ] TimelineTest.AccelerateRewindAccelerate [ OK ] TimelineTest.AccelerateRewindAccelerate (2 ms) [ RUN ] TimelineTest.TimeTravel Assertion failed: (reset_event.ok()), function Simulate, file /Users/adam/SpacePhysics/physics/src/timeline.cc, line 159. Process 3352 stopped

llvmbot commented 3 years ago

Hello Adam,

I am looking at a bug similar to this.

Can you reach out to me via e-mail with the instructions and I will look into it on Monday.

Thank you

b3334c15-e039-41ea-920e-01bc7f410019 commented 3 years ago

LLDB version:

lldb --version lldb-1205.0.28.2 Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)