Skip to content

Instantly share code, notes, and snippets.

View chuckremes's full-sized avatar

Chuck Remes chuckremes

View GitHub Profile
Building Melbourne for Rubinius
vm/test/runner
Running 709 tests.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................OK!
bin/mspec ci -B full --background
rubinius 1.0.0-rc2 (1.8.7 cebd593c 2010-01-04 JI) [x86_64-apple-darwin10.2.0]
......................................................................................................................................
commit 8852f542
OSX 10.6.2
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
Running "bin/mspec ci -B full" (as run by the "rake" command) generates a SIGSEGV after a "rake clean." Running it a second time (no clean in between) hangs on the "full" mspec run about 2/3 through. A control-c is unable to interrupt it. Running the mspec again with the 'specdoc' format shows the hang occurs after a call into the Resolv specs:
Readline::HISTORY.to_s
- returns 'HISTORY'
> tojson(coll.findOne(), false, false)
{
"_id" : ObjectId("4b709655870d49094800007c"),
"values" : [
[
71.91,
1
],
[
71.92,
ladders = @strategies.map { |strategy| strategy.crank(bar) }.compact
if verbose && ladders.any? { |ladder| ladder.changed? }
ladder = Ladder.consolidate ladders
write ladder
end
PRODUCES:
RubyArray.java:2031:in `compact_bang': java.lang.NullPointerException
from RubyArray.java:2052:in `compact'
Sun Feb 21 15:27:00 end connection 10.126.128.23:62048
Sun Feb 21 15:27:00 connection accepted from 10.126.128.23:62049 #5312
Sun Feb 21 15:27:00 connection accepted from 10.126.128.23:62050 #5313
Sun Feb 21 15:27:00 connection accepted from 10.126.128.23:62051 #5314
Sun Feb 21 15:27:00 connection accepted from 10.126.128.23:62052 #5315
Sun Feb 21 15:27:00 end connection 10.126.128.23:62052
Sun Feb 21 15:27:00 connection accepted from 10.126.128.23:62053 #5316
Sun Feb 21 15:27:00 connection accepted from 10.126.128.23:62054 #5317
Sun Feb 21 15:27:00 end connection 10.126.128.23:62018
Sun Feb 21 15:27:00 can't create new thread, closing connection
{ name: "text",
type_id: integer,
values: [ [0, 1, 2], [3, 4, 1], [5, 6, 2], [7, 8, 2]]
}
switched to db market_data
> db.ticks.ensureIndex({timestamp:1}, {background: true})
----------- another window -----------------
> db.currentOp()
{
"inprog" : [
cremes$ cat mongod.log
Mon Mar 15 13:31:03 Mongo DB : starting : pid = 37939 port = 27017 dbpath = /Volumes/susie/mongo/ master = 0 slave = 0 64-bit
Mon Mar 15 13:31:03 db version v1.3.3, pdfile version 4.5
Mon Mar 15 13:31:03 git version: 853524dc41aa926f4fd1504e6c46186769f51771
Mon Mar 15 13:31:03 sys info: Darwin erh2.10gen.cc 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_37
Mon Mar 15 13:31:03 waiting for connections on port 27017
Mon Mar 15 13:31:03 web admin interface listening on port 28017
Mon Mar 15 13:31:09 killcursors: found 0 of 1
Mon Mar 15 13:31:09 killcursors: found 0 of 1
Mon Mar 15 13:31:11 building new index on { _id: 1 } for ruby-mongo-test.test
/*
* Rules for better ruby C extensions:
*
* Never use the R<TYPE> macros directly, always use R<TYPE>_<FIELD>
*
* Never compare with RBASIC(obj)->klass, always use
* rb_obj_is_instance_of()
*
* Never use RHASH(obj)->tbl or RHASH_TBL().
*
--- /Users/cremes/Documents/development/ruby/mongo-ruby-driver/ext/cbson/cbson.c 2010-03-07 14:41:06.000000000 -0600
+++ cbson.c 2010-03-17 09:05:14.000000000 -0500
@@ -275,7 +275,8 @@
}
case T_STRING:
{
- if (strcmp(rb_class2name(RBASIC(value)->klass),
+ //if (strcmp(rb_class2name(RBASIC(value)->klass),
+ if (strcmp(rb_obj_classname(value),
"Mongo::Code") == 0) {