Opened 7 years ago

Closed 7 years ago

#54232 closed defect (worksforme)

port command "freezing" after xcodebuild

Reported by: lbschenkel (Leonardo Brondani Schenkel) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.4.1
Keywords: Cc:
Port:

Description

Steps to reproduce:

  1. Clone the branch referenced by https://github.com/macports/macports-ports/pull/486
  2. cd emulators/free42
  3. port -d destroot

Observed behaviour:

  1. xcodebuild will be invoked, will print ** BUILD SUCCEEDED ** and exit
  2. The process tclsh8.5 /opt/local/bin/port will be in a "frozen" state and unresponsive to Ctrl+C
  3. After approximate 3 minutes, the process will "unfreeze" by itself
  4. xcodebuild will be invoked again, behaviours 1-3 will repeat

This is 100% reproducible in my machine. Every time port freezes, xcodebuild already exited. This can be confirmed by manually invoking it in the work/free42-macports-2.0.2/mac directory:

/usr/bin/xcodebuild  -alltargets -configuration 'Release Decimal' build INSTALL_PATH=/Applications/MacPorts OBJROOT=build/ SYMROOT=build/ MACOSX_DEPLOYMENT_TARGET=10.12 ARCHS=i386 SDKROOT="" GCC_VERSION=com.apple.compilers.llvm.clang.1_0 CLANG_CXX_LIBRARY="libc++"

The command above always immediately returns to the prompt when finished.

I have been unable to figure out why this is happening. I'm attaching a debug log from my machine.

Attachments (1)

debug.log (387.0 KB) - added by lbschenkel (Leonardo Brondani Schenkel) 7 years ago.

Download all attachments as: .zip

Change History (4)

Changed 7 years ago by lbschenkel (Leonardo Brondani Schenkel)

Attachment: debug.log added

comment:1 Changed 7 years ago by raimue (Rainer Müller)

See also: https://lists.macports.org/pipermail/macports-dev/2017-May/035812.html

This has been reported multiple times before (#49647, #45609, macports-users), but we were unable to detect the cause and it seems like it also happens outside of MacPorts, so it might be a general problem with xcodebuild.

The recommend solution is to reboot your Mac.

comment:2 Changed 7 years ago by lbschenkel (Leonardo Brondani Schenkel)

I'm the author of the linked post. :-)

comment:3 Changed 7 years ago by raimue (Rainer Müller)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.