Project

General

Profile

Bug #6329

java.lang.NullPointerException at ru.ispras.microtesk.mmu.translator.MmuTreeWalkerBase.newAttributeRef(MmuTreeWalkerBase.java:940)

Added by Alexander Kamkin about 4 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Normal
Assignee:
Andrei Tatarnikov
Category:
-
Target version:
Start date:
10/07/2015
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

java.lang.NullPointerException
    at ru.ispras.microtesk.mmu.translator.MmuTreeWalkerBase.newAttributeRef(MmuTreeWalkerBase.java:940)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.attributeRef(MmuTreeWalker.java:2082)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.variableAtom(MmuTreeWalker.java:3705)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.variableBitfield(MmuTreeWalker.java:3570)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.variableConcat(MmuTreeWalker.java:3454)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.variable(MmuTreeWalker.java:3365)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.atom(MmuTreeWalker.java:3219)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.expr(MmuTreeWalker.java:2175)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.assignmentStmt(MmuTreeWalker.java:1658)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.statement(MmuTreeWalker.java:1499)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.sequence(MmuTreeWalker.java:1391)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.mmu(MmuTreeWalker.java:1317)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.declaration(MmuTreeWalker.java:342)
    at ru.ispras.microtesk.mmu.translator.grammar.MmuTreeWalker.startRule(MmuTreeWalker.java:205)
    at ru.ispras.microtesk.mmu.translator.MmuTranslator.start(MmuTranslator.java:138)
    at ru.ispras.microtesk.translator.Translator.start(Translator.java:97)
    at ru.ispras.microtesk.MicroTESK.translate(MicroTESK.java:141)
    at ru.ispras.microtesk.MicroTESK.main(MicroTESK.java:74)

History

#1

Updated by Andrei Tatarnikov about 4 years ago

Cannot see why this happens. Added a little check. Need an example to reproduce the crash.

#2

Updated by Andrei Tatarnikov about 4 years ago

Inserted an additional check.

The specification violated the requirement: address argument passed to a buffer must be a variable referring to a structure, whose type matches the type of the buffer's address parameter. It cannot be an expression since the result of an expression is a bit vector and not a structure.

#3

Updated by Andrei Tatarnikov almost 4 years ago

Same stack as in Bug #6326.

Also available in: Atom PDF