-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
segfault on make #1
Comments
Seems to be a problem with MacOS X port libusb. Are you using libusb-1.0? |
Yeah. Installed with
|
It's default difficult for me to further investigate 'cause I did not use MacOS X. Do you have some ideas how to solve the problem ? |
I'll take a closer look at the code in a few days. I don't have time right now to step through it. It looks like the old reading-from-a-null-pointer issue. |
Please try the latest commit. |
Still doesn't work for me on OS X. Additionally, I had to modify the |
First Step Second Step Third Step And Last Step I have successed |
Just to clarify, I can build the module, but running either |
@TooTallNate and report the logged events. I'll try building node-usb under MacOS X first in the next weeks. |
Ok, here's the output:
|
Uhm... Would you please replace the method Device::GetConfigDescriptor in src/device.cc with https://gist.github.com/707979 and recompile it. I hope the gist does not have any syntax errors - I'm currently not in the near of any development environment to check it. |
No syntax errors :) But it still segfaults. It gets a few steps further in the script though:
|
That's some sort of mysterious. It could be a sort of this issue: http://libusb.6.n5.nabble.com/Darwin-get-configuration-td7077.html Please do an #include assert.h on top of device.cc and an assert((device != NULL)); BEFORE line CHECK_USB(libusb_get_active_config_descriptor(self->device, &(self->config_descriptor)), scope) and recompile it. |
Second try. Please pull the latest version from the repo and recompile it (without changes is the comment before). |
Still a no-go for me:
|
Program received signal EXC_BAD_ACCESS, Could not access memory. On Darwin, every USB device has to be opened before using. |
So you figured out the issue and are going to fix it? Or do you still want me to try with the latest libusb code? |
Hey isaacs, had to do some study-related work the last days. |
I'm trying to get node-usb running on Mac OS (snow leopard) too, but still running into the segmentation fault during 'make' |
Getting the segfault as well on Snow Leopard using libusb from http://git.libusb.org/?p=libusb.git
|
A while ago I talked to the libusb-developers. It seems to be a bug in libusb on MacOS. Because I do not own a MacOS X system (VirtualBox doesn't work) I can not further investigate this bug. It would be nice if anyone could look at it. |
Here's the output:
gdb says this about it:
The text was updated successfully, but these errors were encountered: