I'm doing some testing to see which gcc optimizations cause the problem.  -O doesn't have the problem, testing with -O2 right now, if that doesn't work, I'll add individually each extra option in -O2 (extra over -O) until one of them fails.



On Sunday, May 20, 2018, 1:55:08 PM EDT, Lance Dillon <riffraff169@yahoo.com> wrote:



Finally got 8.0.498 installed on fedora 28....  I used:

make CONFIGUREARGS="--with-cflags='-O' --without-machine-code"

I tried also --with-cflags='-O' by itself, and --without-machine-code by itself, they both produced working pike executables.

However, leaving both of them off caused running the tpike binary, running src/post_modules/GL/gen.pike, caused the segmentation fault.

The working compile did have the following error:

/home/riffraff/src/Pike-v8.0.498/build/linux-4.16.7-300.fc28.x86_64-x86_64/lib/modules/_ADT.so:-: Warning: Failed to load library: Invalid dynamic module.

Without either of the options I get the following:

#### Making static: post_modules/GL
Compiling post_modules/GL/top.c
/home/riffraff/src/Pike-v8.0.498/build/linux-4.16.7-300.fc28.x86_64-x86_64/tpike -DNOT_INSTALLED -DPRECOMPILED_SEARCH_MORE -m/home/riffraff/src/Pike-v8.0.498/build/linux-4.16.7-300.fc28.x86_64-x86_64/master.pike  /home/riffraff/src/Pike-v8.0.498/src/post_modules/GL/gen.pike /home/riffraff/src/Pike-v8.0.498/src/post_modules/GL/auto.c.in > auto.c.tmp
/bin/sh: line 1: 31243 Segmentation fault      (core dumped) /home/riffraff/src/Pike-v8.0.498/build/linux-4.16.7-300.fc28.x86_64-x86_64/tpike -DNOT_INSTALLED -DPRECOMPILED_SEARCH_MORE -m/home/riffraff/src/Pike-v8.0.498/build/linux-4.16.7-300.fc28.x86_64-x86_64/master.pike /home/riffraff/src/Pike-v8.0.498/src/post_modules/GL/gen.pike /home/riffraff/src/Pike-v8.0.498/src/post_modules/GL/auto.c.in > auto.c.tmp
make[6]: *** [Makefile:487: auto.c] Error 139
make[5]: *** [Makefile:107: all] Error 2
make[4]: *** [Makefile:89: override] Error 2
make[3]: *** [Makefile:100: GL] Error 1
make[2]: *** [Makefile:1224: post-modules-stamp] Error 1
make[1]: *** [Makefile:149: _make_in_builddir] Error 2
make: *** [Makefile:66: compile] Error 2


gdb backtrace shows:

(gdb) bt
#0  0x000000000044e744 in debug_add_to_callback (lst=0xaa2200 <evaluator_callbacks>,
    call=call@entry=0x4b5700 <destruct_objects_to_destruct_cb>, arg=arg@entry=0x0, free_func=free_func@entry=0x0)
    at /home/riffraff/src/Pike-v8.0.498/src/callback.c:127
#1  0x00000000004b4f23 in schedule_really_free_object (o=0x12bad10) at /home/riffraff/src/Pike-v8.0.498/src/object.c:1148
#2  0x00007fe55c459e49 in ?? ()
#3  0x0000000000000221 in ?? ()
#4  0x0000000000000093 in ?? ()
#5  0x0000000001385e10 in ?? ()
#6  0x00007fe55c6cc000 in ?? ()
#7  0x00007fe56ed39120 in ?? ()
#8  0x00000000012bd8a8 in ?? ()
#9  0x00000000012d6c70 in ?? ()
#10 0x00007fe55c53489c in ?? ()
#11 0x0000000000420d7a in eval_instruction (
    pc=0x7fe55c53489c "UH\211\345AWAVAUATSH\203\354\bI\211\377M\213w H\215\005\365\377\377\377I\211F(M\213/I\213NpH\213I H\213\211\230") at /home/riffraff/src/Pike-v8.0.498/src/interpret.c:2753
#12 catching_eval_instruction (
    pc=0x7fe55c53489c "UH\211\345AWAVAUATSH\203\354\bI\211\377M\213w H\215\005\365\377\377\377I\211F(M\213/I\213NpH\213I H\213\211\230", pc@entry=0x7fe56ed392c0 "\016") at /home/riffraff/src/Pike-v8.0.498/src/interpret.c:2753
#13 0x0000000000421f70 in inter_return_opcode_F_CATCH (addr=0x7fe56ed392c0 "\016")
    at /home/riffraff/src/Pike-v8.0.498/src/interpret.c:1295
#14 0x00007fe55c534884 in ?? ()
#15 0x000000000138ae7c in ?? ()
#16 0x0000000000000000 in ?? ()

For now I think I am going to go with -O to remove optimizations, so I can get pike running.




On Friday, May 18, 2018, 6:31:36 PM EDT, H. William Welliver III <william@welliver.org> wrote:


Additionally, I'm continuing to refine my port of Pike to pkgsrc, for (hopefully) eventual inclusion in the pkgsrc master repository. In the meantime, I've got new binary packages available if anyone's using pkgsrc on:

Illumos/SmartOS/OpenIndiana/etc
NetBSD 6.1.5
NetBSD 7.1
MacOS
Linux

These packages are now signed so there's a small amount of added assurance this time around.

I don't have them all uploaded to a public location but if anyone's interested, drop me a note and I'll make them available.

Finally, I've got an update for homebrew in the works which I'll pull the trigger on once a non-beta release is declared.

As always, feel free to drop me a line of there are any questions or comments!

Bill


May 13, 2018 10:10 AM, "H. William Welliver III" <william@welliver.org> wrote:

> I also have RPMs for EL/Centos 6/7 as well if anyone wants to give those a try. Just let me know
> and I’ll put them somewhere.
>
> Bill
>