* Re: lint: memory error (Digital Unix)
[not found] <888941732.0211033.0@syseca01.demon.co.uk>
@ 1998-03-03 5:00 ` A.van.Kessel
1998-03-08 5:00 ` Gerald A. Feldman
1 sibling, 0 replies; 2+ messages in thread
From: A.van.Kessel @ 1998-03-03 5:00 UTC (permalink / raw)
To: mlb
Maybe you should lint lint first :-)
Could it be a demo-version, with lower limits?
--
Happy hacking,
Adriaan van Kessel.
Ingres DBA, C/Unix hacker
Email: Adriaan.van.Kessel@NotThere.rivm.nl
(remove NotThere. from the above address)
*** Nederlandstalige zachtwaar is een pijn in de aars ***
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: lint: memory error (Digital Unix)
[not found] <888941732.0211033.0@syseca01.demon.co.uk>
1998-03-03 5:00 ` lint: memory error (Digital Unix) A.van.Kessel
@ 1998-03-08 5:00 ` Gerald A. Feldman
1 sibling, 0 replies; 2+ messages in thread
From: Gerald A. Feldman @ 1998-03-08 5:00 UTC (permalink / raw)
mlb@syseca01.demon.co.uk wrote:
>
> I am having a problem running "lint" on Digital Unix V3.2.
>
> The file in use is about 2000 lines, includes a bunch of standard headers
> plus a few local ones. Two bought-in application libraries are used, but I
> have not told lint about them - I was just expecting a load of warnings for
> functions used but not defined.
>
> Whenever I run lint, I get the following error:
>
> /usr/bin/lint: 22650 Memory fault - core dumped
> "", line 0: lint error: unexpected EOF for file (null)
>
> (the 22650 number can vary) - what does this error message mean!?!
>
> If I put in a deliberate syntax error at the start of the file, this
> gets picked up before the core dump, but if it is later it is not.
> By experimenting, it seems that that it is the calls to functions in one of
> the application libraries that are causing problems (if I comment out a few
> such calls, lint gets further before quitting, thus picking up my deliberate
> syntax error).
>
> I have tried using lint options to increase the size of internal lint tables
> ("-N" option in Digital Unix) to no avail.
I think that the version of lint released with V3.2 had a bug in pass2.
To confirm this try running lint with the -c option. If it succeeds, you
need to get a new lint pass 2. (/usr/ccs/lib/lint2). This was fixed in
subsequent releases, and there should be a patch available. Pass1 in
analogous to the compiler, checking syntax and semantics in a single
module. Pass2 essentially checks interfaces accross modules. I think the
problem was that we changed a table by adding the long long data type
inb pass1, and failed to make the same change in pass2. The bug would
show up only when using some data types further down in the table.
(The Digital Unix version of lint is the OSF1 version from IBM).
--
Jerry Feldman <gaf@mediaone.net>
Boston Computer Solutions and Consulting
http://gaf.ne.mediaone.net/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-03-08 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <888941732.0211033.0@syseca01.demon.co.uk>
1998-03-03 5:00 ` lint: memory error (Digital Unix) A.van.Kessel
1998-03-08 5:00 ` Gerald A. Feldman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox