Skip to content

"Unknown load command" in libstd.dylib #99

Closed
@jyasskin

Description

@jyasskin

On OSX 10.5.8, otool -l libstd.dylib reports:

...
Load command 9
          cmd LC_LOAD_DYLIB
      cmdsize 52
         name /usr/lib/libSystem.B.dylib (offset 24)
   time stamp 0 Wed Dec 31 16:00:00 1969
      current version 0.0.0
compatibility version 0.0.0
Load command 10
      cmd ?(0x00000000) Unknown load command
  cmdsize 0

This causes test/run-pass/mutable-alias-vec.x86 (and probably all others that depend on libstd.dylib) to segfault in dlclose() called by rust_crate_cache::lib::~lib().

I'm digging into macho.ml to see if I can fix it, but I'd be happy if someone got there first. And it's always possible I've misdiagnosed the mutable-alias-vec crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions