Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unknown load command" in libstd.dylib #99

Closed
jyasskin opened this issue Jul 10, 2010 · 2 comments
Closed

"Unknown load command" in libstd.dylib #99

jyasskin opened this issue Jul 10, 2010 · 2 comments

Comments

@jyasskin
Copy link
Contributor

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.

@jyasskin
Copy link
Contributor Author

http://github.com/jyasskin/rust/commit/d5144998932a3de32c6d0aaa8c5db12a3acf175a seems to fix this, but it doesn't fix mutable-alias-vec.

@graydon
Copy link
Contributor

graydon commented Jul 11, 2010

Nice catch. Strangely I've never see this fault before on OSX, but I'll pick it up once I'm in the office and can cycle on the OSX machine (and check on the contributor paperwork). Thanks!

oli-obk pushed a commit to oli-obk/rust that referenced this issue Jul 19, 2017
various travis cleanups + run miri tests on travis against 4 major targets
kazcw pushed a commit to kazcw/rust that referenced this issue Oct 23, 2018
* Add _mm_loadh_pi

* Add doctest for _mm_loadh_pi

* Add _mm_loadl_pi

* Add _mm_load_ss

* Add _mm_load1_ps and _mm_load_ps1

* Add _mm_load_ps and _mm_loadu_ps

* Add _mm_loadr_ps

* Replace _mm_loadu_ps TODO with explanation

* Tweak expected instructions for _mm_loadl/h_pi on x86

* Try fixing i586 test crash

* Targets i586/i686 generate different code for _mm_loadh_pi
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
modernize the function sections in the reference
rchaser53 pushed a commit to rchaser53/rust that referenced this issue Jan 19, 2019
Aaron1011 pushed a commit to Aaron1011/rust that referenced this issue Oct 26, 2020
bors pushed a commit to rust-lang-ci/rust that referenced this issue Oct 1, 2021
djtech-dev pushed a commit to djtech-dev/rust that referenced this issue Dec 9, 2021
Improve safety of const_int_from_string function by only allowing valid radixes.
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Also:
* Correctly cast before dereferencing a thin pointer to a flexible
  struct
* Correct search for trait type in adt (ignore primitive types and
  pointers)
* Correct the choice between thin and fat pointers in codegen_fat_ptr
  and codegen_ty_ref (and rewrite to use mir pointer metadata)

Co-authored-by: Mark R. Tuttle <mrtuttle@amazon.com>
cgwalters pushed a commit to cgwalters/rust that referenced this issue Nov 26, 2024
`ansi_term` is no longer maintained and for the simple needs here,
`colored` is much better suited anyway.

Fixes rust-lang#99.

Signed-off-by: Zeeshan Ali Khan <zeenix@gmail.com>
cgwalters pushed a commit to cgwalters/rust that referenced this issue Nov 26, 2024
`ansi_term` is no longer maintained and for the simple needs here,
`colored` is much better suited anyway.

Fixes rust-lang#99.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants