Ryan Raaum
2005-Mar-14 22:43 UTC
Bus Error & Segmentation Fault in Rails 0.10.1 on Mac OS X 10.3 with sqlite3
I''ve just started trying to work with rails after lurking on this list for a long time and have run into a bit of a roadblock in the Todo tutorial. I have installed ruby 1.8.2 and rails 0.10.1. I installed sqlite3 and seem to be accessing it properly. Using WEBrick, I can get the rails start page and make it to the scaffolding portion of the tutorial. However, when i try to create a new todo, I can view the create page, but when I hit the button, I get a Bus Error (see below) <begin command line excerpt> 159-101:~/rails-dev/Todo ryan$ ruby script/server => Rails application started on http://0.0.0.0:3000 [2005-03-14 17:22:09] INFO WEBrick 1.3.1 [2005-03-14 17:22:09] INFO ruby 1.8.2 (2004-12-25) [powerpc-darwin7.8.0] [2005-03-14 17:22:09] WARN TCPServer Error: Address already in use - bind(2) [2005-03-14 17:22:09] INFO WEBrick::HTTPServer#start: pid=4336 port=3000 127.0.0.1 - - [14/Mar/2005:17:23:05 EST] "GET /todo/new HTTP/1.1" 200 1575 http://localhost:3000/todo -> /todo/new 127.0.0.1 - - [14/Mar/2005:17:23:11 EST] "POST /todo/create HTTP/1.1" 302 97 http://localhost:3000/todo/new -> /todo/create deadlock 0x24f6cb4: run:-/usr/local/lib/ruby/1.8/timeout.rb:41: [BUG] Bus Error ruby 1.8.2 (2004-12-25) [powerpc-darwin7.8.0] Abort trap <end command line excerpt> But ... the database insert seems to happen properly before the error, because if I fire up WEBrick again, I can see the new todo item in the list. Then if I try to Show, Edit or Destroy a todo item, I get a segmentation fault (see below) <begin command line excerpt> 159-101:~/rails-dev/Todo ryan$ ruby script/server => Rails application started on http://0.0.0.0:3000 [2005-03-14 17:18:52] INFO WEBrick 1.3.1 [2005-03-14 17:18:52] INFO ruby 1.8.2 (2004-12-25) [powerpc-darwin7.8.0] [2005-03-14 17:18:52] WARN TCPServer Error: Address already in use - bind(2) [2005-03-14 17:18:52] INFO WEBrick::HTTPServer#start: pid=4295 port=3000 127.0.0.1 - - [14/Mar/2005:17:21:57 EST] "GET /todo HTTP/1.1" 200 1517 - -> /todo /usr/local/lib/ruby/1.8/drb/drb.rb:1364: [BUG] Segmentation fault ruby 1.8.2 (2004-12-25) [powerpc-darwin7.8.0] Abort trap <end command line excerpt> Again, Destroy manages to delete the entry in the sqlite table before crashing. Anyone run into this sort of thing before? Thanks, Ryan