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

TestHelloWorld can't get a valid callstack after attaching #24974

Closed
llvmbot opened this issue Aug 27, 2015 · 1 comment
Closed

TestHelloWorld can't get a valid callstack after attaching #24974

llvmbot opened this issue Aug 27, 2015 · 1 comment
Labels
bugzilla Issues migrated from bugzilla lldb

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Aug 27, 2015

Bugzilla Link 24600
Resolution FIXED
Resolved on Dec 19, 2018 16:54
Version unspecified
OS Windows NT
Blocks #22140
Reporter LLVM Bugzilla Contributor
CC @stella.stamenova

Extended Description

The log file shows this:

looking at: Stack traces for SBProcess: pid = 832, state = stopped, threads = 2, executable = test_with_dwarf_and_attach_to_process_with_id_api
Stack trace for thread id=0x47c name=None queue=None stop reason=none
frame #​0: 0xffffffffffffffff ntdll.dll`DbgBreakPoint + 1

Stack trace for thread id=0xc68 name=None queue=None stop reason=none
frame #​0: 0x00000077908c2c None`None + -18446744071703589843

Expecting sub string: main.c:30
Not matched

FAIL

It is expecting to see the second thread stopped in main, but it is stopped somewhere else. The address looks reasonable, so it is most likely that the main thread hasn't yet gotten through process initialization yet and it is still in loader initialization or CRT initialization.

Another possibility is that we just have a bug relating to multiple threads and the address is totally bogus.

We should fix the test suite to not rely on racy behavior like this by implementing a cross-platform is_debugger_present() function that all test inferiors can use so we can synchronize debugger behavior with test suite behavior, but to fix this completely we will always need to provide a way to skip the initial breakpoint so that we only hit the user-created breakpoint and not the loader breakpoint, guaranteeing that the code is in main.

@stella.stamenova
Copy link
Mannequin

stella.stamenova mannequin commented Dec 20, 2018

This test is now passing on Windows

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla lldb
Projects
None yet
Development

No branches or pull requests

1 participant