Skip to content

erpc call of local fun() fails when the module is not loaded #10205

@RaimoNiskanen

Description

@RaimoNiskanen

Describe the bug
Calling a local fun() over e.g erpc doesn't load the target module.

To Reproduce
ssl_dist_bench_SUITE, especially the test cases in the throughput group under the toplevel group benchmark sometimes fails with a badfun exception when calling erpc:call(B, fun mem/0) from mem_start/0. That seems to happen only occasionally, maybe one out of ten. On my laptop I may have to run the whole throughput group 3 times to be reasonably sure to get a failed test case. The whole group chain that is best known to provoke this is [benchmark,cryptcookie,dist_cryptcookie_inet,throughput].

Expected behavior
Calling a local fun for an unloaded module should load the module just like calling an exported fun(ction).

Affected versions
28.0

Additional context

Metadata

Metadata

Assignees

Labels

bugIssue is reported as a bugteam:VMAssigned to OTP team VM

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions