[MacPorts] #45471: cctools @855_1: otool -L crashes on short files

MacPorts noreply at macports.org
Sun Oct 19 15:54:50 PDT 2014


#45471: cctools @855_1: otool -L crashes on short files
--------------------------+------------------------
 Reporter:  ryandesign@…  |      Owner:  jeremyhu@…
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.3.1
 Keywords:                |       Port:  cctools
--------------------------+------------------------
 `otool -L` crashes on short files:

 {{{
 $ echo > /tmp/foo
 $ ls -l /tmp/foo
 -rw-r--r--  1 rschmidt  wheel  1 Oct 19 17:24 /tmp/foo
 $ otool -L /tmp/foo
 Assertion failed: (length >=4 && "Invalid magic number length"), function
 IdentifyFileType, file Path.cpp, line 43.
 Abort trap: 6
 $ port provides $(which otool)
 /Volumes/Data/macports/mavericks/bin/otool is provided by: cctools
 $ port installed cctools
 The following ports are currently installed:
   cctools @855_1+llvm33 (active)
 }}}

 /usr/bin/otool doesn't have this problem:

 {{{
 $ /usr/bin/otool -L /tmp/foo
 /tmp/foo: is not an object file
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/45471>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list