[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
memory errors ....
From: |
arun kv |
Subject: |
memory errors .... |
Date: |
30 Apr 2007 10:57:36 -0000 |
Hi All,
I have implemented a parser using lex and yacc , my lex and yacc files are
named parser.y and scanner.l
(these files are compiled with flex++ and bison++ to make my parser compatible
with C++)
My parser is working fine but ....
The issue is when I run my parser with purify (a memory detection tool ) .It
gives out memory errors in the flex and bison generated source codes
(parser.cpp , parser.h and scanner.h )
The purify errors for the parser are :
IPR :Invalid pointer read , IPW :Invalid pointer write , BSR: Beyond stack read
error
Shown by these variables in parser.cpp
yystate
yyn
yyssp
yyvsp
yyerrstatus
yycharl
For detailed purify log please see the attached file.
What I want to know is that, Is there any way in which I can control these
variables form my lex and yacc files.
Or how else I can fix these memory errors shown by purify.
Best Regards
Arun
parser.log
Description: Binary data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- memory errors ....,
arun kv <=