View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000287 | ascend | compiler | public | 2006-09-09 06:43 | 2009-05-01 17:58 |
Reporter | john | ||||
Assigned To | john | ||||
Priority | high | Severity | crash | Reproducibility | always |
Status | assigned | Resolution | open | ||
Product Version | |||||
Target Version | 1.0 | Fixed in Version | |||
Summary | 0000287: crash with beam.a4c | ||||
Description | The attached code gives a crash with the current Windows version 0.9.5.97 of ASCEND PyGTK. The error appears to be in the compiler, so I can't see that it's gui specific. | ||||
Tags | No tags attached. | ||||
2006-09-09 06:43
|
|
|
Note that this model depends on the models directory as at changeset 1031 (not part of the distributed versions of ASCEND). |
|
The bug also occurs in the current branches/extfn SVN version on Linux, with the following output: [john@cruncher2 pygtk]$ ./ascend ../models/johnpye/beam.a4c /usr/bin/ascend ? NOTE! RUNNING ASC_DEV (LOCAL) MODE... Launching... /usr/bin/python gtkbrowser.py --pygtk-assets=glade/ --library=../mo Using python module numarray PATH = /home/john/src/ascend/models FROM commandline base/generic/utilities/ascSignal.c:173 (ascresetneeded): SIGINT trap bypassed: c base/generic/utilities/ascSignal.c:196 (ascresetneeded): SIGSEGV trap bypassed: compile-time settings. base/generic/compiler/extfunc.c:368 (AddExternalFunc): Adding external function 'asc_free_all_variables' (at 0x85bb1e0). base/generic/solver/slv_stdcalls.c:1309 (SlvRegisterStandardClients): Solver 'QR Slv' registered OK base/generic/solver/conopt.c:109 (asc_conopt_load): LOADING CONOPT... base/generic/solver/conopt.c:117 (asc_conopt_load): Using default conopt search path: /usr/lib base/generic/utilities/ascDynaLoad.c:635 (SearchArchiveLibraryPath): ENV VAR NOT FOUND, FALLING BACK TO DEFAULT SEARCH PATH = '/usr/lib' base/generic/utilities/ascDynaLoad.c:538 (test_librarysearch): SEARCHING FOR /us r/lib/libconsub3.so base/generic/solver/slv_stdcalls.c:1309 (SlvRegisterStandardClients): Solver 'CO NOPT' registered OK base/generic/solver/slv_stdcalls.c:1309 (SlvRegisterStandardClients): Solver 'CM Slv' registered OK base/generic/solver/slv_stdcalls.c:1309 (SlvRegisterStandardClients): Solver 'LR Slv' registered OK GLADE_FILE = glade/ascend.glade base/generic/compiler/module.c:989 (ModuleSearchPath): File '../models/johnpye/b eam.a4c' opened directly, without path search Note: Module beam.a4c<0>: Module for '../models/johnpye/beam.a4c' created OK. Note: Beginning parse of beam.a4c<0>... Note: ...yyparse of beam.a4c<0> completed. Note: 2 library entries loaded from '../models/johnpye/beam.a4c' Listing 4 modules containing defined types - basemodel.a4l<0> - system.a4l<0> - atoms.a4l<0> - beam.a4c<0> Options: {'assets_dir': 'glade/', 'model': None, 'library_path': '../models', ' auto_sim': True} DO_SIM(beam) CREATED COMPILER Type beam, getSimulation('beam_sim') CREATING INSTANCE... base/generic/compiler/createinst.c:716 (CreateRelationInstance): Creating relati on instance at 0x87d0e58 with NULL rel ptr python: base/generic/compiler/instantiate.c:9772: Pass2ExecuteForStatements: Ass ertion `return_value' failed. ./ascend: line 63: 2240 Aborted $cmd [john@cruncher2 pygtk]$ |
|
The problem here appears to be an incorrectly placed 'assert' statement in instantiate.c. |
|
Ben says this 'assert' is fine and the error is only getting this far because checkrels or checkfors is turned off. |
Date Modified | Username | Field | Change |
---|---|---|---|
2006-09-09 06:43 | john | New Issue | |
2006-09-09 06:43 | john | File Added: ascend-crash-instantiate-9772.png | |
2006-09-09 06:43 | john | Target release | => 0.9.6 |
2006-09-09 06:45 | john | Note Added: 0000392 | |
2006-09-09 07:05 | john | Note Added: 0000393 | |
2006-09-10 02:21 | john | Note Added: 0000394 | |
2006-09-11 02:46 | john | Note Added: 0000395 | |
2008-02-10 17:58 | john | Status | new => assigned |
2008-02-10 17:58 | john | Assigned To | => john |
2009-05-01 16:52 | john | Target Version | => 0.9.7 |
2009-05-01 17:58 | john | Target Version | 0.9.7 => 1.0 |