Skip to content

abc crashes if genlib library is in a read-only directory and no super is available #58

@kmurray

Description

@kmurray

Originally reported on Google Code with ID 65

What steps will reproduce the problem?
1.  Put genlib library in a read-only directory
2.  Execute "read-library <genlib_library>
3.  Crash.


Please provide any additional information below.

Simple error:  abc_with_bb_support/src/map/mapper/mapperLib.c
line 184:
   pFile = fopen( FileNameGenlib, "w" );
is followed by
   Mio_WriteLibrary( pFile, pLib, 0 );

without any check for pFile == NULL.  pFile == NULL should generate an error message
and fail gracefully instead of crashing.  Ideally, in the case that the super library
can't be written, abc should make an attempt to change the super library path to the
current working directory, or maybe that should be the default, as there is no particular
reason for the temporary auto-generated super library to be in the same location as
the original genlib library.

Reported by rtedwards8 on 2013-07-24 15:24:50

Metadata

Metadata

Assignees

Labels

ABCABC Logic Optimization & Technology Mapping ToolStalebugIncorrect behaviour

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions