Project

General

Profile

Bug #1514

Throw a runtime error for registrations that occur after startup

Added by Eric Mikida about 1 month ago. Updated 9 days ago.

Status:
Merged
Priority:
High
Category:
-
Target version:
Start date:
04/19/2017
Due date:
% Done:

0%

Tags:

Description

This specifically comes up for templated entry methods that aren't explicitly instantiated in the ci file. If you forgot to instantiate a version of the templated entry method, the code still compiles and links fine but at runtime, the behavior is undefined and no errors are ever thrown. One quick fix for this behavior would be to at least throw an error if a new registration occurs after startup.

History

#1 Updated by Phil Miller about 1 month ago

  • Target version set to 6.8.0

#2 Updated by Phil Miller about 1 month ago

  • Priority changed from Normal to High

#3 Updated by Phil Miller about 1 month ago

  • Assignee changed from Eric Mikida to Seonmyeong Bak

#4 Updated by Seonmyeong Bak 25 days ago

This issue doesn't happen on multicore version. Even without instantiation of template on ci files, the application is compelled, linked and executed on multicore version.

Investigating this issue.

#5 Updated by Eric Mikida 25 days ago

I think that's just a symptom of the example program I gave you. The call to the entry method that wasn't instantiated was done in the main chare constructor, so it was still during startup. If you move that call to somewhere after startup completes then I suspect multicore will have the same problem.

#6 Updated by Seonmyeong Bak 25 days ago

  • Status changed from New to In Progress

#8 Updated by Seonmyeong Bak 16 days ago

After the initialization is done, the calling the templated entry method in an uninstantiated form leads to CkAbort. Probably this patch helps the issue resolved.

#9 Updated by Seonmyeong Bak 16 days ago

  • Status changed from In Progress to Implemented

#10 Updated by Sam White 9 days ago

  • Status changed from Implemented to Merged

Also available in: Atom PDF