A run straight from within gdb give this:
SEGFAULT:
(gdb) l 177 178 INIT 179 { 180 struct std_cs_stor *s = THIS; 181 182 s->retain = NULL; 183 s->replace = NULL; 184 185 init_string_builder(&s->strbuild,0); 186 } (gdb) p s $15 = (struct cq__Charset_Std_CS_struct *) 0x0 (gdb) where #0 init_cq__Charset_Std_CS_struct () at /var/src/roxen/81pike/src/modules/_Charset/charsetmod.cmod:182 #1 cq__Charset_Std_CS_event_handler (ev=<optimized out>) at /var/src/roxen/81pike/src/modules/_Charset/charsetmod.cmod:206 #2 0x0000555555666fce in call_c_initializers (o=o@entry=0x555555ab69c0) at /var/src/roxen/81pike/src/object.c:295 #3 0x00005555556676e9 in debug_clone_object (p=<optimized out>, args=args@entry=0) at /var/src/roxen/81pike/src/object.c:415 #4 0x00005555555aaa2e in low_mega_apply (type=<optimized out>, type@entry=APPLY_STACK, args=0, arg1=0x7ffff79a0830, arg1@entry=0x0, arg2=arg2@entry=0x0) at /var/src/roxen/81pike/src/interpret.c:2740 #5 0x00005555555ac50e in jump_opcode_F_CALL_FUNCTION () at /var/src/roxen/81pike/src/interpret_functions.h:2422 #6 0x00007ffff73c3575 in ?? () #7 0x00005555559ab5d6 in ?? () #8 0x00007ffff7722074 in ?? () #9 0x0000000000000000 in ?? ()