Klemens Nanni <[email protected]> writes: > All I get are core dumps right on startup (amd64, default/empty > `vm.malloc_conf'); it does not matter if I build with `-fcommon' or > apply fixes from FreeBSD, same crash. > > Installing with DEBUG='-g3 -O0 -fcommon': > > $ hnb > Segmentation fault (core dumped) > $ egdb --quiet hnb hnb.core > Reading symbols from hnb...done. > [New process 515561] > Core was generated by `hnb'. > Program terminated with signal SIGSEGV, Segmentation fault. > #0 0x00000d8c6ebe07a8 in node_backrecurse (node=0xffffffffaf56ed00) at > tree.c:52 > 52 if (node_up (node)) { > (gdb) bt > #0 0x00000d8c6ebe07a8 in node_backrecurse (node=0xffffffffaf56ed00) at > tree.c:52 > #1 0x00000d8c6ebe09c4 in node_no (node=0xffffffffaf56ed00) at tree.c:68 > #2 0x00000d8c6ebe6cfc in ui_draw (node=0xffffffffaf56ed00, > input=0xd8c6ec08480 <inputbuf> "", > edit_mode=0) at ui_draw.c:707 > #3 0x00000d8c6ebd0a28 in evilloop (pos=0xffffffffaf56ed00) at > evilloop.c:148 > #4 0x00000d8c6ebddae7 in main (argc=2, argv=0x7f7ffffe1cc8) at > hnb.c:270 > (gdb) p node > $1 = (Node *) 0xffffffffaf56ed00 > (gdb) p node->up > Cannot access memory at address 0xffffffffaf56ed00 > > I've used `cd $(make show=WRKSRC) && cc -E ./tree.c' to see what it does > at line 52: > > Node *node_backrecurse (Node *node) > { > if ((((node))?((node)->up):0)) { > > No idea why or how, but that seems plain broken regardless of > `-fno-common'. > > OK to remove?
OK gnezdo@
