gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to track down problem with packed.com from testsuite


From: john o goyo
Subject: Re: Trying to track down problem with packed.com from testsuite
Date: Fri, 23 Aug 2024 21:41:27 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

Greetings, Gaius.

On 2024-08-11 14:30, Gaius Mulley wrote:
john o goyo <jog37@riddermarkfarm.ca> writes:

Greetings, Gaius.

Here is an oddity:

[~/opt/gm2/testsuite]=> gm2-14 -c -O -fomit-frame-pointer
-finline-functions -fiso packed.mod
[~/opt/gm2/testsuite]=> gm2-14 -c -O0 -fomit-frame-pointer
-finline-functions -fiso packed.mod
[~/opt/gm2/testsuite]=> gm2-14 -c -O1 -fomit-frame-pointer
-finline-functions -fiso packed.mod
[~/opt/gm2/testsuite]=> gm2-14 -c -O2 -fomit-frame-pointer
-finline-functions -fiso packed.mod
gm2: internal compiler error: Segmentation Fault signal terminated
program cc1gm2
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
[~/opt/gm2/testsuite]=> gm2-14 -c -Ofast -fomit-frame-pointer
-finline-functions -fiso packed.mod
gm2: internal compiler error: Segmentation Fault signal terminated
program cc1gm2
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.

Basically, optimisation level 2 and above causes problems.

I am trying to chase down the problem but I have clue where the gm2
compilation starts. Please inform me on which function to break.

Sincerely,
john
Hi John,

that is an interesting observation.

One way to debug is to set a break point on: gimplify_function_tree(tree_node*)

which is called by the front end at each end of function when the
statement tree is complete.  The statement tree can be dumped as follows
below.  For small test programs this can be useful - even to see which
function causes the sigsegv.

Perhaps I am missing something but how do I set a breakpoint on something in cc1gm2?  Does it not read files produced by gcc?

I tried loading the core file but no backtrace available, as seen below.

% gdb /home/build/gcc/14.2.0/libexec/gcc/sparc-sun-solaris2.11/14.2.0/cc1gm2 core
GNU gdb (GDB) 15.1
[...]
Reading symbols from /home/build/gcc/14.2.0/libexec/gcc/sparc-sun-solaris2.11/14.2.0/cc1gm2...
[New LWP 1]
Cannot access memory at address 0x1c
Cannot access memory at address 0x18
Cannot access memory at address 0x18
Core was generated by `/home/build/gcc/14.1.0/libexec/gcc/sparc-sun-solaris2.11/14.1.0/cc1gm2 -quiet -'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xffbff4fc in ?? ()
(gdb) bt
#0  0xffbff4fc in ?? ()
#1  0x00665e1c in alloc_page (order=0) at /home/build/opt/gcc/src/gcc-14.2.0/gcc/ggc-page.cc:805 #2  ggc_internal_alloc (size=<optimized out>, f=0xffbfe888, s=4290766288, n=4170231808)
    at /home/build/opt/gcc/src/gcc-14.2.0/gcc/ggc-page.cc:1295
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Sincerely,
john



reply via email to

[Prev in Thread] Current Thread [Next in Thread]