Coder Social home page Coder Social logo

Comments (12)

godfat avatar godfat commented on July 19, 2024

I am running ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.2.1] and seeing a segfault after doing a select with ALTER TABLE with postgres as well.

But it looks to me it's more a Ruby bug since it segfaulted at lines in Ruby code instead of native code. However it's actually hard to tell. I don't yet have time to figure out what's going on, but want to let people know we have similar issues. (though it might not be related)

from do.

dbussink avatar dbussink commented on July 19, 2024

Could any one of you create a small repro for this to reproduce the problem? Ideally just a script with no dependencies except for DataObjects itself. I'm sure it would be fairly easy to fix then.

from do.

crantok avatar crantok commented on July 19, 2024

@dbussink I'll try to do that tomorrow morning (I'm in the UK) and post a link here. This is my first DataMapper app and I'm relatively new to Ruby. If I get stuck then I'll mention that here too.

from do.

godfat avatar godfat commented on July 19, 2024

Here it is. https://gist.github.com/godfat/5626115
So it looks like it crashed at execute_reader which is a C function.

from do.

godfat avatar godfat commented on July 19, 2024

Could it be a postgres change? I am using psql --version psql (PostgreSQL) 9.2.4

from do.

crantok avatar crantok commented on July 19, 2024

I've uploaded a script that's based on godfat's. https://gist.github.com/crantok/5626645

One thing I forgot:
Server version: 5.5.30-30.1 Percona Server (GPL), Release rel30.1, Revision 465

from do.

dbussink avatar dbussink commented on July 19, 2024

@crantok Looks like your issue is a different one from @godfat, they don't seem to be related. I've managed to reproduce the issue of @godfat, but the one @crantok reported seems to run fine for me.

from do.

crantok avatar crantok commented on July 19, 2024

That's a pity. Any idea what my next step should be? I wonder whether it's worth pointing my host's support at this thread.

from do.

dbussink avatar dbussink commented on July 19, 2024

I don't know if it's possible to set up a machine somewhere that shows this problem? If you could get this crash reproduced in for example an isolated virtual machine that I could get access to, that would be great. That's probably the easiest way to get the information needed to fix this issue.

from do.

crantok avatar crantok commented on July 19, 2024

Providing a VM is beyond my abilities. I've raised a ticket with my host to see if they can help in this regard.

from do.

crantok avatar crantok commented on July 19, 2024

I've found out that there was a problem with the gem installation on my hosting account. Reinstallation killed the problem so my original issue was a phantom. I haven't closed the issue in case you still need it open for the postgres segfault.

from do.

dbussink avatar dbussink commented on July 19, 2024

Ah, I'm closing it then, since the postgres segfault was fixed.

from do.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.