From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27096 invoked by alias); 13 Feb 2016 21:39:24 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 27080 invoked by uid 89); 13 Feb 2016 21:39:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1604, secondly, wineconsole, H*i:sk:sZR_gLF X-HELO: mail-wm0-f52.google.com Received: from mail-wm0-f52.google.com (HELO mail-wm0-f52.google.com) (74.125.82.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sat, 13 Feb 2016 21:39:22 +0000 Received: by mail-wm0-f52.google.com with SMTP id a4so10140417wme.1 for ; Sat, 13 Feb 2016 13:39:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=Kj7ivhHN5U5eMNrV8YJMQDJeOAsvTGKvK2FK7kRkws4=; b=Ca5n2C4drM9oUDePrcmCQC3MwqkmrPYnMqLZIAOTE4A1HhMHjkrYhQ/th1GVm9QHxv Pf8Cqjiy1PBSECgreTCou17jVKGDM9tZTkaBI531gXBvEo3P6S4SN+KYzJ9opyLVqhUC X+CGgrI+jeOR4x/hrsdAEk0O1nRa51g230lHlx1p+ZyHhPPJUOX5Yo1HxaYaobxAy85r 9IG4vfxcfrRt/OsVeBWGr72Ye8At+/GPhoq5h49h80SFB0cX9z1o3F5STNoi77CwnvfI +6myENF83Ihw22nzIyNIdq3I+wzVwMDXlPESHD+j/+LpVqYHp6FbCjgmLC2EirhonB9q /AVg== X-Gm-Message-State: AG10YORFfai5hUNIWLVy+H2SnDInIYj+SMi0GtuQHp/4RIW1O7kIv+26mb9llfi6HhBwLDsGbcDT7SDR+3NhZw== X-Received: by 10.194.78.37 with SMTP id y5mr8189583wjw.78.1455399559059; Sat, 13 Feb 2016 13:39:19 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.178.21 with HTTP; Sat, 13 Feb 2016 13:38:39 -0800 (PST) Reply-To: fracting@gmail.com In-Reply-To: References: <56BF9370.80303@glup.org> From: Qian Hong Date: Sat, 13 Feb 2016 21:39:00 -0000 Message-ID: Subject: Re: mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2 To: cygwin Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00202.txt.bz2 I'm not able to debug it right now, but if you have time, I would suggest the following approach: Firstly, get two/three strace logs, one from Cygwin 2.3 + Wine, one from Cygwin 2.5 + Wine, and one from Cygwin 2.5 on Windows if you have Windows. Using vimdiff to compare 1.log, 2.log and 3.log, remove/replace some useless noise (like timestamp, process id, etc), vimdiff would give you pretty comparison result, and help you find out which part has changed between different version or between different platform. Secondly, get two WINEDEBUG logs [1]: Run wine with WINEDEBUG=+tid,+pid,+relay like below: WINEDEBUG=+tid,+pid,+relay wineconsole usr/bin/bash >> /tmp/cygwin.good.log (test mktemp inside wineconsole) Search for mktemp.exe and record down the pid number of mktemp.exe, grep the log of mktemp.exe from cygwin.good.log by the tid number. Repeat the above step for /tmp/cygwin.bad.log and compare the good version with the bad version using vimdiff or anything like that. Again, remove/replace noise information like pid numbers, after that vimdiff would provide pretty nice comparison for you. By gather information from the strace log comparison and the WINEDEBUG log comparison, we would be very closed to what's wrong in Wine. Once you need more details log, you might consider more Wine debug channel like WINEDEBUG=+tid,+pid,+relay,+file,+ntdll or something else, see [1] for an introduction. If you are too curious, you are encouraged to download Wine source code and start hacking! [1] https://wiki.winehq.org/Debug_Channels -- 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