Hardware is Terasic DE0-Nano, built-in usbblaster, FTDI driver
Executing the following causes a segfault:
cable usbblaster driver=ftdi
bsdl path .
The attached BSDL is in the current directory (.)
Debugging the code reveals the problem to be in the generated vhdl_flex.c, line 1262:
while ( 1 ) / loops until end-of-file is reached /
yy_cp = yyg->yy_c_buf_p;
/* Support of yytext. */ *yy_cp = yyg->yy_hold_char; // SEGFAULT HERE /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = yyg->yy_start;
Bison is 3.0.2 and Flex is 2.5.35.
Version is SVN 2041.
No idea how to fix it, I'm not a bison expert, but happy to test.
Log in to post a comment.