Issue 51097 - win/tcsh: sometimes commands started with $(shell command) do not return
Summary: win/tcsh: sometimes commands started with $(shell command) do not return
Status: CLOSED FIXED
Alias: None
Product: Build Tools
Classification: Code
Component: solenv (show other issues)
Version: current
Hardware: All Windows, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: hjs
QA Contact: issues@tools
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-22 12:25 UTC by hjs
Modified: 2013-08-07 15:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
short sample for hanging shell call (61 bytes, text/plain)
2005-06-23 09:31 UTC, hjs
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description hjs 2005-06-22 12:25:29 UTC
milestone is m111, cygwin dll version 1.5.14
e.g. line 304 (...ls -1...) in target.mk normally works fine but hangs
reproduceable in "javaunohelper/util" here. (aswell standard dmake as dmake
taken from "dmake43p01" - the later just let you see the shell command).

not yet sure what triggers the problem nor if it is just a "pp" (personal problem).
Comment 1 quetschke 2005-06-22 15:53:30 UTC
Try -vr from the dmake43p01 branch. It will echo the shell commands and you
will see where it hangs. Maybe this will give a hint.
Comment 2 hjs 2005-06-23 09:31:53 UTC
Created attachment 27436 [details]
short sample for hanging shell call
Comment 3 hjs 2005-06-23 09:34:47 UTC
some more findings:
- reproduceable only with command that pipe their output (see attached sample)
- not reproduceable when removing -f switch for subshells (see iz50689)

no idea of the root cause yet...
Comment 4 quetschke 2005-06-23 13:44:15 UTC
Hmm, I cannot reproduce.

I saved that file as ttt.mk, sourced a m109 environment (I made sure that -fc is
used in wnt/macros.mk) and did:
$ dmake -f ttt.mk 
echo bla
bla

I have:
$ uname -a
CYGWIN_NT-5.0 lisi 1.5.17(0.129/4/2) 2005-05-25 19:38 i686 unknown unknown Cygwin

Did I miss a part of the recipe?
Comment 5 hjs 2005-06-23 14:28:50 UTC
output of uname -a here:

CYGWIN_NT-5.1 mi-1 1.5.14(0.126/4/2) 2005-04-01 13:40 i686 unknown unknown Cygwin

looks a bit older than you version. it's a clean installation of the default
(stable?) not much older than two weeks.
Comment 6 hjs 2005-06-23 15:46:56 UTC
seems to be timing (initialization of tcsh) related:
$(shell sleep 1; echo bla | grep bla)  -  returns
$(shell echo blubb; echo bla | grep bla)  -  hangs

even better: having both commands in the order above returns for both, order
changed hangs in first... :-/
Comment 7 hjs 2005-06-23 18:12:40 UTC
updated cygwin to 

CYGWIN_NT-5.1 mi-1 1.5.17(0.129/4/2) 2005-05-25 19:38 i686 unknown unknown Cygwin

and the hangs are gone...

sorry for the noise
Comment 8 hjs 2005-06-23 18:13:05 UTC
.