From: djberg96@... (Daniel Berger) Date: 2004-09-29T23:55:10+09:00 Subject: Re: [BUG] Bus Error in kstat extension ts wrote in message news:<200409291003.i8TA3od00568@moulon.inra.fr>... > >>>>> "D" == Daniel Berger writes: > > D> static VALUE ks_allocate(VALUE klass){ > D> KstatStruct* ptr = malloc(sizeof(KstatStruct)); > D> return Data_Wrap_Struct(klass,0,ks_free,ptr); > D> } > > I don't understand this when you have a nice Data_Make_Struct() This didn't make any difference. Although, you're right, I should just use Data_Make_Struct() instead. I think I'm still suffering undo paranoia from past "Data_Make_Struct is unsafe" threads. > D> VALUE ks_record(VALUE self){ > D> VALUE rbMHash, rbIHash, rbNHash, rbSHash; > > VALUE rbMHash, rbIHash, rbNHash; > volatile VALUE rbSHash; Unfortunately, this didn't make any difference, either. It still dumps core. Any other ideas? Dan