https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92361

--- Comment #5 from Gilles Filippini <gilles.filippini at free dot fr> ---
Created attachment 47175
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47175&action=edit
Tentative self-contained test case for PR92361

Here is a tentative self-contained test case, made after the original
cgread_f03 test from libcgns.
It passes on Debian sid amd64, and fails on Debian sid ppc64el with:

$ ./pr92361-testcase  

In cg_ftoc.c: narguments=0

In cg_ftoc.c: narguments=1                               
        arg 0: 'FlowEquationSet_t' #4                           

In cg_ftoc.c: narguments=2
        arg 0: 'FlowEquationSet_t' #4
        arg 1: 'GoverningEquations_t' #4

In cg_ftoc.c: narguments=1                                                     
        arg 0: 'Zone_t' #3

In cg_ftoc.c: narguments=2
        arg 0: 'Zone_t' #3
        arg 1: 'ConvergenceHistory_t' #4

In cg_ftoc.c: narguments=1
        arg 0: 'Zone_t' #3

In cg_ftoc.c: narguments=2        
        arg 0: 'Zone_t' #3             
        arg 1: 'IntegralData_t' #5                            

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0x7fffa1bff113 in ???                         
#1  0x7fffa1bfdacb in ???                          
#2  0x7fffa1df04d7 in ???                          
#3  0x116290ae0 in ???                                
#4  0x116290f07 in ???                                
#5  0x11629165b in ???                                    
#6  0x7fffa19f8327 in generic_start_main           
        at ../csu/libc-start.c:308
#7  0x7fffa19f8523 in __libc_start_main       
        at ../sysdeps/unix/sysv/linux/powerpc/libc-start.c:116
#8  0xffffffffffffffff in ???                    
Segmentation fault

Reply via email to