cpc / openasip

Open Application-Specific Instruction Set processor tools (OpenASIP)
http://openasip.org
Other
140 stars 42 forks source link

OperationBehaviorProxy::canBeSimulated() swallows Exceptions silently #207

Open nrother opened 1 year ago

nrother commented 1 year ago

In OperationBehaviorProxy::canBeSimulated()

try {
    initializeBehavior();
} catch (Exception&) {
    if (alwaysReloadBehavior_) uninitializeBehavior();
    return false;
}

(source)

Any exception that might happen during initializeBehavior() is silently discarded. It would be nice to log these to help diagnosing problems.