Le 27/04/13 11:32, Ludovic Rousseau a écrit : > 2013/4/27 NicoBats <sl1200...@gmail.com>: >> so the results of a week of investigation are: >> libusb-1.0.15 compiled with clang on MacOS 10.8 lead to a segmentation fault >> on MacOS 10.6 >> libusb-1.0.15 compiled with gcc4.2 on MacOS 10.6 works as expected on MacOS >> 10.6 && MacOS 10.8 > I guess it is libusbx and not libusb. Exact? Exact > > It is not really expected to have a program build on 10.8 (for 10.8?) > to also work on previous releases. I don't think Apple guarantees > backward compatibility of its libraries. nope, it looks like backward compatibility do not work (especially when working with iokern.... stuff) > > The real tests are to: > - compile with clang on 10.6 and test on 10.6 and 10.8 > - compile with clang on 10.8 and test on 10.8 I can't provide them, sorry > >> the user have installed XCode 3.something (the last available for 10.6), >> compiled the lib for both 32 and 64 bits and this one does not segfault. >> I thought you must knew. > Can you also perform the tests I suggested above? I sent the tests result few days ago, but in case sending fails, here they are again: following the idea of Ludovic, libusbx compiled with -g:
[timestamp] [threadID] facility level [function call] <message> -------------------------------------------------------------------------------- [ 0.000013] [00000903] libusbx: debug [libusb_init] created default context [ 0.000073] [00000903] libusbx: debug [libusb_init] libusbx v1.0.15.10646 [ 0.000384] [00004d03] libusbx: debug [event_thread_main] creating hotplug event source [ 0.000797] [00004d03] libusbx: debug [event_thread_main] thread ready to receive events [ 0.000907] [00000903] libusbx: debug [usbi_add_pollfd] add fd 7 events 1 [ 0.002466] [00000903] libusbx: debug [libusb_get_device_list] Segmentation fault bash-3.2$ Date/Time: 2013-04-25 18:51:50.336 +0200 OS Version: Mac OS X 10.6.8 (10K549) Report Version: 6 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000 Crashed Thread: 0 Dispatch queue: com.apple.main-thread Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libusb-1.0.0.dylib 0x00000001008e5925 usb_get_next_device + 1221 1 libusb-1.0.0.dylib 0x00000001008e15d4 darwin_get_device_list + 100 2 libusb-1.0.0.dylib 0x00000001008d9ffd libusb_get_device_list + 141 3 DLight 0x000000010000e787 ftdi_usb_find_all + 39 hope we will find.... I've asked another guy with macOS 10.6 to test, results will be there tomorrow. ++ Nicolas > > Thanks > > -- > Dr. Ludovic Rousseau ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel