whizard is hosted by Hepforge, IPPP Durham

Opened 12 years ago

Closed 12 years ago

#454 closed defect (fixed)

Crash after adding iterations statement to integrate

Reported by: sschmidt Owned by: kilian
Priority: P1 Milestone: v2.0.7
Component: core Version: 2.0.6
Severity: normal Keywords: grid integrate
Cc:

Description

When integrating a process without an explicit iterations statement, then adding an integrations statement and redoing the integration, WHIZARD crashes when trying to read the grids.

See attached sin files for an example, run with

whizard Wprod.sin; whizard Wprod2.sin

in an empty directory.

The last output/nagfor traceback is

| Reading integration grids and results from file 'Wprod.vg':
Runtime Error: processes.f90, line 923: Subscript 1 of PASS (value 6) is out of range (1:4)
Program terminated by fatal error
processes.f90, line 923: Error occurred in PROCESSES:INTEGRATION_RESULTS_ITERATIONS_ARE_CONSISTENT
processes.f90, line 3717: Called by PROCESSES:READ_GRID_FILE
processes.f90, line 3745: Called by PROCESSES:PROCESS_READ_GRID_FILE
integrations.f90, line 464: Called by INTEGRATIONS:INTEGRATION_SETUP_GRIDS
integrations.f90, line 678: Called by INTEGRATIONS:INTEGRATION_INIT0
integrations.f90, line 840: Called by INTEGRATIONS:INTEGRATE_PROCESS0
integrations.f90, line 860: Called by INTEGRATIONS:INTEGRATE_PROCESS1
commands.f90, line 3362: Called by COMMANDS:CMD_INTEGRATE_EXECUTE
commands.f90, line 994: Called by COMMANDS:COMMAND_EXECUTE
commands.f90, line 6050: Called by COMMANDS:COMMAND_LIST_EXECUTE
whizard.f90, line 325: Called by WHIZARD:WHIZARD_PROCESS_STREAM
whizard.f90, line 303: Called by WHIZARD:WHIZARD_PROCESS_FILE
main.f90, line 348: Called by MAIN

The crash only appears when compiled with nagfor (FC=nagfor FCFLAGS=-C=all -nan -gline in my case), compiled with gfortran it doesn't crash. Tested with the 2.0.6 release.

Attachments (2)

Wprod.sin (169 bytes) - added by sschmidt 12 years ago.
Wprod2.sin (203 bytes) - added by sschmidt 12 years ago.

Download all attachments as: .zip

Change History (7)

Changed 12 years ago by sschmidt

Attachment: Wprod.sin added

Changed 12 years ago by sschmidt

Attachment: Wprod2.sin added

comment:1 Changed 12 years ago by Juergen Reuter

Resolution: worksforme
Status: newclosed

Works like sugar on 32bit architecture with nagfor v775.

comment:2 Changed 12 years ago by Juergen Reuter

Resolution: worksforme
Status: closedreopened

Hm, on a clean 32bit system with nagfor I could reproduce that error....

comment:3 Changed 12 years ago by sschmidt

update: The example also crashes when compiled with gfortran with the flags for checking array bounds ( -Warray-bounds -fbounds-check , maybe only one is needed ) The error message is

Fortran runtime error: Index '6' of dimension 1 of array 'pass' outside of expected range (4:1)

in agreement with the nagfor backtrace.

comment:4 Changed 12 years ago by Juergen Reuter

Priority: P3P1

comment:5 Changed 12 years ago by kilian

Resolution: fixed
Status: reopenedclosed

fixed in r3663.

Note: See TracTickets for help on using tickets.