Jump to content

simulation crashed when comparing uvm_object instance to null rhs


Recommended Posts

Hi,

Since I don't find in the class reference the statement that it is illegal that null RHS is used I think it is permitted to do that then.

The comparison was successfully done until the get_type_name was called on the rhs without a null reference check before the method invocation, the simulation crashed finally.

The issue here is that after the comparer initialization between line 1058 and 1067, the scope depth must be greater than 0 so the else branch between line 1072 and 1078 would never run. So done won't be set when rhs == null.

BTW, bit t and static int style are declared but never used. Should these be cleaned up?

Thanks,

Robert

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...