s1s0 / toped

Cross platform, open source IC layout editor
http://www.toped.org.uk/
GNU General Public License v2.0
15 stars 8 forks source link

TELL: segmentation fault with #pragma fullreset #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1.) start Toped without configuration
2.) write into commandline
    #pragma fullreset

Original issue reported on code.google.com by analogc...@gmx.net on 30 Mar 2012 at 8:01

GoogleCodeExporter commented 9 years ago
Just  syntax error on Windows

Original comment by gaitukevich.s@gmail.com on 30 Mar 2012 at 8:09

GoogleCodeExporter commented 9 years ago
I can see "Segmentation fault (core dumped)" but only on release version. Can 
you confirm this?

Original comment by krustev....@gmail.com on 31 Mar 2012 at 11:14

GoogleCodeExporter commented 9 years ago
Fixed in r2115.
Armin, please check it and update the Issue accordingly.

Original comment by krustev....@gmail.com on 31 Mar 2012 at 2:26

GoogleCodeExporter commented 9 years ago
works fine now ;)

by the way, what does "#pragma prereset" stand for? It doesn't produce a crash 
but some warnings

<= line 1: col 9: Unexpected symbol
<= line 1: col 10: variable not defined in this scope
<= line 1: col 17: syntax error, unexpected end of command/file, expecting '='

Anyway, I'll close the issue
best 
armin

Original comment by analogc...@gmx.net on 31 Mar 2012 at 7:04

GoogleCodeExporter commented 9 years ago

Original comment by krustev....@gmail.com on 1 Apr 2012 at 12:21

GoogleCodeExporter commented 9 years ago
Parser crashes with a line like this:
foreach(int i; int list {1,2,3,4,5}) echo(i);
It is all due to the implementation of 
parsercmd::cmdBLOCK* parsercmd::cmdBLOCK::cleaner(bool fullreset)
done in r2115

It is asserting if called from any block apart from the main one - which is the 
case when the parser gets an error within a nested block.

Original comment by krustev....@gmail.com on 15 Apr 2012 at 11:16

GoogleCodeExporter commented 9 years ago
The troubles in Comments 6 should be fixed by r2128

Original comment by krustev....@gmail.com on 15 Apr 2012 at 6:30

GoogleCodeExporter commented 9 years ago

Original comment by krustev....@gmail.com on 15 Apr 2012 at 6:30