It seems the python code is out of sync with the C code. In particular,
there are fields missing from the python struct definitions with the
result that the "next" field is often incorrect, leading to following a
bad pointer (not a pointer at all actually).

I've attached a patch that adds the missing "modificationdate" field to
2 of the structs. I don't know if this fixes everything but it certainly
turns

python -c 'import pymtp;m=pymtp.MTP();m.connect();print
m.get_filelisting(); m.disconnect()'

into something that doesn't segfault anymore. It also makes deviceinfo
execute to completion too.

-- 
python pymtp crashes with segfault
https://bugs.launchpad.net/bugs/575091
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to