Opened 12 years ago

Closed 12 years ago

#36081 closed defect (fixed)

cctools: lipo assertion failure and crash

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: cctools

Description

lipo provided by the cctools port sometimes has assertion failures and crashes:

$ file /opt/local/lib/io/addons/AsyncRequest/CMakeFiles/progress.marks
/opt/local/lib/io/addons/AsyncRequest/CMakeFiles/progress.marks: ASCII text
$ lipo -info /opt/local/lib/io/addons/AsyncRequest/CMakeFiles/progress.marks
Assertion failed: (length >=4 && "Invalid magic number length"), function IdentifyFileType, file Path.cpp, line 44.
Abort trap: 6
$ which lipo
/opt/local/bin/lipo
$ port provides $(which lipo)
/opt/local/bin/lipo is provided by: cctools
$ port installed cctools
The following ports are currently installed:
  cctools @829_0+llvm31 (active)
$ 

The lipo provided by Xcode doesn't crash; it correctly states:

$ /usr/bin/lipo -info /opt/local/lib/io/addons/AsyncRequest/CMakeFiles/progress.marks
/usr/bin/lipo: can't figure out the architecture type of: /opt/local/lib/io/addons/AsyncRequest/CMakeFiles/progress.marks

Change History (6)

comment:1 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Owner: changed from mfeiri@… to jeremyhu@…
Status: newassigned

What version of cctools do you have in your XCode? IE what is reported by '/usr/bin/as -v' ?

comment:2 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

~ $ /usr/bin/lipo -info text 
/usr/bin/lipo: can't figure out the architecture type of: text

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

Can you please try rebuilding cctools? It may need a revbump to pick up newer dyld_headers

comment:3 in reply to:  1 ; Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to jeremyhu@…:

What version of cctools do you have in your XCode? IE what is reported by '/usr/bin/as -v' ?

It's Xcode 4.4.1 with latest command line tools (no updates shown in Downloads section).

$ /usr/bin/as -v
Apple Inc version cctools-829, GNU assembler version 1.38

comment:4 in reply to:  3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Wait, no, it was on the Lion machine with Xcode 4.3.3.

$ /usr/bin/as -v
Apple Inc version cctools-822, GNU assembler version 1.38

comment:5 in reply to:  2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to jeremyhu@…:

Can you please try rebuilding cctools? It may need a revbump to pick up newer dyld_headers

In fact that worked! Thanks.

comment:6 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: assignedclosed

Thanks. r97648

Note: See TracTickets for help on using tickets.