whizard is hosted by Hepforge, IPPP Durham

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#196 closed defect (fixed)

W2 crashes when omitting compile

Reported by: sschmidt Owned by: ALL
Priority: P3 Milestone:
Component: interfaces Version: 2.0.0rc2
Severity: normal Keywords: input file, compile
Cc:

Description

When omitting compile in the .sin file W2 crashes with a segfault in case the file processes.o doesn't exist,

a message

*** WHIZARD bug: Process ID mismatch: requested 'uutest' but found ''

in case the processes.o exists but doesn't include the process

and reporting a bug in case processes.o includes the process:

|=============================================================================|
| It      Calls  Integral[fb]  Error[fb]   Err[%]    Acc  Eff[%]   Chi2 N[It] |
|=============================================================================|
   1       5000  3.1077183E+02  9.28E+01   29.86   21.12*   1.53
   2       5000  6.7643567E+02  2.12E+02   31.36   22.17    0.93
*** WHIZARD bug: Process 'uutest': not loaded, can't record integral
| There were no errors and  2 warning(s).

IMHO there are two options:

  1. Check for the compile statement and exit if there is none.
  2. As the compile-statement is mandatory it could be declared optional, only having to be declared if the process library has a different name, like compile("qedtest") in test/qedtest.sin

Change History (3)

comment:1 Changed 14 years ago by kilian

The intention was to make the compile statement optional, but I've not yet found time to implement the necessary changes. Thanks for reminding me.

comment:2 Changed 14 years ago by kilian

Resolution: fixed
Status: newclosed

'compile' is now optional [1771].

comment:3 Changed 14 years ago by Juergen Reuter

Milestone: v2.0-rc3

Milestone v2.0-rc3 deleted

Note: See TracTickets for help on using tickets.