From: Shaddy Baddah <lithium-cygwin@shaddybaddah.name>
To: cygwin@cygwin.com
Subject: Odd hang of cc1.exe, when invoking cpp/gcc
Date: Mon, 27 Apr 2020 16:54:29 +1000 [thread overview]
Message-ID: <514e1a5d-7173-c6f0-a205-d8f207befc06@shaddybaddah.name> (raw)
Hi,
First, I want to acknowledge that this could be exclusively a problem
with my Windows 10 desktop.
The problem I am having is when I run a simple gcc command, say gcc
hello.c, the command hangs.
In mintty, ctrl-c won't kill it. And I have to carefully kill the gcc
process taskmgr, then kill the child cc1 process, before returning to
mintty. Otherwise mintty freezes up and I have to manually kill it
too. From console, ctrl-c just works.
This is happening on my Windows 10 desktop that is a corporate build
of Windows. It is the subject of forced updates, lots of BLODA
potential agents, and weird policies.
It doesn't happen on my personal Windows 10 desktop, so I acknowledge
that this will prejudice this attempt for assistance.
But in the hope that there might be a clue as to why this is
happening, I'll expand a bit further. gcc was working fine as recently
as two months ago. Of course there have been Windows updates, and
Cygwin updates performed since. But as I don't use gcc daily, I don't
know which of these might have broke it.
Further, doing an strace seems to me to be a little revealing. Whilst
I see cc1.exe in taskmgr, I do not see the process in strace.
So if I do strace -f gcc hello.c, these are the dwindling lines of
output from strace:
184 6193312 [main] gcc 730 child_info::child_info: subproc_ready 0x2F4
537090 6730402 [main] gcc 730 child_info_spawn::worker: pid 731,
prog_arg /usr/lib/gcc/x86_64-pc-cygwin/9.3.0/cc1.exe, cmd line (null))
1646 6732048 [main] gcc 730 open_shared: name cygpid.731, n 731,
shared 0x160000 (wanted 0x0), h 0x31C, *m 5
269 6732317 [main] gcc 730 time: 1587970202 = time(0x0)
301 6732618 [main] gcc 730 proc_subproc: args: 1, -25504
378 6732996 [main] gcc 730 proc_subproc: returning 1
1984 6734980 [main] gcc 730 proc_subproc: args: 2, -25504
4374 6739354 [main] gcc 730 pinfo::wait: created tracking thread for
pid 731, winpid 0x1668, rd_proc_pipe 0x2FC
478 6739832 [main] gcc 730 proc_subproc: added pid 731 to proc table,
slot 0
355 6740187 [main] gcc 730 proc_subproc: returning 1
3219 6743406 [main] gcc 730 child_info_spawn::worker: spawned windows
pid 5736
2144 6745550 [main] gcc 730 child_info::sync: n 2, waiting for
subproc_ready(0x2F4) and child process(0x308) --- Process 2784 (pid:
730) thread 15060 created
--- Process 2784 (pid: 730) thread 19632 created
After a little while, I see staggered (and continuing) lines like:
--- Process 2784 (pid: 730) thread 17992 exited with status 0x0
--- Process 2784 (pid: 730) thread 2624 exited with status 0x0
--- Process 2784 (pid: 730) thread 18504 exited with status 0x0
Any ideas?
--
Regards,
Shaddy
next reply other threads:[~2020-04-27 6:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-27 6:54 Shaddy Baddah [this message]
2020-04-28 5:23 ` Odd hang of cc1.exe *now isolated somewhat* cpp/gcc Shaddy Baddah
2020-04-28 12:46 ` Eliot Moss
2020-04-29 4:06 ` Odd hang of cc1.exe *now further isolated, potential console issues* cpp/gcc Shaddy Baddah
2020-04-29 4:55 ` Marco Atzeri
2020-04-29 12:38 ` Odd hang of cc1.exe *now further isolated, back to a fork issue* cpp/gcc Shaddy Baddah
2020-05-06 14:29 ` Odd hang of cc1.exe *now isolated to /tmp weirdness* cpp/gcc Shaddy Baddah
2020-05-07 1:19 ` Doug Henderson
2020-05-07 3:44 ` Shaddy Baddah
2020-05-07 9:34 ` Odd hang of cc1.exe *resolved. /tmp/cygwin1.dll. Apologies * cpp/gcc Shaddy Baddah
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=514e1a5d-7173-c6f0-a205-d8f207befc06@shaddybaddah.name \
--to=lithium-cygwin@shaddybaddah.name \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).