Skip to content

FFI fails loading dynamic library in 2.5.0 #38288

Closed
dart-lang/samples
#3
@mit-mit

Description

@mit-mit

Repro steps:

Error:

$ dart macos.dart
Unhandled exception:
Invalid argument(s): Failed to load dynamic library (dlopen(libSystem.dylib, 1): image not found)
#0      _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:10:55)
#1      new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:17:12)
#2      system (file:///Users/mit/tmp/samples/ffi/system-command/macos.dart:28:36)
#3      main (file:///Users/mit/tmp/samples/ffi/system-command/macos.dart:9:16)
#4      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:305:19)
#5      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
| ~/tmp/samples/ffi/system-command @ mit-macbookpro3 (mit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions