Hi, (11/10/23 20:58), Fabian Becker wrote: > 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 You don't call the constructor in BitFieldNew() before calling data.resize(). Seems working if "new(bf) BitField();" is added. -- Nobu Nakada