Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#45992 closed defect (worksforme)

selfupdate from 2.2.0 to 2.3.3 taking over a day to run

Reported by: cfdollak@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: selfupdate Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port:

Description

I am running OSX 10.9.5, Xcode 4.6.3. I started running sudo port -v selfupdate about 32 hours ago. It ran up to

===> making all in src/darwintracelib1.0
/usr/bin/cc -g -O2 -std=c99 -Wextra -Wall   -fPIC -arch x86_64 -arch i386 -DHAVE_CONFIG_H -I/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base/src -I/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base/src -I. -I/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base/vendor/vendor-destroot//opt/local/libexec/macports/include  -c -o access.o access.c

fairly quickly, but has been stuck there ever since. It's mostly been running xcrun during that time, but it occasionally switches to something else and back to xcrun before I can see what it's doing. The xcrun process generally isn't taking up more than 20% of my CPU. Attached is a spindump, in case that helps identify the problem.

Attachments (1)

spindump.txt.gz (138.7 KB) - added by cfdollak@… 9 years ago.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by cfdollak@…

Attachment: spindump.txt.gz added

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

clang is currently waiting on a child process to terminate

clang [11024]
Path:            /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
Architecture:    x86_64
Parent:          make [11023]
Responsible:     Terminal [557]
UID:             0
Task size:       259 pages

  Thread 0x6da7     DispatchQueue 1          priority 31        
  983 __wait4 + 10 (libsystem_kernel.dylib) [0x7fff8b5dfe22]
   *983 ??? (mach_kernel + 4080224) [0xffffff80005e4260]

  Binary Images:
         0x100000000 -        0x101816ff7  clang <0FE74350-5CF7-3712-BE91-21FFEE0801EB> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
      0x7fff8b5ca000 -     0x7fff8b5e6ff7  libsystem_kernel.dylib (2422.115.4) <9EDE872E-2A9E-3A78-8E1D-AB790794A098> /usr/lib/system/libsystem_kernel.dylib
 *0xffffff8000200000 - 0xffffff80007a823a  mach_kernel (2422.115.4) <9477416E-7BCA-3679-AF97-E1EAAD3DD5A0> /mach_kernel

and it looks like that process is xcrun:

Process:         xcrun (changed during sampling) [11027]
Path:            /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
Architecture:    x86_64
Parent:          clang [11024]
Responsible:     Terminal [557]
UID:             0
Task size:       2237 pages (-2113)
CPU Time:        2.462s
Note:            Suspended for 2 samples
...

Can you take a sysdiagnose focused on xcrun instead of just the spindump and file a radar with it at http://bugreport.apple.com by doing:

$ sudo sysdiagnose -q 11027
Last edited 9 years ago by jeremyhu (Jeremy Huddleston Sequoia) (previous) (diff)

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

Resolution: worksforme
Status: newclosed

Also, report the radar number here, so I can followup in the ticket internally, thanks.

Closing as "worksforme" for lack of a "not our bug" resolution.

comment:3 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Cc: jeremyhu@… added

Cc Me!

comment:4 in reply to:  2 Changed 9 years ago by cfdollak@…

Replying to jeremyhu@…:

Also, report the radar number here, so I can followup in the ticket internally, thanks.

Closing as "worksforme" for lack of a "not our bug" resolution.

Thanks for your help. The radar number is 19073245. Also, by the time I got your instructions, I had killed the process, but I restarted it and got the same results. The new xcrun pid was 37353, so I ran sysdiagnose -q 37353, and the spindump from that is attached to the radar.

Note: See TracTickets for help on using tickets.