www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/02/13/16:39:39

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:reply-to:in-reply-to:references
:from:date:message-id:subject:to:content-type; q=dns; s=default; b=
cN98pwSK+Fe3JP4oH3m/KcAOvE9aYtiDetXdSrJKUwJ+Lttur+D3N3xrl/nOFtgb
ys3Z1Abk4eeg+VfdWnAbs6rYNe5Qd63EK+16papADKB+8gBAVmGFnY4WF+ViMOo0
E7SKEJsClcQZBXhMrpgl3To2T4m62vIcbJBKh9EmFOg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:reply-to:in-reply-to:references
:from:date:message-id:subject:to:content-type; s=default; bh=1pi
ELEmiZhs90ow77mvm6txnryg=; b=WbD3JsEL8w9r0whGRxXw1gYIwx4M8Arnq4W
DgGUdzk5VxoRELWKEIGMLEVgGTyyl4lnUknQh6INeQMZByHGEMVagDuXWSOL53R3
KWgsAoFfXOu+gsKKJ6WQRhXoT9Yj/IHTXQ3q+WnTwECJiQHULnHajnfwj7hNrbap
n0WzoFcw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
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
Reply-To: fracting AT gmail DOT com
In-Reply-To: <CALd+sZR_gLFR9y_oBDSFVYcJpNbHFpn6zLVh8sFY_pTZhoxcng@mail.gmail.com>
References: <56BF9370 DOT 80303 AT glup DOT org> <CALd+sZR_gLFR9y_oBDSFVYcJpNbHFpn6zLVh8sFY_pTZhoxcng AT mail DOT gmail DOT com>
From: Qian Hong <fracting AT gmail DOT com>
Date: Sun, 14 Feb 2016 05:38:39 +0800
Message-ID: <CALd+sZSF8_43Re8uZp_O=y7TnHKMXjM_-04apEFkHzb1f9KcDA@mail.gmail.com>
Subject: Re: mktemp() fails on Wine 1.9.3 + Cygwin 2.5.0-0.2
To: cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019