Re: [Libusbx-devel] SIGSEGV in list_del / io.c

2014-02-14 Thread Chris Dickens
Hi Erik, It would be helpful to see when in the course of execution calls to libusb_unref_device() are made. Could you add this, in libusb_unref_device() in core.c: usbi_mutex_lock(&dev->lock); refcnt = --dev->refcnt; usbi_mutex_unlock(&dev->lock); + usbi_dbg("unref device %p refcount=%d"

Re: [Libusbx-devel] SIGSEGV in list_del / io.c

2014-02-14 Thread Erik Rull
Hi Chris, thanks. I compiled it myself, the download is from here: Maybe this is wrong, too? What do you mean with linking to an older version at runtime? I don't have another libusb-x.so.y on the target system so it's very

Re: [Libusbx-devel] SIGSEGV in list_del / io.c

2014-02-14 Thread Chris Dickens
Hi Erik, Sourceforge seems to not have anything past 1.0.12. You can see the commit on GitHub here ( https://github.com/libusbx/libusbx/commit/858b794cf10ff1ac76a4f453bed7645aa9709c44). However 1.0.17 does indeed have this problem fixed. Is 1.0.17 installed as a system package, or did you compile

Re: [Libusbx-devel] SIGSEGV in list_del / io.c

2014-02-14 Thread Erik Rull
Hi Chris, I'm using 1.0.17, the commit cannot be found on the git browser when taking your ID, so I can't tell you if I have a too old version. Would be nice if you could poi