Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 29510)] 0x0037dab0 in sparc_flush_instruction_cache () (gdb) bt #0 0x0037dab0 in sparc_flush_instruction_cache ()
Ok, looks like it doesn't like the inlined machine code of sparc_flush_instruction_cache().
What does a disassembly of sparc_flush_instruction_cache() give?
What does info reg say?
Try compiling without machine-code.
/ Henrik Grubbström (Lysator)
Previous text:
2003-02-03 14:37: Subject: Re: Pike 7.4 on Debian/Sparc - a build problem
On Mon, Feb 03, 2003 at 01:45:02PM +0100, Henrik Grubbström (Lysator) @ Pike (-) developers forum scribbled:
What does gdb say?
Ok, here it goes (the compiler is gcc 3.2):
(gdb) r Starting program: /scratch/grendel/pike7.4-7.4.13/build/linux-2.4.18-sparc64/tpike -DNOT_INSTALLED -DPRECOMPILED_SEARCH_MORE -m/scratch/grendel/pike7.4-7.4.13/build/linux-2.4.18-sparc64/master.pike [New Thread 16384 (LWP 29510)]
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 29510)] 0x0037dab0 in sparc_flush_instruction_cache () (gdb) bt #0 0x0037dab0 in sparc_flush_instruction_cache () #1 0x001ea980 in make_program_executable (p=0x4af9c8) at /scratch/grendel/pike7.4-7.4.13/src/program.c:7084 #2 0x0025c7a0 in eval_low (n=0x4dd8e8, print_error=1) at /scratch/grendel/pike7.4-7.4.13/src/las.c:5348 #3 0x000fecd8 in do_docode2 (n=0x4dd948, flags=6) at /scratch/grendel/pike7.4-7.4.13/src/docode.c:1762 #4 0x000f5df8 in do_docode (n=0x4dd948, flags=6) at /scratch/grendel/pike7.4-7.4.13/src/docode.c:297 #5 0x000fc230 in do_docode2 (n=0x4dd978, flags=6) at /scratch/grendel/pike7.4-7.4.13/src/docode.c:1377 #6 0x000f5df8 in do_docode (n=0x4dd978, flags=6) at /scratch/grendel/pike7.4-7.4.13/src/docode.c:297 #7 0x000fdaa0 in do_docode2 (n=0x4dd9a8, flags=6) at /scratch/grendel/pike7.4-7.4.13/src/docode.c:1582 #8 0x000f5df8 in do_docode (n=0x4de428, flags=6) at /scratch/grendel/pike7.4-7.4.13/src/docode.c:297 #9 0x000fe06c in do_docode2 (n=0x4de458, flags=6) at /scratch/grendel/pike7.4-7.4.13/src/docode.c:1654 #10 0x000f5df8 in do_docode (n=0x4de458, flags=6) at /scratch/grendel/pike7.4-7.4.13/src/docode.c:297 #11 0x000fc230 in do_docode2 (n=0x4de3f8, flags=6) at /scratch/grendel/pike7.4-7.4.13/src/docode.c:1377 #12 0x000f5df8 in do_docode (n=0x4de3f8, flags=6) at /scratch/grendel/pike7.4-7.4.13/src/docode.c:297 #13 0x000fdaa0 in do_docode2 (n=0x4de3c8, flags=6) at /scratch/grendel/pike7.4-7.4.13/src/docode.c:1582 #14 0x000f5df8 in do_docode (n=0x4de338, flags=6) at /scratch/grendel/pike7.4-7.4.13/src/docode.c:297 #15 0x001019d4 in do_code_block (n=0x4de338) at /scratch/grendel/pike7.4-7.4.13/src/docode.c:2254 #16 0x0025f4c4 in dooptcode (name=0x4d5f74, n=0x4de338, type=0x4d7c60, modifiers=1) at /scratch/grendel/pike7.4-7.4.13/src/las.c:5689 #17 0x0002d00c in yyparse () at /tmp/pikedeb.d9df18af4c/7.4/src/language.yacc:886 #18 0x001e1e30 in run_pass2 (c=0x4b29e8) at /scratch/grendel/pike7.4-7.4.13/src/program.c:5653 #19 0x001e3a9c in compile (aprog=0x4ebe90, ahandler=0x0, amajor=-1, aminor=-1, atarget=0x0, aplaceholder=0x0) at /scratch/grendel/pike7.4-7.4.13/src/program.c:5870 #20 0x0027b458 in f_compile (args=1) at /scratch/grendel/pike7.4-7.4.13/src/builtin_functions.c:3225 #21 0x00172e34 in get_master () at /scratch/grendel/pike7.4-7.4.13/src/object.c:540 #22 0x001582bc in main (argc=4, argv=0xeffffd34) at /scratch/grendel/pike7.4-7.4.13/src/main.c:703 #23 0x701c4900 in __libc_start_main () from /lib/libc.so.6
(sorry for the long lines, but that way the output is more readable)
TIA,
marek
/ Brevbäraren