[MacPorts] #36490: cctools: lipo assertion failure and crash

MacPorts noreply at macports.org
Fri Oct 5 23:04:39 PDT 2012


#36490: cctools: lipo assertion failure and crash
---------------------------+------------------------
  Reporter:  ryandesign@…  |      Owner:  jeremyhu@…
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.1.2
Resolution:                |   Keywords:
      Port:  cctools       |
---------------------------+------------------------

Comment (by jeremyhu@…):

 This is slightly different than #36081, although it's tripping over the
 same assertion.

 This has to do with the size of the file.  llvm-3.1 doesn't like that it's
 too small.  It tries to read a 4-byte magic number, but your file is only
 3 bytes.

 {{{
 ~ $ /bin/echo -n "1234" > b

 ~ $ /opt/local/bin/lipo -info b
 /opt/local/bin/lipo: can't figure out the architecture type of: b

 ~ $ /bin/echo -n "123" > b

 ~ $ /opt/local/bin/lipo -info b
 Assertion failed: (length >=4 && "Invalid magic number length"), function
 IdentifyFileType, file Path.cpp, line 44.
 Abort trap: 6
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/36490#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list