From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alex Bochannek Newsgroups: gmane.emacs.devel Subject: CVS Emacs Cygwin crash and browse-url question. Date: Thu, 12 Apr 2007 12:25:29 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1176453526 31855 80.91.229.12 (13 Apr 2007 08:38:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Apr 2007 08:38:46 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 13 10:38:39 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HcHIh-0004hZ-G7 for ged-emacs-devel@m.gmane.org; Fri, 13 Apr 2007 10:38:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HcHMv-00078U-V8 for ged-emacs-devel@m.gmane.org; Fri, 13 Apr 2007 04:42:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hc4zZ-0004TB-3J for emacs-devel@gnu.org; Thu, 12 Apr 2007 15:30:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hc4zW-0004Hr-CS for emacs-devel@gnu.org; Thu, 12 Apr 2007 15:30:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hc4zW-0004HQ-8k for emacs-devel@gnu.org; Thu, 12 Apr 2007 15:29:58 -0400 Original-Received: from adsl-66-124-80-202.dsl.snfc21.pacbell.net ([66.124.80.202] helo=morpheus.lapseofthought.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hc4vJ-0007AE-F0 for emacs-devel@gnu.org; Thu, 12 Apr 2007 15:25:38 -0400 Original-Received: from alexb-lt.jnpr.net (morpheus.lapseofthought.com [172.16.42.16]) by morpheus.lapseofthought.com (8.13.8/8.13.8) with ESMTP id l3CJPUZx022579 for ; Thu, 12 Apr 2007 12:25:31 -0700 (PDT) (envelope-from alex@p9.com) User-Agent: Gnus/5.1100000000000003 (No Gnus v0.6) Emacs/22.0.97 (cygwin) X-Virus-Scanned: by amavisd-new X-detected-kernel: FreeBSD 6.x (1) X-Mailman-Approved-At: Fri, 13 Apr 2007 04:42:54 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:69373 Archived-At: Hello, I have been trying to use CVS Emacs under Cygwin(*) for a while and had experienced frequent SEGVs(**), which led me to stick with EmacsW32. I tried to get it to run reliably again in my environment and finally determined that the root cause of this problem is tool-bar-mode. It seems to have something to do with a string object that has a bogus address in it and the garbage collector trips over it. It's trivial to reproduce(***) and even though I can live just fine without tool-bar-mode I would be happy to help troubleshoot it. CVS Emacs under Cygwin is working quite well for me now, but I noticed that browse-url doesn't work. It seems odd to me that: (defcustom browse-url-browser-function (cond ((memq system-type '(windows-nt ms-dos cygwin)) 'browse-url-default-windows-browser) ... and (defun browse-url-default-windows-browser (url &optional new-window) (interactive (browse-url-interactive-arg "URL: ")) (if (eq system-type 'ms-dos) (if dos-windows-version (shell-command (concat "start " (shell-quote-argument url))) (error "Browsing URLs is not supported on this system")) (w32-shell-execute "open" url))) but obviously none of the w32 functions are included for the Cygwin target. I would like to be able to use the browser configured as default for Windows and that's something that worked really well with EmacsW32 - select a URL, a new tab opens up in Firefox. Obviously, I would rather not run an additional browser under Cygwin and as useful as text-browsers are for some content within an Emacs buffer, an external Firefox is what works well for me. I hope the observation regarding tool-bar-mode is useful and am looking forward to suggestions on the browse-url issue. Thanks, Alex. (*) GNU Emacs 22.0.97.1, X toolkit, Xaw3d scroll bars, CYGWIN_NT-5.1 1.5.24(0.156/4/2), Microsoft Windows XP [Version 5.1.2600] SP1, AttachmateWRQ Reflection X 14.0.0. (**) Program received signal SIGSEGV, Segmentation fault. 0x200f204c in mark_object (arg=536990987) at alloc.c:5515 5515 MARK_INTERVAL_TREE (ptr->intervals); (**) emacs -q; C-h i; keep SPACE depressed until Emacs crashes