* 000-cygwin-post-install.sh script hangs + mkdir and other commands uses 50% cpu ettal
@ 2014-04-22 17:55 Jeffery Ketner
0 siblings, 0 replies; 2+ messages in thread
From: Jeffery Ketner @ 2014-04-22 17:55 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1884 bytes --]
Hi,
During an update I ran on 4/21/2014 to update some editors, the 000-cygwin-post-install.sh that runs near the end of the installation process seemed to hang. Investigating I saw that the commands like mkdir.exe, ln.exe, chmod.exe that are un In that file were using 50% of my cpu upwards to 100%. The process never finished even after an hour of waiting.
Most recent install (full install + updates) was about a month ago. No problems then.
Tried the following:
1) fresh install (same results)
2) running file manually through cmd line (same results) using -c option only shows the file being run with no other output
3) changed all permissions of the files and directories to be full control (windows) same results
4) Tried different download sites ,same results
Checked the file manually and looked for where it got stuck and it looks as if it never makes it past the following the file it created is size of 0.
<snip>
# Create fstab file if it doesn't exist.
if [ -e "${FSTAB}" -a ! -f "${FSTAB}" ]
then
# Try to move
mv -f "${FSTAB}" "${FSTAB}.orig"
if [ -e "${FSTAB}" -a ! -f "${FSTAB}" ]
then
echo
echo "${FSTAB} is existant but not a file."
echo "Since this file is specifying the mount points, this might"
echo "result in unexpected trouble. Please fix that manually."
echo
fi
fi
if [ ! -e "${FSTAB}" ]
then
# Create fstab default header
cat > ${FSTAB} << EOF
# For a description of the file format, see the Users Guide # http://cygwin.com/cygwin-ug-net/using.html#mount-table
# This is default anyway:
none /cygdrive cygdrive binary,posix=0,user 0 0 EOF Fi
Files attached
Post install file and cygcheck.out (note had to run manually and it never completed. Just showed what is in the attached file)
Regards,
JEFF KETNER
jeffery.ketner@ericsson.com
www.ericsson.com
[-- Attachment #2: cygcheck.out.txt --]
[-- Type: text/plain, Size: 367 bytes --]
C:\cygwin64\bin>cygcheck.exe -s -v -r
Cygwin Configuration Diagnostics
Current System Time: Tue Apr 22 11:53:42 2014
Windows 7 Enterprise Ver 6.1 Build 7601 Service Pack 1
Path: C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Program Files (x86)\Citrix\system32\
[-- Attachment #3: Type: text/plain, Size: 218 bytes --]
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 2+ messages in thread
* 000-cygwin-post-install.sh script hangs + mkdir and other commands uses 50% cpu ettal
@ 2014-04-22 17:51 Jeffery Ketner
0 siblings, 0 replies; 2+ messages in thread
From: Jeffery Ketner @ 2014-04-22 17:51 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1882 bytes --]
Hi,
During an update I ran on 4/21/2014 to update some editors, the 000-cygwin-post-install.sh that runs near the end of the installation process seemed to hang. Investigating I saw that the commands like mkdir.exe, ln.exe, chmod.exe that are un In that file were using 50% of my cpu upwards to 100%. The process never finished even after an hour of waiting.
Most recent install (full install + updates) was about a month ago. No problems then.
Tried the following:
1) fresh install (same results)
2) running file manually through cmd line (same results) using -c option only shows the file being run with no other output
3) changed all permissions of the files and directories to be full control (windows) same results
4) Tried different download sites ,same results
Checked the file manually and looked for where it got stuck and it looks as if it never makes it past the following the file it created is size of 0.
<snip>
# Create fstab file if it doesn't exist.
if [ -e "${FSTAB}" -a ! -f "${FSTAB}" ]
then
# Try to move
mv -f "${FSTAB}" "${FSTAB}.orig"
if [ -e "${FSTAB}" -a ! -f "${FSTAB}" ]
then
echo
echo "${FSTAB} is existant but not a file."
echo "Since this file is specifying the mount points, this might"
echo "result in unexpected trouble. Please fix that manually."
echo
fi
fi
if [ ! -e "${FSTAB}" ]
then
# Create fstab default header
cat > ${FSTAB} << EOF
# For a description of the file format, see the Users Guide # http://cygwin.com/cygwin-ug-net/using.html#mount-table
# This is default anyway:
none /cygdrive cygdrive binary,posix=0,user 0 0 EOF Fi
Files attached
Post install file and cygcheck.out (note had to run manually and it never completed. Just showed what is in the attached file)
Regards,
JEFF KETNER
jeffery.ketner@ericsson.com
www.ericsson.com
[-- Attachment #2: 000-cygwin-post-install.sh --]
[-- Type: application/octet-stream, Size: 4812 bytes --]
#!/bin/bash
#
# Copyright 2008, 2009, 2010, 2012, 2013 Red Hat, Inc.
#
# This file is part of Cygwin.
#
# This software is a copyrighted work licensed under the terms of the
# Cygwin license. Please consult the file "CYGWIN_LICENSE" for
# details.
#
export PATH="/bin:$PATH"
# Uncomment for testing
# SYSCONFDIR="${PWD}"
SYSCONFDIR="${SYSCONFDIR:=/etc}"
FSTAB="${SYSCONFDIR}/fstab"
MTAB="${SYSCONFDIR}/mtab"
FSTABDIR="${SYSCONFDIR}/fstab.d"
DEVDIR=/dev
print_flags ()
{
(( $1 & 0x0002 )) && echo -n "binary" || echo -n "text"
(( $1 & 0x0010 )) && echo -n ",exec"
(( $1 & 0x0040 )) && echo -n ",cygexec"
(( $1 & 0x0100 )) && echo -n ",notexec"
}
# Create fstab file if it doesn't exist.
if [ -e "${FSTAB}" -a ! -f "${FSTAB}" ]
then
# Try to move
mv -f "${FSTAB}" "${FSTAB}.orig"
if [ -e "${FSTAB}" -a ! -f "${FSTAB}" ]
then
echo
echo "${FSTAB} is existant but not a file."
echo "Since this file is specifying the mount points, this might"
echo "result in unexpected trouble. Please fix that manually."
echo
fi
fi
if [ ! -e "${FSTAB}" ]
then
# Create fstab default header
cat > ${FSTAB} << EOF
# For a description of the file format, see the Users Guide
# http://cygwin.com/cygwin-ug-net/using.html#mount-table
# This is default anyway:
none /cygdrive cygdrive binary,posix=0,user 0 0
EOF
fi
# Check for ${FSTABDIR} directory
if [ -e "${FSTABDIR}" -a ! -d "${FSTABDIR}" ]
then
# No mercy. Try to remove.
rm -f "${FSTABDIR}"
if [ -e "${FSTABDIR}" -a ! -d "${FSTABDIR}" ]
then
echo
echo "${FSTABDIR} is existant but not a directory."
echo "Please fix that manually."
echo
exit 1
fi
fi
# Create it if necessary
if [ ! -e "${FSTABDIR}" ]
then
mkdir -m 1777 "${FSTABDIR}"
if [ ! -e "${FSTABDIR}" ]
then
echo
echo "Creating ${FSTABDIR} directory failed."
echo "Please fix that manually."
echo
exit 1
fi
fi
# Check for ${DEVDIR} directory
if [ -e "${DEVDIR}" -a ! -d "${DEVDIR}" ]
then
# No mercy. Try to remove.
rm -f "${DEVDIR}"
if [ -e "${DEVDIR}" -a ! -d "${DEVDIR}" ]
then
echo
echo "${DEVDIR} is existant but not a directory."
echo "Please fix that manually, otherwise you WILL get problems."
echo
exit 1
fi
fi
# Create it if necessary
mkdir -m 1755 "${DEVDIR}" 2> /dev/null
if [ ! -e "${DEVDIR}" ]
then
echo
echo "Creating ${DEVDIR} directory failed."
echo "Please fix that manually, otherwise you WILL get problems."
echo
exit 1
fi
# Check for ${DEVDIR}/shm directory (for POSIX semaphores and POSIX shared mem)
if [ -e "${DEVDIR}/shm" -a ! -d "${DEVDIR}/shm" ]
then
# No mercy. Try to remove.
rm -f "${DEVDIR}/shm"
if [ -e "${DEVDIR}/shm" -a ! -d "${DEVDIR}/shm" ]
then
echo
echo "${DEVDIR}/shm is existant but not a directory."
echo "POSIX semaphores and POSIX shared memory will not work"
echo
fi
fi
# Create it if necessary
if [ ! -e "${DEVDIR}/shm" ]
then
mkdir -m 1777 "${DEVDIR}/shm"
if [ ! -e "${DEVDIR}/shm" ]
then
echo
echo "Creating ${DEVDIR}/shm directory failed."
echo "POSIX semaphores and POSIX shared memory will not work"
echo
fi
else
chmod 1777 "${DEVDIR}/shm"
fi
# Check for ${DEVDIR}/mqueue directory (for POSIX message queues)
if [ -e "${DEVDIR}/mqueue" -a ! -d "${DEVDIR}/mqueue" ]
then
# No mercy. Try to remove.
rm -f "${DEVDIR}/mqueue"
if [ -e "${DEVDIR}/mqueue" -a ! -d "${DEVDIR}/mqueue" ]
then
echo
echo "${DEVDIR}/mqueue is existant but not a directory."
echo "POSIX message queues will not work"
echo
fi
fi
# Create it if necessary
if [ ! -e "${DEVDIR}/mqueue" ]
then
mkdir -m 1777 "${DEVDIR}/mqueue"
if [ ! -e "${DEVDIR}/mqueue" ]
then
echo
echo "Creating ${DEVDIR}/mqueue directory failed."
echo "POSIX message queues will not work"
echo
fi
else
chmod 1777 "${DEVDIR}/mqueue"
fi
# Create /etc/mtab as symlink to /proc/mounts
[ ! -L "${MTAB}" ] && ln -sf /proc/mounts ${MTAB}
# Create default /etc/passwd and /etc/group files
created_passwd=no
created_group=no
if [ ! -e /etc/passwd -a ! -L /etc/passwd ] ; then
mkpasswd -l -c > /etc/passwd
chmod 1644 /etc/passwd
created_passwd=yes
fi
if [ ! -e /etc/group -a ! -L /etc/group ] ; then
mkgroup -l -c > /etc/group
chmod 1644 /etc/group
created_group=yes
fi
cp -fp /etc/group /tmp/group.mkgroup && \
( [ -w /etc/group ] || chmod --silent a+w /etc/group ; ) && \
echo "root:S-1-5-32-544:0:" > /etc/group && \
sed -e '/root:S-1-5-32-544:0:/d' /tmp/group.mkgroup >> /etc/group && \
chmod --silent --reference=/etc/passwd /etc/group
rm -f /tmp/group.mkgroup
# Deferred to be sure root group entry exists
[ "$created_passwd" = "yes" ] && chgrp --silent root /etc/passwd
[ "$created_group" = "yes" ] && chgrp --silent root /etc/group
exit 0
[-- Attachment #3: cygcheck.out.txt --]
[-- Type: text/plain, Size: 367 bytes --]
C:\cygwin64\bin>cygcheck.exe -s -v -r
Cygwin Configuration Diagnostics
Current System Time: Tue Apr 22 11:53:42 2014
Windows 7 Enterprise Ver 6.1 Build 7601 Service Pack 1
Path: C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\Program Files (x86)\Citrix\system32\
[-- Attachment #4: Type: text/plain, Size: 218 bytes --]
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-22 17:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-22 17:55 000-cygwin-post-install.sh script hangs + mkdir and other commands uses 50% cpu ettal Jeffery Ketner
-- strict thread matches above, loose matches on Subject: below --
2014-04-22 17:51 Jeffery Ketner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).