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


Le 25/04/13 13:15, Ludovic Rousseau a écrit :
> 2013/4/24 NicoBats <sl1200...@gmail.com>:
>> Hi,
> Hello,
>
>> today a user report a segmentation fault on MacOS 10.6.
>> I'm compiling libusbx on MacOS 10.8 like that
>> export CXX=/usr/bin/clang++
>> export CC=/usr/bin/clang
>> export
>> PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/X11/include:/sw/bin:/sw/sbin:/opt/local/bin:/opt/local/sbin
>> export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig:$PKG_CONFIG_PATH"
>> ./configure --enable-debug-log --enable-examples-build --enable-tests-build
>> make  CFLAGS="-arch i386 -arch x86_64 -mmacosx-version-min=10.6"
>>
>> and here's the log form the user:
>> [timestamp] [threadID] facility level [function call] <message>
>> ________________________________
>> [ 0.003674] [00000903] libusbx: debug [libusb_get_device_list]
>> Segmentation fault
>> $
>>
>> nothing more...
>> the crash log looks like this:
>>
>> Date/Time:       2013-04-24 17:05:10.504 +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             0x00000001008e6914 usb_get_next_device +
>> 1236
>> 1   libusb-1.0.0.dylib             0x00000001008e25b4 darwin_get_device_list
>> + 100
>> 2   libusb-1.0.0.dylib             0x00000001008daf2d libusb_get_device_list
>> + 141
>> 3   DLight                         0x000000010000e787 ftdi_usb_find_all + 39
>> 4   DLight                         0x000000010004d583 libUSB_Connect + 275
>>
>>
>> is there is a simple way on MacOSX to try
>> ./ xusb -i 0403:6001
>>
>>
>> Does the user need to install XCode in order to compile libusbx to see if I
>> fail at compilation?
> If the compilation succeeds it should be OK.
> You can add debug information by adding "-g":
> CFLAGS="-g ..."
>
> We can then get some more debug information in the crash log.
>
> Bye
>
> --
>   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


------------------------------------------------------------------------------
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

Reply via email to