alliance-support '1998
BUG in graal


Jason Schonberg (schon@mips.com)
Thu, 24 Sep 1998 15:18:05 -0700 (PDT)

GMC_create.c prints the name of a transistor. If the transistor name is NULL, graal core dumps. Compiled from source alliance-3.2c-sources.tar.gz on Solaris 2.6. schon@lightyear:~/alliance 24 uname -a SunOS lightyear 5.6 Generic_105181-06 sun4u sparc To recreate, run graal and create a transistor with no name. A patch is included below. Jason Schonberg schon@mips.com _____ schon@lightyear:~/alliance 25 diff -u alliance/sources/graal/GMC_create.c.old alliance/sources/graal/GMC_create.c --- alliance/sources/graal/GMC_create.c.old Thu Sep 24 15:12:26 1998 +++ alliance/sources/graal/GMC_create.c Thu Sep 24 14:41:14 1998 @@ -339,8 +339,10 @@ } GraalCreateFigureMbk(); - -fprintf( stdout, "Ici %s\n", GraalTransistorName ); + if (GraalTransistorName!=NULL) + { + fprintf( stdout, "Ici %s\n", GraalTransistorName ); + } Transistor = addphseg( GraalFigureMbk, GraalTransistorType,

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 22 March 2001.