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

cover C extension of pt=ython module with python3.5-dbg segfault #300

Closed
davidtazy opened this issue Jun 6, 2019 · 3 comments
Closed

cover C extension of pt=ython module with python3.5-dbg segfault #300

davidtazy opened this issue Jun 6, 2019 · 3 comments

Comments

@davidtazy
Copy link
Contributor

ubuntu 16.04 32 bits
kcov --version -> 35

I would like to cover code of python module C extension
#206 suggest to use python interp with debug symbols.

`

kcov cov/ /usr/bin/python3.5-dbg
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
kcov: Process exited with signal 11 (SIGSEGV) at 0xb7fe0abd

kcov cov/ /usr/bin/python3.5-dbg myscript.py
kcov: Process exited with signal 11 (SIGSEGV) at 0xb7fe0abd

`
immediatly crash

I maybe missunderstand something, I thought python3.5-dbg was python binary with symbols

@SimonKagstrom
Copy link
Owner

Well, that might cover the extensions, but I'm not quite sure how python loads them.

It might be the same issue as in #82, and then you should add --verify to the kcov command line. However, you're probably not very interested in the Python interpreter sources itself, so add --include-pattern=path-to-where-your-extension-sources-are to limit collection.

@davidtazy
Copy link
Contributor Author

--verify did the job!
and its working with standard version of python, (/usr/bin/python3)
maybe its an hidden feature you could promote
thx you

@SimonKagstrom
Copy link
Owner

Well, the Python 3 stuff is probably due to the fix in #250 .

As for verify, it would be good to have enabled by default, but unfortunately it decreases performance by quite a lot. It's also mainly needed for Rust programs, only sporadically for other languages.

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