From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bill Farmer Newsgroups: gmane.emacs.bugs Subject: bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit Date: Wed, 26 Nov 2014 17:52:13 +0000 Message-ID: <5476134D.7040200@yahoo.co.uk> References: <54746314.6010403@yahoo.co.uk> <83fvd7p4x0.fsf@gnu.org> <83a93fp089.fsf@gnu.org> <547513EF.30709@yahoo.co.uk> <831toqpqq9.fsf@gnu.org> <5475BADC.3000705@yahoo.co.uk> <83vbm2nehb.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020304090302040105050508" X-Trace: ger.gmane.org 1417024407 25476 80.91.229.3 (26 Nov 2014 17:53:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2014 17:53:27 +0000 (UTC) Cc: 19181@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 26 18:53:21 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XtgmD-000752-IN for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Nov 2014 18:53:17 +0100 Original-Received: from localhost ([::1]:35346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtgmD-0002kP-6n for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Nov 2014 12:53:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xtgm4-0002eg-Cv for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 12:53:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xtgly-0008Tw-5l for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 12:53:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xtgly-0008Ts-2R for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 12:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xtglx-0004Ls-P2 for bug-gnu-emacs@gnu.org; Wed, 26 Nov 2014 12:53:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bill Farmer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Nov 2014 17:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19181 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19181-submit@debbugs.gnu.org id=B19181.141702434016674 (code B ref 19181); Wed, 26 Nov 2014 17:53:01 +0000 Original-Received: (at 19181) by debbugs.gnu.org; 26 Nov 2014 17:52:20 +0000 Original-Received: from localhost ([127.0.0.1]:46465 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XtglH-0004Kr-DR for submit@debbugs.gnu.org; Wed, 26 Nov 2014 12:52:20 -0500 Original-Received: from nm40-vm9.bullet.mail.ir2.yahoo.com ([212.82.97.177]:43829) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XtglF-0004Kf-CJ for 19181@debbugs.gnu.org; Wed, 26 Nov 2014 12:52:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1417024336; bh=zvfK649pxdP0RI4ss+MLOBJh4gci5EUxi4/9g0jTOYY=; h=Date:From:To:CC:Subject:References:In-Reply-To:From:Subject; b=p1EmJRShJOgJp1jXJO6PJKnKyRsF4haThDtSMcGPBM7RvXNjUCja7Hn5gMWrKP22fILUSoc603L6ddtjYOhPLoxm1TJgYrpMdiydjzEQi2j1kiZj1dn6aEi8hJ8NVEoGJXVfKtfPpjkedvkL1BccTOMmzXAmtJD+MUqpKjrIojfLc9/s9JvqsBadrbmtbPIwpAPc/+N6FGmgPxxzgupQCc4OWfjKPDQj1J3ml7By8x3R1luRgRwaWucXvkvgHQuhl+1G6E6IkVAjikiScN6fToMulvFrHQVG4XHSKwuuQt2A9iVXh1euSZ+wvIWD+80QCQALltN3mJ3EnAzxKArDtw== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.co.uk; b=eiUoRzDzJxxRRY/Bnl3L+pbQIVANWcImF8SIJBx6odKCWTrpUJ5TfrdxOS+gAyXM0koIzGD+5qV88qygCVoywCGc+p4SfFInGx3zNu/qhvBfdDbtSW0XYlGcD+0HcxfeniYYkldVUUCxRVcxtPAyvn4ZkRtcBH2LEjimE/yywd5QtcRJW7CTqNb38NYa6mEaYAoW/XIU0BG8raJ9ymfwPkyQN6OaIAXC06Cz3OvIOp+Jd2g8ZyqCIbDs3DVH1Sk9N4C3sfVVJUHZ86g9oA7EUKDJV3bzoHNyyfZzIP5MrggdwQjEVgnTJCmaz+PkykNNVxM1kIWPx+CNZhP6SNs4Sw==; Original-Received: from [212.82.98.127] by nm40.bullet.mail.ir2.yahoo.com with NNFMP; 26 Nov 2014 17:52:16 -0000 Original-Received: from [46.228.39.95] by tm20.bullet.mail.ir2.yahoo.com with NNFMP; 26 Nov 2014 17:52:16 -0000 Original-Received: from [127.0.0.1] by smtp132.mail.ir2.yahoo.com with NNFMP; 26 Nov 2014 17:52:16 -0000 X-Yahoo-Newman-Id: 263628.56446.bm@smtp132.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: C9MIGYoVM1lkWaA.my7Q0tB_egrUEbLL_oSx0fuze__Hjv. ih7zogdPY9eOwlRBZ5Z0lhLNt7E_Uo0E6BQ41RoulhDZGJ3ja3N8EvQCqcYy 6j7NviQ69e1FSjncxMsitWoEzUhdqvyGxp.HjbuYedaw493jbAjIyQjjmlnn edA_teswhpkPeDPHJTamK1r_wGmuyMhip1qveBCMO6Nt9d4EDRRCbInQ1bqA R2RqyKklJpmKgsEDIluH_00cnv6lAdQZ5j7myMcJhozPnC4U9kxYg1QUiVNO o0.ypfAUMh.NGioBla2ngdjBNh0NPvEgCGBr6uXEZ8oohZZwlJceVuG8irH_ x6.8mR0gQ4wxWQSfo8Z0SdyHDnf4jbpdv3gxEJp4LFXJIKraScFYYKLf87.K BrPylNYliKi.w4rWDbXCNj2uxN5DUaCudO5yuRKtrtxOO.3EHNwfC0kYImIe ubnCfwMax0aGlQ5MyXdy0C0fdsnTPeuW5uHo11juKHQymK1dWvX50jsLzTS5 cLU710Qx_YoxyizP0vJ5AuHIgV_bFGFsKKPJbW1cZ32pbedKGIoLMDaIxV59 gCryz9CkbqKcMG.DmRt.p9bRykyI- X-Yahoo-SMTP: ee.cljuswBBg4qLvZiTB75urubCs2umPc2oS User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <83vbm2nehb.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96632 Archived-At: This is a multi-part message in MIME format. --------------020304090302040105050508 Content-Type: multipart/alternative; boundary="------------050601090202080903090304" --------------050601090202080903090304 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit It does not seem to make any difference what file, I was using the grep-changelog file in the bin folder for testing, but any text or source file seems to cause the problem. I was visiting the file by dragging and dropping it into the emacs window. Visiting a file using the menu or 'C-x C-f' does not cause the problem. Starting emacs with emacs -Q crashes if a file is visited. I have attached a traceback from the zlib-available-p function. I couldn't paste it here because it contains null characters (^@). Regards Bill Farmer On 26/11/2014 15:55, Eli Zaretskii wrote: >> Date: Wed, 26 Nov 2014 11:34:52 +0000 >> From: Bill Farmer >> CC: dmoncayo@gmail.com, 19181@debbugs.gnu.org >> >> I have downloaded a built version of zlib1.dll from the zlib web site >> (http://zlib.net) and copied the file into the bin folder of the emacs 24.4 >> distribution. This fixes the problem, as this version of zlib does not have a >> dependency on libgcc_s_dw2-1.dll. > Great, so your problem is solved. I've now mentioned zlib1.dll in > etc/PROBLEMS as the potential source of such crashes. > > However, I'd still like to understand why Emacs loads zlib1.dll when > you visit a file. Could you please help me figure that out? > > First, does that happen with any file, or just with a few particular > ones, and if the latter, then which files trigger that? > > Second, how do you visit that file, exactly? "C-x C-f", via the menu > bar, something else? > > And finally, does Emacs load zlib1.dll if you invoke it as "emacs -Q"? > If "emacs -Q" doesn't load zlib1.dll, can you try finding the > customization in your ~/.emacs that causes this? > > There are only 2 functions in core Emacs that might load zlib: > zlib-available-p and zlib-decompress-region. So another way of > finding out why zlib is being loaded is to "M-x debug-on-entry" both > these functions, and when Emacs pops up the Lisp backtrace, see who > called them. > > Thanks. --------------050601090202080903090304 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit It does not seem to make any difference what file, I was using the grep-changelog file in the bin folder for testing, but any text or source file seems to cause the problem. I was visiting the file by dragging and dropping it into the emacs window. Visiting a file using the menu or 'C-x C-f' does not cause the problem. Starting emacs with emacs -Q crashes if a file is visited. I have attached a traceback from the zlib-available-p function. I couldn't paste it here because it contains null characters (^@).

