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

Segmentation fault and other Exceptions in python 3.6.0 #17

Open
2mf opened this issue Feb 12, 2017 · 4 comments
Open

Segmentation fault and other Exceptions in python 3.6.0 #17

2mf opened this issue Feb 12, 2017 · 4 comments

Comments

@2mf
Copy link
Contributor

2mf commented Feb 12, 2017

I'm getting segfaults in python 3.6.0 but no further exception.
I'm looking into that but can you please check that as well.

@2mf
Copy link
Contributor Author

2mf commented Feb 12, 2017

eample:

>>> import libnfs
>>> n = libnfs.NFS('nfs://192.168.0.123/data/')
>>> n.listdir('.')
Segmentation fault
>>> import libnfs
>>> n = libnfs.NFS('nfs://192.168.0.123/data/')
>>> n.open('foobar.txt','w+')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/mf/.pyenv/versions/profile36/lib/python3.6/site-packages/libnfs/__init__.py", line 187, in open
    return NFSFH(self._nfs, path, mode=mode, codec=codec)
  File "/home/mf/.pyenv/versions/profile36/lib/python3.6/site-packages/libnfs/__init__.py", line 81, in __init__
    raise ValueError(_errmsg)
ValueError: open failed: Bad address

@2mf 2mf changed the title Segfaults in python 3.6.0 Segmentation fault and other Exceptions in python 3.6.0 Feb 12, 2017
@lie-nielsen
Copy link

I had these same errors with python 2.7 under Ubuntu 14.04 using the libnfs1 package. I upgraded to ubuntu 16.04 and libnsf8 package and all works well now.

@2mf
Copy link
Contributor Author

2mf commented May 10, 2017

Well, we use debian jessie amd64 with python 2.7.x it works but not with python 3.6.x we face those problems.
So we decided to use a kernel mount instead.
My guess is that it is a unicode issue in python 3 as of all string are unicode and in python 2 not.

@jony89
Copy link

jony89 commented Oct 13, 2024

reproduced in mac os with latest code. does not reproduce with ubuntu

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

3 participants