From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by sourceware.org (Postfix) with ESMTPS id 412813858C39 for ; Thu, 30 Sep 2021 02:47:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 412813858C39 Received: by mail-ed1-x531.google.com with SMTP id r18so15978338edv.12 for ; Wed, 29 Sep 2021 19:47:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=JdKmap1FmOhSiX/QPvj+F+S84MWzBzw7r6sXQ8WbRfo=; b=jUzJaTWXBQrtYVWM7+oE6pTsmtHMiX3n8Rsdu8llxHyA7aswzVPreskPLv8uF+gslD M2YzPRl05iq0+kwvW1f6HdCkHD405Mqly2mZskih8P14WIxFhCEsFZXLMZsBm7/5BJEo erTdnPcT8hyK41oDU/oxVKwYbF+SibBCc6kAA9pHo+LOa2exvxAtq1P2hYTfQ2fp72ub tT1T6h2oMjft2zam2Y2B/qwdbQSfCa05mbWDMJVuHRvCP9H0KqyYRtT1rBHtdxrrQizT 74Lw2GtPaMOJCGAYmDdF+JHd9g2seb7HZx4ZlgpLAt6a5l0TR+2k8Oem5j2YrZC2xbTb Ju0Q== X-Gm-Message-State: AOAM531656I8AtDPZ1AgTT9iNVAxrgEbafjkZu7DbWo9Ohde/Ztke5dQ hM9fIsUSatDbMU09FYU06fZl1rVZE4DgMC1QoK0VEV2k X-Google-Smtp-Source: ABdhPJwGyO6+THSSt9qUgQSz4oK+NTIIcVCgQWgIUYNxFZRf9eLh3Lpqs30kXu0aXY0XFU1ap+kQ2BzFtNkmMSDldR8= X-Received: by 2002:a50:d987:: with SMTP id w7mr4143571edj.240.1632970024074; Wed, 29 Sep 2021 19:47:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Stafford Horne Date: Thu, 30 Sep 2021 11:46:49 +0900 Message-ID: Subject: Re: Timeouts using SSH wrapper when tests read /dev/stdout To: GLIBC patches X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Sep 2021 02:47:06 -0000 I haven't thought about this much, but now I am. I guess the issue is that of we are redirecting stdout to a file, we can read it later. If we are redirecting to a pipe like in ssh we cannot read again. If thats correct should we update the tests to be able to work over ssh? Or maybe we should change how the wrapper is invoked for redirects. On Thu, Sep 30, 2021, 6:32 AM Stafford Horne wrote: > Hello, > > For the OpenRISC port I pretty much have all tests passing but there is > one last > problem that I have yet to solve. For the following tests they timeout > when using > the SSH wrapper but the succeed when logged into the host. > > This is from my notes, these are the affected tests: > elf/tst-audit14,works with stdout redirect to file: not over ssh > elf/tst-audit15,works with stdout redirect to file: not over ssh > elf/tst-audit16,works with stdout redirect to file: not over ssh > libio/tst-wfile-sync,works with stdin redirect: not over ssh > iconv/tst-iconv_prog,has redirects works on platform: not over ssh > > For example (elf/tst-audit14), when running the wrapper it essentially > runs: > > ssh 10.0.0.5 elf/tst-audit14 > elf/tst-audit14.out > > In test elf/tst-audit14 it does a read on /dev/stdout and blocks. It seems > since the redirect of stdout is going over the socket it does not end up in > /dev/stdout. > > I have tried forcing a pseudo-terminal with 'ssh -tt' but that seems to > have no > affect. > > Is this expected? > > Any tips would be helpful, has anyone else run into this before? It may > be just > a bug in my architecture. > > -Stafford >