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

Segfault on a haskell binary with DWARF and linked with --gc-sections #388

Open
jberryman opened this issue Nov 27, 2022 · 2 comments
Open

Comments

@jberryman
Copy link

See google/bloaty#329 which has an example.

This seems likely a problem with the binary, but thought I would open a ticket, as maybe you'd want a conditional check like bloaty is doing.

kcov /tmp/kcov3 /tmp/pandoc/dist-newstyle/build/x86_64-linux/ghc-9.2.5/pandoc-3.0/t/test-pandoc/build/test-pandoc/test-pandoc
kcov: Process exited with signal 11 (SIGSEGV) at 0xffffffffffffffff
@SimonKagstrom
Copy link
Owner

I'm investigating this a bit now, but have trouble reproducing it in a good way. I'm on a Mac, so reliant on a Docker image with Linux right now, which can't run this binary with or without kcov.

Does kcov --verify [...] help with this binary? I tried listing the breakpoint it sets, but doesn't see any obvious strange addresses (although there are lots of them, so might have missed something!)

@jberryman
Copy link
Author

Hi, appreciate you looking into it!

I see:

❯ kcov --verify /tmp/kcov3 /tmp/pandoc/dist-newstyle/build/x86_64-linux/ghc-9.2.5/pandoc-3.0/t/test-pandoc/build/test-pandoc/test-pandoc
kcov: 411783 invalid breakpoints skipped in /tmp/pandoc/dist-newstyle/build/x86_64-linux/ghc-9.2.5/pandoc-3.0/t/test-pandoc/build/test-pandoc/test-pandoc
kcov: 1 invalid breakpoints skipped in /lib/x86_64-linux-gnu/libm.so.6
kcov: Process exited with signal 11 (SIGSEGV) at 0xffffffffffffffff

Let me know if thiere's something else I can help with

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

2 participants