metacall / builder

An advanced build system based on Buildkit in order to generate compact Docker images with MetaCall runtime.
Apache License 2.0
4 stars 8 forks source link

Bug on finding loaders #30

Closed ashpect closed 2 months ago

ashpect commented 2 months ago

+ DOCKER_OUTPUT=[Mon Aug 26 14:35:26] #7 @Error : DynLink error: libdw.so.1: cannot open shared object file: No such file or directory
[Mon Aug 26 14:35:26] #7 @Error : Failed to load extension: /usr/local/lib/plugins/backtrace_plugin/backtrace_plugin
[Mon Aug 26 14:35:26] #7 @Error : Loader load from configuration invalid load from file
[Mon Aug 26 14:35:26] #7 @Error : Failed to load plugin: /usr/local/lib/plugins/backtrace_plugin/metacall.json
0123456789
+ echo [Mon Aug 26 14:35:26] #7 @Error : DynLink error: libdw.so.1: cannot open shared object file: No such file or directory
 [Mon Aug 26 14:35:26] #7 @Error : Failed to load extension: /usr/local/lib/plugins/backtrace_plugin/backtrace_plugin
 [Mon Aug 26 14:35:26] #7 @Error : Loader load from configuration invalid load from file
 [Mon Aug 26 14:35:26] #7 @Error : Failed to load plugin: /usr/local/lib/plugins/backtrace_plugin/metacall.json
 0123456789
+ tr -d \r\n
+ DOCKER_OUTPUT=[Mon Aug 26 14:35:26] #7 @Error : DynLink error: libdw.so.1: cannot open shared object file: No such file or directory [Mon Aug 26 14:35:26] #7 @Error : Failed to load extension: /usr/local/lib/plugins/backtrace_plugin/backtrace_plugin [Mon Aug 26 14:35:26] #7 @Error : Loader load from configuration invalid load from file [Mon Aug 26 14:35:26] #7 @Error : Failed to load plugin: /usr/local/lib/plugins/backtrace_plugin/metacall.json 0123456789```
ashpect commented 2 months ago

Weirdest bug ever - Commenting the dev test fails the runtime test.

Possible reasons :

  1. Dependency on dev test somehow ??
    • The image used for testing and pulling from dev and testing and we aren't building for backstrace in runtime, so it doesn't work?

Tests :

  1. Add backtrace in runtime to pass with comments, not sure if the issue is fixed yet in core - it will probably fail
  2. Figure out how the older test were passing.
ashpect commented 2 months ago

Fixed

Apparently due to lack of backtrace in runtime, the image doesn't built, BUTT all our prev tests passed ?? it's because the output image was not updated in registry and we ended up using the dev image unknowingly and passing the tests!! Fixed by making diff registries, enabled backtrace and the startup flow for builder cache.