You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following test causes Verilator to crash in V3Tristate.cpp:
AstPin* outpinp;
{
AstVar* outModVarp = (AstVar*) nodep->modVarp()->user4p();
// BUG - outModVarp is NULL here
AstNode* outexprp = nodep->exprp()->cloneTree(false); // Note has lvalue() set
outpinp = new AstPin(nodep->fileline(),
nodep->pinNum(),
// CRASH - Null pointer dereference
outModVarp->name(), // should be {var}"__out"
outexprp);
Test case code 'textcase_xz.v':
module testcase_xz (
input clk,
output out
);
reg out;
always @(posedge clk)
begin
if ( clk !== 1'bx && clk !== 1'bz )
begin
out <= ~out;
end
end
endmodule
The text was updated successfully, but these errors were encountered:
Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2013-02-21T11:50:40Z
Thanks for a good small testcase. The crash was easy enough to fix, but it exposed a big test hole with input only tristates that needs fixing. Stay tuned.
Author Name: Jason McMullan (@ezrec)
Original Redmine Issue: 620 from https://www.veripool.org
Original Assignee: Wilson Snyder (@wsnyder)
Verilator: Feb 19, 2013 (f2fb77c)
The following test causes Verilator to crash in V3Tristate.cpp:
Test case code 'textcase_xz.v':
The text was updated successfully, but these errors were encountered: