-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
native bindings seg faulting with node v0.7.12 #136
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
Comments
I am getting this too, but I, unfortunately, can't fall back to the javascript bindings because I need SSL =/ |
I'm getting this too now. Just updated my OS X to v0.8.0. I'll try to get some help on this issue as soon as I can. I'm guessing I need to migrate the |
Yeah, the 0.8.0 release notes (http://blog.nodejs.org/) had a migration On Thu, Jun 28, 2012 at 5:24 PM, Brian Carlson <
|
Any estimate on when this will be done? I set up a new array of node instances we are using to run API server with node 0.8.1 and it was non-obvious to me what was going wrong until I traced it out. I'll need to decide whether to rollback to 0.6.19 or wait. I hate missing out on all the bug fixes and performance enhancements in node, but we have over 200k daily uniques and I need to get this array up in the next couple days. |
@nick-apperson I'm sorry your experiencing an issue. I would recommend using the non-native bindings (pure javascript) until I have time to devote to fixing the issue. It's high on my list for node-postgres but unfortunately right now I've got a few things higher on the list. At the risk of TMI: moving into a partial demolished remodel home in a week, getting married a few weeks after that, and have a lot of client work to tend to. some options -
I would LIKE to get to this issue before the weekend, but the way things are going with me right now almost everything is in a holding pattern until my personal & professional issues are done being in the front seat. |
I have updated to using the javascript bindings. I thought about doing the pull request, but my job requires every moment of my free programming time. I would love to contribute to the project though (and when I'm working less, I might). I didn't mean to be unappreciative of what you're doing. I'm also not opposed to sponsoring your time working on bugs. I've sent you an email asking about your rates. |
No problem @nick-apperson. You didn't seem unappreciative -- I understand how deadlines can be. I'll get back to your email a little later today and keep you updated here about progress on the bugfix. Thanks! |
the ever amazing @booo sent a patch for initial libuv porting. Thank you so much! I've run through all the tests locally and they have passed on this set up: osx - node v0.8.0 - postgres 9.1.4 @booo was saying he ran into some tests failing, but on my setup the entire suite passed. I'll run this through my setup on linux tomorrow, but I wanted to get this out asap to get past the major segfaults some people were experiencing. I will work on getting things more stable over the rest of the week and this weekend. Thanks again to @booo. |
Ok. I'm going to push the patch in a minute. Should I create a pull request? The failing test is https://github.com/booo/node-postgres/blob/c++/src/binding.cc#L641 Sample causing this segfault on ubuntu with node 0.8.1 and postgres 9.1.*: pg = (require "./").native
client = new pg.Client()
client.connect (error)-> client.end()
client.connect() I don't have a really nice solution for this. Maybe we should keep the state of the Also I suggest that we move this block https://github.com/booo/node-postgres/blob/master/src/binding.cc#L335 behind the https://github.com/booo/node-postgres/blob/master/src/binding.cc#L342 For example if we provide wrong connection informatin this is the actual problem and not that we couldn't set the connection to non-blocking. |
sure - a pull request helps me identify what in your repo you want merged in. I see what you're saying about the seg fault w/ a non-initialized read/write watchers. I think a private variable on the connection class...something like I totally agree with moving that block behind the |
Test case from ticket works but some tests fail. Signed-off-by: brianc <[email protected]>
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.13. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.11...4.17.13) Signed-off-by: dependabot[bot] <[email protected]>
I am seeing segmentation faults when trying to use the native pg bindings with node v0.7.12 (pg v0.7.1, postgres 9, Mac OS X 10.7.3).
I do not see the problem using the javascript bindings, and I do not see the problem on node v0.6.19 with native or javascript bindings.
Here is a simple script which produces a seg fault for me:
Here is some debugging info from gdb (notice that "loop" is null for some reason):
Could the problem just be that pg needs to be updated to use uv instead of ev?
The text was updated successfully, but these errors were encountered: