****************************************************************************** ********************* IBIS GOLDEN PARSER BUG REPORT FORM ********************* ****************************************************************************** INSTRUCTIONS To report a bug in the IBIS golden parser. Please fill out the top part of the following form and send the complete form to info@ibis.org. A list of reported bugs is maintained at http://ibis.org/bugs/ibischk/ . ****************************************************************************** PARSER VERSION NUMBER: PLATFORM (SPARC, HP700, PC, etc.): ALL OS AND VERSION: ALL REPORTED BY: Mike LaBonte, MathWorks DATE: February 8, 2022 DESCRIPTION OF BUG: Out of Memmory Message 6801 Reported Both as a Bug and Error. This creates two lines in the Error spread sheet and in the IBISCHK Users Guide CMODEL_ERR_1 reports both BUG and ERROR messages Line 122 of cmodel.c reports CMODEL_ERR_1 as a BUG: 119 if (CMN_malloc((void **)&pCmodel, sizeof(CMODEL)) != SUCCESS) 120 { 121 /* ERRLOG_Bug(sErNoMalloc, __FILE__, __LINE__); */ 122 ERRLOG_BugNew(CMODEL_ERR_1, __FILE__, __LINE__); 123 return(FAILURE); 124 } That produces a BUG message like: "B6801 - ( line 61 ) - Unable to Allocate Memory: cmodel.c 122" The same error code is also used at line 1277: 1275 if( CMN_malloc((void **)&(pCmodel->pTerminalTypes), sizeof(CMODEL_TERMINAL_TYPE) * pCmodel->nTerminals) != SUCCESS ) 1276 { 1277 ERRLOG_LineErrorNew(CMODEL_ERR_1, __FILE__, __LINE__); 1278 return; 1279 } However, the message there is printed as an ERROR, even though the problem is also a memory allocation failure: "E6801 - ( line 78 ) - Unable to Allocate Memory: cmodel.c 1277" The latter message should also be categorized as a BUG. the solution is to change line 1277 from 1277 ERRLOG_LineErrorNew(CMODEL_ERR_1, __FILE__, __LINE__); to 1277 ERRLOG_BugNew(CMODEL_ERR_1, __FILE__, __LINE__); ***************************************************************************** INSERT IBIS FILE DEMONSTRATING THE BUG: No testcase file; to reproduce it is necessary to run out of memory at certain exact times. ****************************************************************************** ******************** BELOW FOR ADMINISTRATION AND TRACKING ******************* ****************************************************************************** BUG NUMBER: 231 SEVERITY: [FATAL, SEVERE, MODERATE, ANNOYING, ENHANCEMENT] ANNOYING PRIORITY: [HIGH, MEDIUM, LOW] MEDIUM STATUS: [OPEN, CLOSED, WILL NOT FIX, NOT A BUG] CLOSED FIXED VERSION: 7.1.1 FIXED DATE: November 18, 2022 NOTES ON BUG FIX: Classified at the February 18, 2022 IBIS Open Forum. To be fixed in the next release. The suggestion is to change line 1277 to a Bug. ****************************************************************************** ******************************************************************************