whizard is hosted by Hepforge, IPPP Durham

Opened 10 years ago

Closed 10 years ago

#665 closed defect (fixed)

Catch gfortran 4.9.1 segafult in autocomponents

Reported by: Juergen Reuter Owned by: kilian
Priority: P0 Milestone: v2.2.3
Component: core Version: 2.2.2
Severity: blocker Keywords:
Cc:

Description


Change History (1)

comment:1 Changed 10 years ago by Juergen Reuter

Resolution: fixed
Status: newclosed

A workaround for the gfortran 4.9.1 regression has been committed in r6036. Funnily, the elemental function new_prt_spec working on arguments of type string_t (which are allocatables) works on scalar arguments and array arguments of dimension 2 and bigger, but crashes with an malloc segfault on arrays of dimension 1. The fix simply exchanges array structure and function with each other. The first fix in the gfortran C code by Dominique d'Humieres looks (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61831#c23) looks indeed as it would catch those problems, but it doesn't. So, the damage is that within WHIZARD 2.2.2 with gfortran 4.9.1 NLO features via auto_components do not work (but we have a patch). Hopefully, in gfortran 4.9.2 this is fixed (and also in 4.10), and we have the fix then in 2.2.3.

Note: See TracTickets for help on using tickets.