Subject: ibischk3

From: [email-masked]
Date: Mon, 8 Mar 1999 15:16:11 -0800 (PST)

----------
X-Sun-Data-Type: text
X-Sun-Data-Description: text
X-Sun-Data-Name: text
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 45

Hi:

I am upgraiding ibis 2.1 parser in hspice to ibis 3.2
It seems to me ibischk3 has problems which ibischk2 did not
have: namely it has memory leaks and
UMR (uninitialised memory read). It does not necesserily mean
any error, but it would be certaintly better to avoid any UMR, etc.

I have attached 2 randomly taken log files (output of purify)
which shows the problems.

Any comments suggestions?
I did not try to fix this myself.

One more thing:
The very 1st version of the parser, V01 (files v01.c, v01.c)
is used for IBIS 1.1 ( why ??? - it was NOT used in IBIS 2.1 )
in the current release (3.2). It is not good because the same IBIS file
may have versions 1.1, or 2.1, or 3.2
(because of the back compatibility). And it should be processed
by the same code (othervise subtle differences in the code
can result in differences in the way how IBIS files are processed by
the purser depending on the version number). IBIS parser 1.1 and 2.1
should be kept for historical purpose only, we do not need 2 or more
parsers for the same file.

Any comments?

thanks

Nik

--------------------------------------
 Nikolai Bannov
 Avant! Corporation 
 46871 Bayside Parkway
 Fremont, CA 94538

 tel: 510-413-8634
 fax: 510-413-8080

 email: [email-masked]
--------------------------------------

----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: pure_ibis3_log1
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 267

