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

SIGSEGV using from/import, not using import #9

Open
maxux opened this issue Feb 3, 2017 · 0 comments
Open

SIGSEGV using from/import, not using import #9

maxux opened this issue Feb 3, 2017 · 0 comments

Comments

@maxux
Copy link

maxux commented Feb 3, 2017

Hello,

I hit a weird behavior when I try to import one module I wrote in Nim.

First case

The file mymodule.so is on the current directory.

import mymodule
mymodule.doSomeStuff()

Everything is fine during the process of doSomeStuff

Second case

The file mymodule.so is in a directory called mymodule next to an empty __init__.py file.

from mymodule import mymodule
mymodule.doSomeStuff()

I hit a SIGSEGV during the process of doSomeStuff (GC issue during the middle of a string manipulation).

Is this behavior normal or does I missed something ?
Thanks

EDIT:
Using this method works fine too:

import mymodule.mymodule
mymodule.mymodule.doSomeStuff()

I guess using import ... from ... remap some stuff and break something ?

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