Regards
Bill Farmer

On 26/11/2014 15:55, Eli Zaretskii wrote:
Date: Wed, 26 Nov 2014 11:34:52 +0000
From: Bill Farmer <williamjfarmer@yahoo.co.uk>
CC: dmoncayo@gmail.com, 19181@debbugs.gnu.org

I have downloaded a built version of zlib1.dll from the zlib web site
(http://zlib.net) and copied the file into the bin folder of the emacs 24.4
distribution. This fixes the problem, as this version of zlib does not have a
dependency on libgcc_s_dw2-1.dll.
Great, so your problem is solved.  I've now mentioned zlib1.dll in
etc/PROBLEMS as the potential source of such crashes.

However, I'd still like to understand why Emacs loads zlib1.dll when
you visit a file.  Could you please help me figure that out?

First, does that happen with any file, or just with a few particular
ones, and if the latter, then which files trigger that?

Second, how do you visit that file, exactly?  "C-x C-f", via the menu
bar, something else?

And finally, does Emacs load zlib1.dll if you invoke it as "emacs -Q"?
If "emacs -Q" doesn't load zlib1.dll, can you try finding the
customization in your ~/.emacs that causes this?

There are only 2 functions in core Emacs that might load zlib:
zlib-available-p and zlib-decompress-region.  So another way of
finding out why zlib is being loaded is to "M-x debug-on-entry" both
these functions, and when Emacs pops up the Lisp backtrace, see who
called them.

Thanks.

--------------050601090202080903090304-- --------------020304090302040105050508 Content-Type: text/plain; charset=windows-1252; name="Backtrace.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Backtrace.txt" Debugger entered--entering a function: * zlib-available-p() byte-code("\300\301!\205\f=00\301 \205\f=00\302\207" [fboundp zlib-avai= lable-p "gzip"] 2) (defvar url-mime-encoding-string (byte-code "\300\301!\205\f=00\301 \20= 5\f=00\302\207" [fboundp zlib-available-p "gzip"] 2) ("d:/Images/emacs/em= acs-24.4/share/emacs/24.4/lisp/url/url-vars.elc" . 6787)) require(url-vars) byte-code("\300\301!\210\300\302!\210\303\304\305\"\210\306\307\310\311= #\210\306\312\313\314#\207" [require url-vars auth-source autoload url-sc= heme-get-property "url-methods" byte-code "\300\301\302\"\207" [defalias = url-type--cmacro #[(_cl-whole-arg cl-x) "\301\302\303\304\211\211=08&=06\= 207" [cl-x cl--defsubst-expand (cl-x) (cl-block url-type (or (and (memq .= =2E. cl-struct-url-tags)) (error "%s accessing a non-%s" (quote url-type)= (quote url))) (aref cl-x 1)) nil] 7]] 3 "\300\301\302\303#\207" [put url= -type compiler-macro url-type--cmacro] 4] 4) require(url-parse) byte-code("\300\301!\210\300\302!\210\303\304\305\"\210\303\306\305\"\2= 10\303\307\310\"\207" [require url-parse url-vars autoload timezone-parse= -date "timezone" timezone-make-date-arpa-standard mail-header-extract "ma= ilheader"] 3) url-hexify-string("D:") mapconcat(url-hexify-string ("D:" "Images" "emacs" "emacs-24.4" "bin" "= grep-changelog") "/") w32-handle-dropped-file(# "D:\\Images\\emacs\\em= acs-24.4\\bin\\grep-changelog") apply(w32-handle-dropped-file # "D:\\Images\\ema= cs\\emacs-24.4\\bin\\grep-changelog") (closure (t) (&rest args) (apply (quote w32-handle-dropped-file) (quote= #) args))("D:\\Images\\emacs\\emacs-24.4\\bin\\gr= ep-changelog") mapc((closure (t) (&rest args) (apply (quote w32-handle-dropped-file) (= quote #) args)) ("D:\\Images\\emacs\\emacs-24.4\\b= in\\grep-changelog")) w32-drag-n-drop((drag-n-drop (# 192 (61 . 364) 1= 0304786 nil 192 (6 . 4) nil (61 . 296) (9 . 17)) ("D:\\Images\\emacs\\ema= cs-24.4\\bin\\grep-changelog"))) call-interactively(w32-drag-n-drop nil nil) command-execute(w32-drag-n-drop) --------------020304090302040105050508--