From: Fabian Becker Date: 2011-10-23T20:58:59+09:00 Subject: [ruby-core:40288] BitField extension This is a multi-part message in MIME format. --------------050504080701010103070309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I'm trying to build a Ruby extension that wraps boost::dynamic_bitfield. My code compiles perfectly but when instantiating an object of my class ruby segfaults. I haven't been able find the source of the problem as the segfault occurs deep inside the ruby core. Does anyone see anything wrong with my code so far? Code is at: http://pastebin.com/qLkMGYqq BitField is defined as: typedef struct _bitfield { boost::dynamic_bitset<> data; } BitField; Cheers, Fabian --------------050504080701010103070309 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi,
I'm trying to build a Ruby extension that wraps boost::dynamic_bitfield. My code compiles perfectly but when instantiating an object of my class ruby segfaults. I haven't been able find the source of the problem as the segfault occurs deep inside the ruby core. Does anyone see anything wrong with my code so far?

Code is at: http://pastebin.com/qLkMGYqq
BitField is defined as:

typedef struct _bitfield {
        boost::dynamic_bitset<> data;
} BitField;

Cheers,
Fabian

--------------050504080701010103070309--