openpaperwork / pyinsane

Python library to access and use image scanners (Linux/Windows/etc) (Sane/WIA) -- Moved to Gnome's Gitlab
https://gitlab.gnome.org/World/OpenPaperwork/pyinsane
63 stars 24 forks source link

abstract_th : segfault when the program halts #1

Closed jflesch closed 8 years ago

jflesch commented 12 years ago

When a program uses abstrat_th and halts, it segfaults.

What happens:

The problem comes from either libsane + threads or ctypes + threads.

This is a really minor issue, since the program is pretty much finished when it happens. Still, segfaults are not good features :p

jflesch commented 11 years ago

The problem only occurs if sane_exit() is called. It looks like in some cases, if sane_exit() is called at some point, when the program exists, Sane data are cleaned a second time --> double-free/whatever --> segfault.

I don't know well enough Sane to dig further. --> Workaround added : d3de44473c04723cf84907ee050faa8d0a24691c

jflesch commented 8 years ago

Workarounded by abstract_proc anyway.