****  Purify instrumented _pureibs3 (pid 6327 at Mon Mar  8 14:55:40 1999)
  * Purify 4.1 Solaris 2, Copyright (C) 1992-1997 Rational Software Corp. All rights reserved. 
  * For contact information type: "purify -help"
  * For TTY output, use the option "-windows=no"
  * Command-line: _pureibs3 test2 
  * Options settings: -purify \
    -purify-home=/net/engage/usr2/CM/pure/purify-4.1-solaris2 
  * Purify licensed to ADS SOFTWARE INC
  * Purify checking enabled.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (192 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessWave [cdc.c:272]
	acdc_CheckModelProcess [cdc.c:501]
	acdc_CheckModel [cdc.c:539]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe56c on the stack.
  * Address 0xefffe56c is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (263 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessWave [cdc.c:272]
	acdc_CheckModelProcess [cdc.c:501]
	acdc_CheckModel [cdc.c:539]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe56c on the stack.
  * Address 0xefffe56c is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (192 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessWave [cdc.c:272]
	acdc_CheckModelProcess [cdc.c:504]
	acdc_CheckModel [cdc.c:539]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe56c on the stack.
  * Address 0xefffe56c is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (263 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessWave [cdc.c:272]
	acdc_CheckModelProcess [cdc.c:504]
	acdc_CheckModel [cdc.c:539]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe56c on the stack.
  * Address 0xefffe56c is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (196 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessWave [cdc.c:272]
	acdc_CheckModelProcess [cdc.c:501]
	acdc_CheckModel [cdc.c:540]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe56c on the stack.
  * Address 0xefffe56c is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (278 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessWave [cdc.c:272]
	acdc_CheckModelProcess [cdc.c:501]
	acdc_CheckModel [cdc.c:540]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe56c on the stack.
  * Address 0xefffe56c is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (196 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessWave [cdc.c:272]
	acdc_CheckModelProcess [cdc.c:504]
	acdc_CheckModel [cdc.c:540]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe56c on the stack.
  * Address 0xefffe56c is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (278 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessWave [cdc.c:272]
	acdc_CheckModelProcess [cdc.c:504]
	acdc_CheckModel [cdc.c:540]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe56c on the stack.
  * Address 0xefffe56c is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (193 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessWave [cdc.c:272]
	acdc_CheckModelProcess [cdc.c:501]
	acdc_CheckModel [cdc.c:541]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe56c on the stack.
  * Address 0xefffe56c is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (283 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessWave [cdc.c:272]
	acdc_CheckModelProcess [cdc.c:501]
	acdc_CheckModel [cdc.c:541]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe56c on the stack.
  * Address 0xefffe56c is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (193 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessWave [cdc.c:272]
	acdc_CheckModelProcess [cdc.c:504]
	acdc_CheckModel [cdc.c:541]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe56c on the stack.
  * Address 0xefffe56c is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (283 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessWave [cdc.c:272]
	acdc_CheckModelProcess [cdc.c:504]
	acdc_CheckModel [cdc.c:541]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe56c on the stack.
  * Address 0xefffe56c is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (65 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessTestLoad [cdc.c:196]
	acdc_CheckModelProcess [cdc.c:506]
	acdc_CheckModel [cdc.c:539]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe5ec on the stack.
  * Address 0xefffe5ec is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (56 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessTestLoad [cdc.c:196]
	acdc_CheckModelProcess [cdc.c:506]
	acdc_CheckModel [cdc.c:539]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe5ec on the stack.
  * Address 0xefffe5ec is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (66 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessTestLoad [cdc.c:196]
	acdc_CheckModelProcess [cdc.c:506]
	acdc_CheckModel [cdc.c:540]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe5ec on the stack.
  * Address 0xefffe5ec is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (57 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessTestLoad [cdc.c:196]
	acdc_CheckModelProcess [cdc.c:506]
	acdc_CheckModel [cdc.c:540]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe5ec on the stack.
  * Address 0xefffe5ec is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (65 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessTestLoad [cdc.c:196]
	acdc_CheckModelProcess [cdc.c:506]
	acdc_CheckModel [cdc.c:541]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe5ec on the stack.
  * Address 0xefffe5ec is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
UMR: Uninitialized memory read (57 times):
  * This is occurring while in:
	acdc_Interesction [cdc.c:81]
	acdc_VI_Given_VIC_VR [cdc.c:130]
	acdc_CheckModelProcessTestLoad [cdc.c:196]
	acdc_CheckModelProcess [cdc.c:506]
	acdc_CheckModel [cdc.c:541]
	acdc_CheckAllModels [cdc.c:562]
  * Reading 4 bytes from 0xefffe5ec on the stack.
  * Address 0xefffe5ec is 4 bytes below frame pointer in function acdc_Interesction.

****  Purify instrumented _pureibs3 (pid 6327)  ****
Current file descriptors in use: 5
FIU: file descriptor 0: <stdin>
FIU: file descriptor 1: <stdout>
FIU: file descriptor 2: <stderr>
FIU: file descriptor 26: <reserved for Purify internal use>
FIU: file descriptor 27: <reserved for Purify internal use>

****  Purify instrumented _pureibs3 (pid 6327)  ****
Purify: Searching for all memory leaks...

Memory leaked: 0 bytes (0%); potentially leaked: 0 bytes (0%)

Purify Heap Analysis (combining suppressed and unsuppressed blocks)
                         Blocks      Bytes
              Leaked          0          0
  Potentially Leaked          0          0
              In-Use          0          0
  ----------------------------------------
     Total Allocated          0          0

****  Purify instrumented _pureibs3 (pid 6327)  ****
  * Program exited with status code 0.
  * 18 access errors, 3176 total occurrences.
  * 0 bytes leaked.
  * 0 bytes potentially leaked.
  * Basic memory usage (including Purify overhead):
      806204 code
      111276 data/bss
      352256 heap (peak use)
        4408 stack
  * Shared library memory usage (including Purify overhead):
      135729 libm.so.1_pure_p3_c0_410_551 (shared code)
        5872 libm.so.1_pure_p3_c0_410_551 (private data)
      804233 libc.so.1_pure_p3_c0_410_551 (shared code)
       34892 libc.so.1_pure_p3_c0_410_551 (private data)
        1640 libdl.so.1_pure_p3_c0_410_551 (shared code)
           4 libdl.so.1_pure_p3_c0_410_551 (private data)
        9576 libinternal_stubs.so.1 (shared code)
         324 libinternal_stubs.so.1 (private data)

----------
X-Sun-Data-Type: default
X-Sun-Data-Description: default
X-Sun-Data-Name: pure_ibis3_log2
X-Sun-Charset: us-ascii
X-Sun-Content-Lines: 81

****  Purify instrumented _pureibs3 (pid 6346 at Mon Mar  8 15:02:57 1999)
  * Purify 4.1 Solaris 2, Copyright (C) 1992-1997 Rational Software Corp. All rights reserved. 
  * For contact information type: "purify -help"
  * For TTY output, use the option "-windows=no"
  * Command-line: _pureibs3 series.ibs 
  * Options settings: -purify \
    -purify-home=/net/engage/usr2/CM/pure/purify-4.1-solaris2 
  * Purify licensed to ADS SOFTWARE INC
  * Purify checking enabled.

****  Purify instrumented _pureibs3 (pid 6346)  ****
Current file descriptors in use: 5
FIU: file descriptor 0: <stdin>
FIU: file descriptor 1: <stdout>
FIU: file descriptor 2: <stderr>
FIU: file descriptor 26: <reserved for Purify internal use>
FIU: file descriptor 27: <reserved for Purify internal use>

****  Purify instrumented _pureibs3 (pid 6346)  ****
Purify: Searching for all memory leaks...

Memory leaked: 32 bytes (100%); potentially leaked: 0 bytes (0%)

MLK: 12 bytes leaked in 3 blocks
  * This memory was allocated from:
	malloc         [rtlib.o]
	CMN_malloc     [cmn.c:345]
	CMN_ArgParsePlus [cmn.c:647]
	s_parseVds     [smos.c:265]
	SMOS_ReceiveLine [smos.c:138]
	MDL_ReceiveLine [mdl.c:889]
  * Block of 4 bytes (3 times); last block at 0x107848

MLK: 12 bytes leaked in 3 blocks
  * This memory was allocated from:
	malloc         [rtlib.o]
	CMN_malloc     [cmn.c:345]
	CMN_ArgParsePlus [cmn.c:687]
	s_parseVds     [smos.c:265]
	SMOS_ReceiveLine [smos.c:138]
	MDL_ReceiveLine [mdl.c:889]
  * Block of 4 bytes (3 times); last block at 0x107ec0

MLK: 8 bytes leaked in 2 blocks
  * This memory was allocated from:
	malloc         [rtlib.o]
	CMN_malloc     [cmn.c:345]
	DRVSH_New      [drvsh.c:92]
	MDL_ReceiveLine [mdl.c:713]
	s_sendLineVer3 [parse.c:817]
	PARSE          [parse.c:416]
  * Block of 4 bytes (2 times); last block at 0x107b00

Purify Heap Analysis (combining suppressed and unsuppressed blocks)
                         Blocks      Bytes
              Leaked          8         32
  Potentially Leaked          0          0
              In-Use          0          0
  ----------------------------------------
     Total Allocated          8         32

****  Purify instrumented _pureibs3 (pid 6346)  ****
  * Program exited with status code 0.
  * 0 access errors, 0 total occurrences.
  * 32 bytes leaked.
  * 0 bytes potentially leaked.
  * Basic memory usage (including Purify overhead):
      806204 code
      111276 data/bss
       49152 heap (peak use)
        4416 stack
  * Shared library memory usage (including Purify overhead):
      135729 libm.so.1_pure_p3_c0_410_551 (shared code)
        5872 libm.so.1_pure_p3_c0_410_551 (private data)
      804233 libc.so.1_pure_p3_c0_410_551 (shared code)
       34892 libc.so.1_pure_p3_c0_410_551 (private data)
        1640 libdl.so.1_pure_p3_c0_410_551 (shared code)
           4 libdl.so.1_pure_p3_c0_410_551 (private data)
        9576 libinternal_stubs.so.1 (shared code)
         324 libinternal_stubs.so.1 (private data)