From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15319 invoked by alias); 22 Mar 2013 07:23:18 -0000 Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org Received: (qmail 15231 invoked by uid 89); 22 Mar 2013 07:22:26 -0000 X-Spam-SWARE-Status: No, score=-4.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS,T_MANY_HDRS_LCASE autolearn=ham version=3.3.1 Received: from mailout2.w1.samsung.com (HELO mailout2.w1.samsung.com) (210.118.77.12) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 22 Mar 2013 07:22:20 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MK1000N1WGU3810@mailout2.w1.samsung.com> for insight@sourceware.org; Fri, 22 Mar 2013 07:22:17 +0000 (GMT) Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 97.46.29255.9A60C415; Fri, 22 Mar 2013 07:22:17 +0000 (GMT) Received: from [106.109.9.113] by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MK10055LWH55450@eusync3.samsung.com> for insight@sourceware.org; Fri, 22 Mar 2013 07:22:17 +0000 (GMT) Message-id: <514C06A8.3050102@samsung.com> Date: Fri, 22 Mar 2013 07:23:00 -0000 From: Fedin Pavel User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:10.0) Gecko/20120206 Thunderbird/10.0 MIME-version: 1.0 To: insight@sourceware.org Subject: Insight freezes on Windows 7 Content-type: text/plain; charset=windows-1251; format=flowed Content-transfer-encoding: 7bit X-SW-Source: 2013-q1/txt/msg00035.txt.bz2 Hello! I am trying to use Insight on Windows 7, and have problems. Under certain conditions it freezes and GUI stops responding. This happens after you open and close target selection dialog, and then do one of the following: a) Close main window. b) Call any function which gets reference to Windows HWnd (for example "Print setup" dialog), or open "Select file" dialog (File->Open... for example). c) Use 'Connect to target' option with no target set up. In this case it opens target selection dialog, then if you cancel it it should open MessageBox(), which freezes. Using sequential division method i figured out that the problem pops up because of port_list TCL function. If you comment it out, the problem disappears. More precisely, the problem is caused by the sequence: if {[catch { set fd [::open COM$i: RDWR] } msg]} { <--- this succeeds .... close $fd <--- Close the stream. ... It's even more strange that if you add for example 'puts "Ok!"' right before close call the problem disappears. This problem reproduces on all three possible flavours: 1. Cygwin 2. MinGW 32-bit 3. MinGW 64-bit. Yes, i have to patch the source in order to build (2) and (3). The problem is well reproducible on both last release (from 2009) and current CVS code. Right now i'm digging into Tcl_FSOpenFileChannel() in order to try to understand the true cause of the problem. Can anyone give me a hint ? Does anybody run on Win7 too ? P.S. Sorry if this is wrong list, i tried to post to insight-pr twice, but first time the message was rejected with "do not send spam to us" notice, second time with "this is wrong list" notice. I hope this time will work. -- Kind regards Pavel Fedin Expert engineer, Samsung R&D Institute Rus