Crashes on pgresult_values()

Issue #136 duplicate
Former user created an issue

Not sure if this is the right place to report or not. Originally reported in but Yui Naruse determined was a bug in pg_ext:

"It crashes on pgresult_values(), so it seems pg_ext's bug.

6 pg_ext.bundle 0x0000000109dd6578 pgresult_values + 200 (pg_result.c:735)

Could you report this to pg_ext?"

See the following for dump files, logs:

Please let me know if I should post this elsewhere.


Comments (5)

  1. Gary Weaver

    Original comment in that thread: "I can reproduce the bug, but it only occurs in a script that I can't share. Fails each time in 1.9.3-p194. Attempted to get RVM's ruby-head running locally, but brew's openssl install is not brave enough to update OS X's and attempt to have it use the openssl that rvm can provide to build didn't work, so unfortunately not tested in latest Ruby. Sorry if this is a waste of time, but thought I'd pass it on. Included both dumps/logs from both crashes. Hope it helps."

    Attached 4 files from that ticket.

  2. Michael Granger repo owner

    Additional fixes for PG::Result#values and #column_values.

    - Revert the row-building loop of Result#values to use the heap, too. - Use the heap for building #column_values, too.

    Props to Lars Kanis for figuring out the problem.

    Refs #135, #136, #138.


  3. Michael Granger repo owner

    I've just pushed pg-0.14.1.pre.363.gem, which should fix all the known segfaults. Please test it out in your applications and let me know if still see the problem.

  4. Log in to comment