Henrik Grubbstr?m (Lysator) @ Pike (-) developers forum wrote:
Thanks. Potentially fixed.
Sorry, whack-a-mole, I guess. The bug shifted, maybe it's more obvious now (you check for inh > 0, does that even work for pointers? Maybe that should be inh != 0 instead?):
[...]
Program received signal SIGSEGV, Segmentation fault. really_low_find_shared_string_identifier (name=name@entry=0x55555590a308, prog=prog@entry=0x0, flags=flags@entry=3) at /var/src/roxen/81pike/src/program.c:7392 7392 last_inh = prog->num_inherits; (gdb) where #0 really_low_find_shared_string_identifier (name=name@entry=0x55555590a308, prog=prog@entry=0x0, flags=flags@entry=3) at /var/src/roxen/81pike/src/program.c:7392 #1 0x000055555561c53f in find_inherited_identifier ( inherit_state=0x5555557e7140, inherit_depth=0, inh=0, ident=0x55555590a308) at /var/src/roxen/81pike/src/program.c:2249 #2 0x00005555555727ae in yyparse () at language.yacc:4230
[...]
Looks like something has set Pike_compiler->new_program to NULL.
New attempt at fixing committed.
/grubba