Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

activation.type: "launch" - Out-of-process module exits silently on error and signal conditions #339

Open
zafields opened this issue Jul 12, 2017 · 1 comment
Labels

Comments

@zafields
Copy link
Contributor

Out-of-process modules ALWAYS exit silently. This behavior is fine when a program is signaled by the gateway process or exits normally, but becomes problematic when a failure occurs or a signal is generated externally.

This problem has manifested in two ways:

  1. When a process crashes immediately on launch (i.e. unable to load linked library), the gateway will deadlock awaiting the "come alive" ping of the launched process and will not provide any information to the user.
  2. When a process is signaled externally or runtime crashes (i.e. bad memory access), the gateway will terminate without providing any status of the external process or indicating the cause for termination.
    • The error message provided, Error: Time:Wed Jul 12 18:00:56 2017 File:/root/iot-edge/proxy/outprocess/src/module_loaders/outprocess_module.c Func:Outprocess_Destroy Line:955 unable to send destroy control message [0x557584680fa0], continuing with module destroy, does not help a user understand the reason for exit.
@damonbarry
Copy link
Member

To clarify, #371 (already merged), fixes #2, so #1 is the only outstanding issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants