* bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit
@ 2014-11-25 11:08 Bill Farmer
2014-11-25 17:26 ` Eli Zaretskii
0 siblings, 1 reply; 15+ messages in thread
From: Bill Farmer @ 2014-11-25 11:08 UTC (permalink / raw)
To: 19181
[-- Attachment #1: Type: text/plain, Size: 4497 bytes --]
Hi
In the file ~/etc/PROBLEMS is a mention of potential problems with
libgcc_s_dw2-1.dll. I have an installation of MinGW on this windows
machine which is in my PATH, as do many other emacs users, I would
imagine. If I rename libgcc_s_dw2-1.dll in my MinGW installation, emacs
works fine and does not crash on exit. However, this breaks MinGW. So I
checked for mentions of libgcc in the emacs executables:
Bill@CYNTHIA /d/Images/emacs/emacs-24.4
$ find . -name "*.dll" -exec strings -f {} \; | grep libgcc
./bin/libXpm.dll: libgcc_s_dw2-1.dll
Bill@CYNTHIA /d/Images/emacs/emacs-24.4
$ find . -name "*.exe" -exec strings -f {} \; | grep libgcc
./bin/addpm.exe: libgcc_s_dw2-1.dll
./bin/ctags.exe: libgcc_s_dw2-1.dll
./bin/ebrowse.exe: libgcc_s_dw2-1.dll
./bin/emacs-24.4.exe: libgcc_s_dw2-1.dll
./bin/emacs.exe: libgcc_s_dw2-1.dll
./bin/emacsclient.exe: libgcc_s_dw2-1.dll
./bin/emacsclientw.exe: libgcc_s_dw2-1.dll
./bin/etags.exe: libgcc_s_dw2-1.dll
./bin/runemacs.exe: libgcc_s_dw2-1.dll
./libexec/emacs/24.4/i686-pc-mingw32/cmdproxy.exe: libgcc_s_dw2-1.dll
./libexec/emacs/24.4/i686-pc-mingw32/ddeclient.exe: libgcc_s_dw2-1.dll
./libexec/emacs/24.4/i686-pc-mingw32/hexl.exe: libgcc_s_dw2-1.dll
./libexec/emacs/24.4/i686-pc-mingw32/movemail.exe: libgcc_s_dw2-1.dll
./libexec/emacs/24.4/i686-pc-mingw32/profile.exe: libgcc_s_dw2-1.dll
./libexec/emacs/24.4/i686-pc-mingw32/update-game-score.exe:
libgcc_s_dw2-1.dll
Every executable file in the emacs version 24.4 windows installation has
a reference to this dll. I don't think this problem is fixable without
building my own version from source. I use the binary version to avoid
this. I will have to revert to the previous version intil someone does a
build without this problem.
Regards
Bill
In GNU Emacs 24.4.1 (i686-pc-mingw32)
of 2014-10-24 on LEG570
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/usr'
Important settings:
value of $LANG: ENG
locale-coding-system: cp1252
Major mode: Fundamental
Minor modes in effect:
delete-selection-mode: t
show-paren-mode: t
cua-mode: t
tooltip-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <menu-bar> <help-menu> <about-emacs>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> M-x
r e p <tab> o <tab> r <tab> <return>
Recent messages:
Loading cua-base...done
Loading paren...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list... [2 times]
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
help-fns mail-prsvr mail-utils help-mode easymenu saveplace delsel paren
cua-base cus-start cus-load time-date tooltip electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp
w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice
loaddefs button faces cus-face macroexp files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process w32notify w32
multi-tty emacs)
Memory information:
((conses 8 85268 6784)
(symbols 32 18620 0)
(miscs 32 81 107)
(strings 16 12741 3702)
(string-bytes 1 316673)
(vectors 8 9842)
(vector-slots 4 389888 5490)
(floats 8 64 490)
(intervals 28 256 41)
(buffers 508 14))
[-- Attachment #2: Type: text/html, Size: 5962 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit
2014-11-25 11:08 bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit Bill Farmer
@ 2014-11-25 17:26 ` Eli Zaretskii
[not found] ` <5474C91A.3010007@yahoo.co.uk>
2014-11-25 19:03 ` Dani Moncayo
0 siblings, 2 replies; 15+ messages in thread
From: Eli Zaretskii @ 2014-11-25 17:26 UTC (permalink / raw)
To: Bill Farmer, Dani Moncayo; +Cc: 19181
> Date: Tue, 25 Nov 2014 11:08:04 +0000
> From: Bill Farmer <williamjfarmer@yahoo.co.uk>
>
> In the file ~/etc/PROBLEMS is a mention of potential problems with
> libgcc_s_dw2-1.dll.
Do you have a problem that resembles what etc/PROBLEMS describes? If
so, please describe your problem in detail here. In particular,
please tell which optional DLLs do you have installed that depend on
libgcc_s_dw2-1.dll (how to check that is described below).
> I have an installation of MinGW on this windows
> machine which is in my PATH, as do many other emacs users, I would
> imagine. If I rename libgcc_s_dw2-1.dll in my MinGW installation, emacs
> works fine and does not crash on exit. However, this breaks MinGW.
You are not supposed to rename that DLL to solve the problem. Did you
try the solution suggested by etc/PROBLEMS?
> So I checked for mentions of libgcc in the emacs executables:
>
> Bill@CYNTHIA /d/Images/emacs/emacs-24.4
> $ find . -name "*.dll" -exec strings -f {} \; | grep libgcc
> ./bin/libXpm.dll: libgcc_s_dw2-1.dll
>
> Bill@CYNTHIA /d/Images/emacs/emacs-24.4
> $ find . -name "*.exe" -exec strings -f {} \; | grep libgcc
> ./bin/addpm.exe: libgcc_s_dw2-1.dll
> ./bin/ctags.exe: libgcc_s_dw2-1.dll
> ./bin/ebrowse.exe: libgcc_s_dw2-1.dll
> ./bin/emacs-24.4.exe: libgcc_s_dw2-1.dll
> ./bin/emacs.exe: libgcc_s_dw2-1.dll
> ./bin/emacsclient.exe: libgcc_s_dw2-1.dll
> ./bin/emacsclientw.exe: libgcc_s_dw2-1.dll
> ./bin/etags.exe: libgcc_s_dw2-1.dll
> ./bin/runemacs.exe: libgcc_s_dw2-1.dll
> ./libexec/emacs/24.4/i686-pc-mingw32/cmdproxy.exe: libgcc_s_dw2-1.dll
> ./libexec/emacs/24.4/i686-pc-mingw32/ddeclient.exe: libgcc_s_dw2-1.dll
> ./libexec/emacs/24.4/i686-pc-mingw32/hexl.exe: libgcc_s_dw2-1.dll
> ./libexec/emacs/24.4/i686-pc-mingw32/movemail.exe: libgcc_s_dw2-1.dll
> ./libexec/emacs/24.4/i686-pc-mingw32/profile.exe: libgcc_s_dw2-1.dll
> ./libexec/emacs/24.4/i686-pc-mingw32/update-game-score.exe: libgcc_s_dw2-1.dll
>
> Every executable file in the emacs version 24.4 windows installation has
> a reference to this dll.
The fact that 'strings' finds the name of the DLL in the executable
doesn't mean the executable depends on that DLL. It most probably
means that the debug info refers to it.
To check whether a .exe program or a DLL actually depends on
libgcc_s_dw2-1.dll, use this command:
objdump -x FOO.exe | grep "DLL Name:"
This will show all the DLLs that FOO.exe depends on.
Alternatively, use the Dependency Walker (http://www.dependencywalker.com/).
> I don't think this problem is fixable without
> building my own version from source. I use the binary version to avoid
> this.
Please describe the problem in detail, I don't think we have enough
information yet to understand what is going on.
Meanwhile, Dani, could you please check which of the binaries in your
upload, if any, depends on libgcc_s_dw2-1.dll?
Thanks.
^ permalink raw reply [flat|nested] 15+ messages in thread
* bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit
[not found] ` <5474C91A.3010007@yahoo.co.uk>
@ 2014-11-25 18:58 ` Eli Zaretskii
0 siblings, 0 replies; 15+ messages in thread
From: Eli Zaretskii @ 2014-11-25 18:58 UTC (permalink / raw)
To: Bill Farmer; +Cc: 19181
[Please keep the bug address on the CC list.]
> Date: Tue, 25 Nov 2014 18:23:22 +0000
> From: Bill Farmer <williamjfarmer@yahoo.co.uk>
>
> The problem I have with emacs is that it crashes on exit if a file has been
> visited. If emacs is quit immediately with no other actions other than quit, it
> does not crash. This is a virgin installation of emacs with no additional dlls,
> I had not even got around to moving my additional files in site-lisp. The only
> dll in the installation is libXpm.dll. This problem is similar to that
> mentioned in etc/PROBLEMS. I can't fix the problem as described here because I
> have not added any additional dlls.
Could it be that you have some of the additional DLLs somewhere on
PATH?
Can you see which DLLs Emacs loads after you visit a file? One way of
doing that is to use the Process Explorer program from SysInternals.
> The windows error report says:
>
> Faulting application name: emacs.exe, version: 24.4.0.0, time stamp: 0x544a8d9a
> Faulting module name: libgcc_s_dw2-1.dll, version: 0.0.0.0, time stamp:
> 0x525049a5
> Exception code: 0x40000015
> Fault offset: 0x000148fe
> Faulting process id: 0xeac
> Faulting application start time: 0x01d008d7f7fa4d51
> Faulting application path: D:\Images\emacs\emacs-24.4\bin\emacs.exe
> Faulting module path: C:\MinGW\bin\libgcc_s_dw2-1.dll
Which version of MinGW GCC do you have installed?
>
> This is very similar to the problem reported here:
> http://emacs.1067599.n5.nabble.com/Emacs-crashes-when-I-try-to-quit-td76908.html.
>
> I have checked using objdump, none of the executable files in emacs have a
> dependency on libgcc_s_dw2-1.dll. This is as expected, as emacs works fine if I
> rename this file in MinGW. I also tried renaming libXpm.dll in the emacs
> installation. This made no difference, it still crashes on exit.
My suspicion is that Emacs loads some other DLL which depends on
libgcc_s_dw2-1.dll. Looking at the DLLs loaded into the Emacs process
after you visit a file might shed some light on this.
> The problem would appear to be that emacs loads libgcc_s_dw2-1.dll, if a file
> is visited, and if libgcc_s_dw2-1.dll can be found, and this causes a crash on
> exit as per etc/PROBLEMS.
But since you say that Emacs works OK without libgcc_s_dw2-1.dll, what
happens is probably a bit more complicated.
^ permalink raw reply [flat|nested] 15+ messages in thread
* bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit
2014-11-25 17:26 ` Eli Zaretskii
[not found] ` <5474C91A.3010007@yahoo.co.uk>
@ 2014-11-25 19:03 ` Dani Moncayo
2014-11-25 19:08 ` Eli Zaretskii
1 sibling, 1 reply; 15+ messages in thread
From: Dani Moncayo @ 2014-11-25 19:03 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 19181, Bill Farmer
[-- Attachment #1: Type: text/plain, Size: 645 bytes --]
> To check whether a .exe program or a DLL actually depends on
> libgcc_s_dw2-1.dll, use this command:
>
> objdump -x FOO.exe | grep "DLL Name:"
>
> This will show all the DLLs that FOO.exe depends on.
> Meanwhile, Dani, could you please check which of the binaries in your
> upload, if any, depends on libgcc_s_dw2-1.dll?
I've followed your advice above, and I don't see any dependency on
'libgcc_s_dw2-1.dll'.
FWIW, I'm attaching a report of the DLL dependencies in the Emacs 24.4
binary, made with:
$ find . -type f \( -name "*.dll" -o -name "*.exe" \) -print -exec
bash -c "objdump -x {} | grep -i 'dll name:'" \;
--
Dani Moncayo
[-- Attachment #2: report.txt --]
[-- Type: text/plain, Size: 2529 bytes --]
./bin/addpm.exe
DLL Name: ADVAPI32.DLL
DLL Name: KERNEL32.dll
DLL Name: msvcrt.dll
DLL Name: msvcrt.dll
DLL Name: OLE32.dll
DLL Name: SHELL32.DLL
DLL Name: USER32.dll
./bin/ctags.exe
DLL Name: ADVAPI32.DLL
DLL Name: KERNEL32.dll
DLL Name: msvcrt.dll
DLL Name: msvcrt.dll
./bin/ebrowse.exe
DLL Name: ADVAPI32.DLL
DLL Name: KERNEL32.dll
DLL Name: msvcrt.dll
DLL Name: msvcrt.dll
./bin/emacs-24.4.exe
DLL Name: ADVAPI32.DLL
DLL Name: COMCTL32.DLL
DLL Name: COMDLG32.DLL
DLL Name: GDI32.dll
DLL Name: KERNEL32.dll
DLL Name: MPR.DLL
DLL Name: msvcrt.dll
DLL Name: OLE32.dll
DLL Name: SHELL32.DLL
DLL Name: USER32.dll
DLL Name: USP10.DLL
DLL Name: WINMM.DLL
DLL Name: WINSPOOL.DRV
./bin/emacs.exe
DLL Name: ADVAPI32.DLL
DLL Name: COMCTL32.DLL
DLL Name: COMDLG32.DLL
DLL Name: GDI32.dll
DLL Name: KERNEL32.dll
DLL Name: MPR.DLL
DLL Name: msvcrt.dll
DLL Name: OLE32.dll
DLL Name: SHELL32.DLL
DLL Name: USER32.dll
DLL Name: USP10.DLL
DLL Name: WINMM.DLL
DLL Name: WINSPOOL.DRV
./bin/emacsclient.exe
DLL Name: ADVAPI32.DLL
DLL Name: COMCTL32.DLL
DLL Name: KERNEL32.dll
DLL Name: msvcrt.dll
DLL Name: msvcrt.dll
DLL Name: USER32.dll
DLL Name: WSOCK32.DLL
./bin/emacsclientw.exe
DLL Name: ADVAPI32.DLL
DLL Name: COMCTL32.DLL
DLL Name: KERNEL32.dll
DLL Name: msvcrt.dll
DLL Name: msvcrt.dll
DLL Name: USER32.dll
DLL Name: WSOCK32.DLL
./bin/etags.exe
DLL Name: ADVAPI32.DLL
DLL Name: KERNEL32.dll
DLL Name: msvcrt.dll
DLL Name: msvcrt.dll
./bin/libXpm.dll
DLL Name: crtdll.dll
DLL Name: GDI32.dll
DLL Name: KERNEL32.dll
DLL Name: msvcrt.dll
./bin/runemacs.exe
DLL Name: KERNEL32.dll
DLL Name: msvcrt.dll
DLL Name: msvcrt.dll
DLL Name: USER32.dll
./libexec/emacs/24.4/i686-pc-mingw32/cmdproxy.exe
DLL Name: KERNEL32.dll
DLL Name: msvcrt.dll
DLL Name: msvcrt.dll
DLL Name: USER32.dll
./libexec/emacs/24.4/i686-pc-mingw32/ddeclient.exe
DLL Name: KERNEL32.dll
DLL Name: msvcrt.dll
DLL Name: USER32.dll
./libexec/emacs/24.4/i686-pc-mingw32/hexl.exe
DLL Name: KERNEL32.dll
DLL Name: msvcrt.dll
DLL Name: msvcrt.dll
./libexec/emacs/24.4/i686-pc-mingw32/movemail.exe
DLL Name: ADVAPI32.DLL
DLL Name: KERNEL32.dll
DLL Name: msvcrt.dll
DLL Name: msvcrt.dll
DLL Name: WSOCK32.DLL
./libexec/emacs/24.4/i686-pc-mingw32/profile.exe
DLL Name: ADVAPI32.DLL
DLL Name: KERNEL32.dll
DLL Name: msvcrt.dll
DLL Name: msvcrt.dll
./libexec/emacs/24.4/i686-pc-mingw32/update-game-score.exe
DLL Name: ADVAPI32.DLL
DLL Name: KERNEL32.dll
DLL Name: msvcrt.dll
DLL Name: msvcrt.dll
^ permalink raw reply [flat|nested] 15+ messages in thread
* bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit
2014-11-25 19:03 ` Dani Moncayo
@ 2014-11-25 19:08 ` Eli Zaretskii
2014-11-25 19:11 ` Dani Moncayo
2014-11-25 21:01 ` Óscar Fuentes
0 siblings, 2 replies; 15+ messages in thread
From: Eli Zaretskii @ 2014-11-25 19:08 UTC (permalink / raw)
To: Dani Moncayo; +Cc: 19181, williamjfarmer
> Date: Tue, 25 Nov 2014 20:03:00 +0100
> From: Dani Moncayo <dmoncayo@gmail.com>
> Cc: Bill Farmer <williamjfarmer@yahoo.co.uk>, 19181@debbugs.gnu.org
>
> I've followed your advice above, and I don't see any dependency on
> 'libgcc_s_dw2-1.dll'.
>
> FWIW, I'm attaching a report of the DLL dependencies in the Emacs 24.4
> binary, made with:
>
> $ find . -type f \( -name "*.dll" -o -name "*.exe" \) -print -exec
> bash -c "objdump -x {} | grep -i 'dll name:'" \;
No dependencies, as expected. Thanks.
Btw, which version of GCC did you use to build this binary?
Bill, this indicates that the root cause for the problem, or at least
the way to investigate it, is on your machine. As I wrote earlier, I
suspect that Emacs loads some DLL at runtime which depends on
libgcc_s_dw2-1.dll. Please try to identify that DLL.
^ permalink raw reply [flat|nested] 15+ messages in thread
* bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit
2014-11-25 19:08 ` Eli Zaretskii
@ 2014-11-25 19:11 ` Dani Moncayo
2014-11-25 23:42 ` Bill Farmer
2014-11-25 21:01 ` Óscar Fuentes
1 sibling, 1 reply; 15+ messages in thread
From: Dani Moncayo @ 2014-11-25 19:11 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 19181, Bill Farmer
> Btw, which version of GCC did you use to build this binary?
GCC 4.7.2
And FWIW:
$ gcc -v
Using built-in specs.
COLLECT_GCC=c:\mingw\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.7.2/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.7.2/configure
--enable-languages=c,c++,ada,fortran,objc,obj-c++
--disable-sjlj-exceptions --with-dwarf2 --enable-shared
--enable-libgomp --disable-win32-registry --enable-libstdcxx-debug
--disable-build-poststage1-with-cxx
--enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.7.2 (GCC)
--
Dani Moncayo
^ permalink raw reply [flat|nested] 15+ messages in thread
* bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit
2014-11-25 19:08 ` Eli Zaretskii
2014-11-25 19:11 ` Dani Moncayo
@ 2014-11-25 21:01 ` Óscar Fuentes
2014-11-26 3:42 ` Eli Zaretskii
1 sibling, 1 reply; 15+ messages in thread
From: Óscar Fuentes @ 2014-11-25 21:01 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 19181, williamjfarmer
FYI: MinGW-w64 recently made changes to its runtime to address this
problem. In my experience (not with Emacs, with Tcl/Tk) there are no
more crashes on application exit.
^ permalink raw reply [flat|nested] 15+ messages in thread
* bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit
2014-11-25 19:11 ` Dani Moncayo
@ 2014-11-25 23:42 ` Bill Farmer
2014-11-26 3:47 ` Eli Zaretskii
0 siblings, 1 reply; 15+ messages in thread
From: Bill Farmer @ 2014-11-25 23:42 UTC (permalink / raw)
To: Dani Moncayo, Eli Zaretskii; +Cc: 19181
[-- Attachment #1: Type: text/plain, Size: 1873 bytes --]
I have done a plain vanilla build of emacs 24.4 with my version of MinGW:
$ gcc -v
Using built-in specs.
COLLECT_GCC=c:\MinGW\bin\gcc.exe
COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.8.1/lto-wrapper.exe
Target: mingw32
Configured with: ../gcc-4.8.1/configure --prefix=/mingw --host=mingw32
--build=m
ingw32 --without-pic --enable-shared --enable-static --with-gnu-ld
--enable-lto
--enable-libssp --disable-multilib
--enable-languages=c,c++,fortran,objc,obj-c++
,ada --disable-sjlj-exceptions --with-dwarf2 --disable-win32-registry
--enable-l
ibstdcxx-debug --enable-version-specific-runtime-libs
--with-gmp=/usr/src/pkg/gm
p-5.1.2-1-mingw32-src/bld
--with-mpc=/usr/src/pkg/mpc-1.0.1-1-mingw32-src/bld --
with-mpfr= --with-system-zlib --with-gnu-as --enable-decimal-float=yes
--enable-
libgomp --enable-threads --with-libiconv-prefix=/mingw32
--with-libintl-prefix=/
mingw --disable-bootstrap LDFLAGS=-s CFLAGS=-D_USE_32BIT_TIME_T
Thread model: win32
gcc version 4.8.1 (GCC)
Configured using:
`configure --prefix=/d/c/emacs/build/usr'
I cannot reproduce the crash on exit problem with this version. It does
not include the libXpm.dll file.
Regards
Bill Farmer
On 25/11/2014 19:11, Dani Moncayo wrote:
>> Btw, which version of GCC did you use to build this binary?
> GCC 4.7.2
>
> And FWIW:
>
> $ gcc -v
> Using built-in specs.
> COLLECT_GCC=c:\mingw\bin\gcc.exe
> COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.7.2/lto-wrapper.exe
> Target: mingw32
> Configured with: ../gcc-4.7.2/configure
> --enable-languages=c,c++,ada,fortran,objc,obj-c++
> --disable-sjlj-exceptions --with-dwarf2 --enable-shared
> --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug
> --disable-build-poststage1-with-cxx
> --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
> Thread model: win32
> gcc version 4.7.2 (GCC)
>
>
[-- Attachment #2: Type: text/html, Size: 2536 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit
2014-11-25 21:01 ` Óscar Fuentes
@ 2014-11-26 3:42 ` Eli Zaretskii
0 siblings, 0 replies; 15+ messages in thread
From: Eli Zaretskii @ 2014-11-26 3:42 UTC (permalink / raw)
To: Óscar Fuentes; +Cc: 19181, williamjfarmer
> From: Óscar Fuentes <ofv@wanadoo.es>
> Cc: Dani Moncayo <dmoncayo@gmail.com>, 19181@debbugs.gnu.org, williamjfarmer@yahoo.co.uk
> Date: Tue, 25 Nov 2014 22:01:08 +0100
>
> FYI: MinGW-w64 recently made changes to its runtime to address this
> problem.
I presume it's an upstream fix that I was asked to test.
Anyway, this has nothing to do with crashes when the binary does not
depend on libgcc_s_dw2-1.dll. Some other factor is at work here.
^ permalink raw reply [flat|nested] 15+ messages in thread
* bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit
2014-11-25 23:42 ` Bill Farmer
@ 2014-11-26 3:47 ` Eli Zaretskii
2014-11-26 10:06 ` Bill Farmer
2014-11-26 11:34 ` Bill Farmer
0 siblings, 2 replies; 15+ messages in thread
From: Eli Zaretskii @ 2014-11-26 3:47 UTC (permalink / raw)
To: Bill Farmer; +Cc: 19181
> Date: Tue, 25 Nov 2014 23:42:39 +0000
> From: Bill Farmer <williamjfarmer@yahoo.co.uk>
> CC: 19181@debbugs.gnu.org
>
> I have done a plain vanilla build of emacs 24.4 with my version of MinGW:
>
> $ gcc -v
> Using built-in specs.
> COLLECT_GCC=c:\MinGW\bin\gcc.exe
> COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.8.1/lto-wrapper.exe
> Target: mingw32
> Configured with: ../gcc-4.8.1/configure --prefix=/mingw --host=mingw32 -
> -build=m
> ingw32 --without-pic --enable-shared --enable-static --with-gnu-ld --enable-lto
> --enable-libssp --disable-multilib -
> -enable-languages=c,c++,fortran,objc,obj-c++
> ,ada --disable-sjlj-exceptions --with-dwarf2 --disable-win32-registry -
> -enable-l
> ibstdcxx-debug --enable-version-specific-runtime-libs -
> -with-gmp=/usr/src/pkg/gm
> p-5.1.2-1-mingw32-src/bld --with-mpc=/usr/src/pkg/mpc-1.0.1-1-mingw32-src/bld -
> -
> with-mpfr= --with-system-zlib --with-gnu-as --enable-decimal-float=yes -
> -enable-
> libgomp --enable-threads --with-libiconv-prefix=/mingw32 -
> -with-libintl-prefix=/
> mingw --disable-bootstrap LDFLAGS=-s CFLAGS=-D_USE_32BIT_TIME_T
> Thread model: win32
> gcc version 4.8.1 (GCC)
>
> Configured using:
> `configure --prefix=/d/c/emacs/build/usr'
>
> I cannot reproduce the crash on exit problem with this version. It does not
> include the libXpm.dll file.
Please try to find the DLLs loaded into the Emacs binary that does
crash. I don't see any other way of finding out what caused it.
Somewhere on your system there is a DLL that depends on
libgcc_s_dw2-1.dll, and finding it is the way to solve this riddle.
Thanks.
^ permalink raw reply [flat|nested] 15+ messages in thread
* bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit
2014-11-26 3:47 ` Eli Zaretskii
@ 2014-11-26 10:06 ` Bill Farmer
2014-11-26 11:34 ` Bill Farmer
1 sibling, 0 replies; 15+ messages in thread
From: Bill Farmer @ 2014-11-26 10:06 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 19181
[-- Attachment #1.1: Type: text/plain, Size: 2635 bytes --]
I have used the Sysinternals process explorer,
(http://technet.microsoft.com/en-us/sysinternals/bb896653), to determine
the loaded dlls. Unfortunately it does not show a dynamic dependency
tree. This shows that when a file is visited, the distribution version
of emacs 24.4 loads zlib1.dll from the MinGW installation and
libgcc_s_dw2-1.dll also from the MinGW installation. These are the only
non-microsoft dlls I can see. The version of emacs 24.4 I built does not
load any non-microsoft dlls. I have attached four text files showing the
dlls loaded by the distribution version of emacs 24.4 when no files have
been visited, the dlls loaded by the distribution version after a file
has been visited, the dlls loaded by the locally built version of emacs
24.4 when no files have been visited, and the dlls loaded by the locally
built version of emacs 24.4 after a file have been visited.
Hope this helps.
Regards
Bill Farmer
On 26/11/2014 03:47, Eli Zaretskii wrote:
>> Date: Tue, 25 Nov 2014 23:42:39 +0000
>> From: Bill Farmer <williamjfarmer@yahoo.co.uk>
>> CC: 19181@debbugs.gnu.org
>>
>> I have done a plain vanilla build of emacs 24.4 with my version of MinGW:
>>
>> $ gcc -v
>> Using built-in specs.
>> COLLECT_GCC=c:\MinGW\bin\gcc.exe
>> COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.8.1/lto-wrapper.exe
>> Target: mingw32
>> Configured with: ../gcc-4.8.1/configure --prefix=/mingw --host=mingw32 -
>> -build=m
>> ingw32 --without-pic --enable-shared --enable-static --with-gnu-ld --enable-lto
>> --enable-libssp --disable-multilib -
>> -enable-languages=c,c++,fortran,objc,obj-c++
>> ,ada --disable-sjlj-exceptions --with-dwarf2 --disable-win32-registry -
>> -enable-l
>> ibstdcxx-debug --enable-version-specific-runtime-libs -
>> -with-gmp=/usr/src/pkg/gm
>> p-5.1.2-1-mingw32-src/bld --with-mpc=/usr/src/pkg/mpc-1.0.1-1-mingw32-src/bld -
>> -
>> with-mpfr= --with-system-zlib --with-gnu-as --enable-decimal-float=yes -
>> -enable-
>> libgomp --enable-threads --with-libiconv-prefix=/mingw32 -
>> -with-libintl-prefix=/
>> mingw --disable-bootstrap LDFLAGS=-s CFLAGS=-D_USE_32BIT_TIME_T
>> Thread model: win32
>> gcc version 4.8.1 (GCC)
>>
>> Configured using:
>> `configure --prefix=/d/c/emacs/build/usr'
>>
>> I cannot reproduce the crash on exit problem with this version. It does not
>> include the libXpm.dll file.
> Please try to find the DLLs loaded into the Emacs binary that does
> crash. I don't see any other way of finding out what caused it.
> Somewhere on your system there is a DLL that depends on
> libgcc_s_dw2-1.dll, and finding it is the way to solve this riddle.
>
> Thanks.
[-- Attachment #1.2: Type: text/html, Size: 3300 bytes --]
[-- Attachment #2: emacs.exe.nofile-distr.txt --]
[-- Type: text/plain, Size: 3317 bytes --]
Process PID CPU Description Company Name
System Idle Process 0 97.69
csrss.exe 476
wininit.exe 548
csrss.exe 3148
winlogon.exe 2424
explorer.exe 1636 Windows Explorer Microsoft Corporation
AsusAudioCenter.exe 2328 AsusAudioCenter CMedia
emacs.exe 3912 GNU Emacs: The extensible self-documenting text editor Free Software Foundation
Process: emacs.exe Pid: 3912
Name Description Company Name Version
ADVAPI32.DLL Advanced Windows 32 Base API Microsoft Corporation 6.1.7601.18247
CFGMGR32.dll Configuration Manager DLL Microsoft Corporation 6.1.7601.17621
COMCTL32.DLL User Experience Controls Library Microsoft Corporation 6.10.7601.17514
COMDLG32.DLL Common Dialogs DLL Microsoft Corporation 6.1.7601.17514
CRYPTBASE.dll Base cryptographic API DLL Microsoft Corporation 6.1.7600.16385
DEVOBJ.dll Device Information Set DLL Microsoft Corporation 6.1.7601.17621
DSOUND.dll DirectSound Microsoft Corporation 6.1.7600.16385
dwmapi.dll Microsoft Desktop Window Manager API Microsoft Corporation 6.1.7600.16385
emacs.exe GNU Emacs: The extensible self-documenting text editor Free Software Foundation 24.4.0.0
GDI32.dll GDI Client DLL Microsoft Corporation 6.1.7601.18577
HsSrv.dll HsSrv Dynamic Link Library C-Media Electronics Inc. 1.0.10.917
IMM32.DLL Multi-User Windows IMM32 API Client DLL Microsoft Corporation 6.1.7601.17514
kernel32.dll Windows NT BASE API Client DLL Microsoft Corporation 6.1.7601.18409
KERNELBASE.dll Windows NT BASE API Client DLL Microsoft Corporation 6.1.7601.18409
locale.nls
LPK.dll Language Pack Microsoft Corporation 6.1.7601.18177
MPR.DLL Multiple Provider Router DLL Microsoft Corporation 6.1.7600.16385
MSCTF.dll MSCTF Server DLL Microsoft Corporation 6.1.7600.16385
msvcrt.dll Windows NT CRT DLL Microsoft Corporation 7.0.7600.16385
ntdll.dll NT Layer DLL Microsoft Corporation 6.1.7601.18247
ntdll.dll NT Layer DLL Microsoft Corporation 6.1.7601.18247
OLE32.dll Microsoft OLE for Windows Microsoft Corporation 6.1.7601.17514
OLEAUT32.dll Microsoft Corporation 6.1.7601.18640
POWRPROF.dll Power Profile Helper DLL Microsoft Corporation 6.1.7600.16385
RPCRT4.dll Remote Procedure Call Runtime Microsoft Corporation 6.1.7601.18532
sechost.dll Host for SCM/SDDL/LSA Lookup APIs Microsoft Corporation 6.1.7600.16385
SETUPAPI.dll Windows Setup API Microsoft Corporation 6.1.7601.17514
SHELL32.dll Windows Shell Common Dll Microsoft Corporation 6.1.7601.18517
SHLWAPI.dll Shell Light-weight Utility Library Microsoft Corporation 6.1.7601.17514
SortDefault.nls
SspiCli.dll Security Support Provider Interface Microsoft Corporation 6.1.7601.18637
StaticCache.dat
USER32.dll Multi-User Windows USER API Client DLL Microsoft Corporation 6.1.7601.17514
USP10.dll Uniscribe Unicode script processor Microsoft Corporation 1.626.7601.18454
uxtheme.dll Microsoft UxTheme Library Microsoft Corporation 6.1.7600.16385
VERSION.dll Version Checking and File Installation Libraries Microsoft Corporation 6.1.7600.16385
WINMM.DLL MCI API DLL Microsoft Corporation 6.1.7601.17514
WINSPOOL.DRV Windows Spooler Driver Microsoft Corporation 6.1.7601.17514
wow64.dll Win32 Emulation on NT64 Microsoft Corporation 6.1.7601.18409
wow64cpu.dll AMD64 Wow64 CPU Microsoft Corporation 6.1.7601.18409
wow64win.dll Wow64 Console and Win32 API Logging Microsoft Corporation 6.1.7601.18409
[-- Attachment #3: emacs.exe.loadfile-distr.txt --]
[-- Type: text/plain, Size: 3535 bytes --]
Process PID CPU Description Company Name
System Idle Process 0 72.48
csrss.exe 476
wininit.exe 548
csrss.exe 3148 0.39
winlogon.exe 2424
explorer.exe 1636 Windows Explorer Microsoft Corporation
AsusAudioCenter.exe 2328 AsusAudioCenter CMedia
emacs.exe 3912 GNU Emacs: The extensible self-documenting text editor Free Software Foundation
Process: emacs.exe Pid: 3912
Name Description Company Name Version
ADVAPI32.DLL Advanced Windows 32 Base API Microsoft Corporation 6.1.7601.18247
CFGMGR32.dll Configuration Manager DLL Microsoft Corporation 6.1.7601.17621
COMCTL32.DLL User Experience Controls Library Microsoft Corporation 6.10.7601.17514
COMDLG32.DLL Common Dialogs DLL Microsoft Corporation 6.1.7601.17514
CRYPTBASE.dll Base cryptographic API DLL Microsoft Corporation 6.1.7600.16385
DEVOBJ.dll Device Information Set DLL Microsoft Corporation 6.1.7601.17621
DSOUND.dll DirectSound Microsoft Corporation 6.1.7600.16385
dwmapi.dll Microsoft Desktop Window Manager API Microsoft Corporation 6.1.7600.16385
emacs.exe GNU Emacs: The extensible self-documenting text editor Free Software Foundation 24.4.0.0
GDI32.dll GDI Client DLL Microsoft Corporation 6.1.7601.18577
HsSrv.dll HsSrv Dynamic Link Library C-Media Electronics Inc. 1.0.10.917
IMM32.DLL Multi-User Windows IMM32 API Client DLL Microsoft Corporation 6.1.7601.17514
kernel32.dll Windows NT BASE API Client DLL Microsoft Corporation 6.1.7601.18409
KERNELBASE.dll Windows NT BASE API Client DLL Microsoft Corporation 6.1.7601.18409
libgcc_s_dw2-1.dll
locale.nls
LPK.dll Language Pack Microsoft Corporation 6.1.7601.18177
MPR.DLL Multiple Provider Router DLL Microsoft Corporation 6.1.7600.16385
MSCTF.dll MSCTF Server DLL Microsoft Corporation 6.1.7600.16385
msvcrt.dll Windows NT CRT DLL Microsoft Corporation 7.0.7600.16385
ntdll.dll NT Layer DLL Microsoft Corporation 6.1.7601.18247
ntdll.dll NT Layer DLL Microsoft Corporation 6.1.7601.18247
ntmarta.dll Windows NT MARTA provider Microsoft Corporation 6.1.7600.16385
OLE32.dll Microsoft OLE for Windows Microsoft Corporation 6.1.7601.17514
OLEAUT32.dll Microsoft Corporation 6.1.7601.18640
POWRPROF.dll Power Profile Helper DLL Microsoft Corporation 6.1.7600.16385
RPCRT4.dll Remote Procedure Call Runtime Microsoft Corporation 6.1.7601.18532
sechost.dll Host for SCM/SDDL/LSA Lookup APIs Microsoft Corporation 6.1.7600.16385
SETUPAPI.dll Windows Setup API Microsoft Corporation 6.1.7601.17514
SHELL32.dll Windows Shell Common Dll Microsoft Corporation 6.1.7601.18517
SHLWAPI.dll Shell Light-weight Utility Library Microsoft Corporation 6.1.7601.17514
SortDefault.nls
SspiCli.dll Security Support Provider Interface Microsoft Corporation 6.1.7601.18637
StaticCache.dat
USER32.dll Multi-User Windows USER API Client DLL Microsoft Corporation 6.1.7601.17514
USP10.dll Uniscribe Unicode script processor Microsoft Corporation 1.626.7601.18454
uxtheme.dll Microsoft UxTheme Library Microsoft Corporation 6.1.7600.16385
VERSION.dll Version Checking and File Installation Libraries Microsoft Corporation 6.1.7600.16385
WINMM.DLL MCI API DLL Microsoft Corporation 6.1.7601.17514
WINSPOOL.DRV Windows Spooler Driver Microsoft Corporation 6.1.7601.17514
WLDAP32.dll Win32 LDAP API DLL Microsoft Corporation 6.1.7601.17514
wow64.dll Win32 Emulation on NT64 Microsoft Corporation 6.1.7601.18409
wow64cpu.dll AMD64 Wow64 CPU Microsoft Corporation 6.1.7601.18409
wow64win.dll Wow64 Console and Win32 API Logging Microsoft Corporation 6.1.7601.18409
zlib1.dll zlib data compression library 1.2.8.0
[-- Attachment #4: emacs.exe.nofile-build.txt --]
[-- Type: text/plain, Size: 3317 bytes --]
Process PID CPU Description Company Name
System Idle Process 0 99.75
csrss.exe 476
wininit.exe 548
csrss.exe 3148
winlogon.exe 2424
explorer.exe 1636 Windows Explorer Microsoft Corporation
AsusAudioCenter.exe 2328 AsusAudioCenter CMedia
emacs.exe 3228 GNU Emacs: The extensible self-documenting text editor Free Software Foundation
Process: emacs.exe Pid: 3228
Name Description Company Name Version
advapi32.dll Advanced Windows 32 Base API Microsoft Corporation 6.1.7601.18247
CFGMGR32.dll Configuration Manager DLL Microsoft Corporation 6.1.7601.17621
comctl32.dll User Experience Controls Library Microsoft Corporation 6.10.7601.17514
comdlg32.dll Common Dialogs DLL Microsoft Corporation 6.1.7601.17514
CRYPTBASE.dll Base cryptographic API DLL Microsoft Corporation 6.1.7600.16385
DEVOBJ.dll Device Information Set DLL Microsoft Corporation 6.1.7601.17621
DSOUND.dll DirectSound Microsoft Corporation 6.1.7600.16385
dwmapi.dll Microsoft Desktop Window Manager API Microsoft Corporation 6.1.7600.16385
emacs.exe GNU Emacs: The extensible self-documenting text editor Free Software Foundation 24.4.0.0
GDI32.dll GDI Client DLL Microsoft Corporation 6.1.7601.18577
HsSrv.dll HsSrv Dynamic Link Library C-Media Electronics Inc. 1.0.10.917
IMM32.DLL Multi-User Windows IMM32 API Client DLL Microsoft Corporation 6.1.7601.17514
kernel32.dll Windows NT BASE API Client DLL Microsoft Corporation 6.1.7601.18409
KERNELBASE.dll Windows NT BASE API Client DLL Microsoft Corporation 6.1.7601.18409
locale.nls
LPK.dll Language Pack Microsoft Corporation 6.1.7601.18177
mpr.dll Multiple Provider Router DLL Microsoft Corporation 6.1.7600.16385
MSCTF.dll MSCTF Server DLL Microsoft Corporation 6.1.7600.16385
msvcrt.dll Windows NT CRT DLL Microsoft Corporation 7.0.7600.16385
ntdll.dll NT Layer DLL Microsoft Corporation 6.1.7601.18247
ntdll.dll NT Layer DLL Microsoft Corporation 6.1.7601.18247
ole32.dll Microsoft OLE for Windows Microsoft Corporation 6.1.7601.17514
OLEAUT32.dll Microsoft Corporation 6.1.7601.18640
POWRPROF.dll Power Profile Helper DLL Microsoft Corporation 6.1.7600.16385
RPCRT4.dll Remote Procedure Call Runtime Microsoft Corporation 6.1.7601.18532
sechost.dll Host for SCM/SDDL/LSA Lookup APIs Microsoft Corporation 6.1.7600.16385
SETUPAPI.dll Windows Setup API Microsoft Corporation 6.1.7601.17514
SHELL32.dll Windows Shell Common Dll Microsoft Corporation 6.1.7601.18517
SHLWAPI.dll Shell Light-weight Utility Library Microsoft Corporation 6.1.7601.17514
SortDefault.nls
SspiCli.dll Security Support Provider Interface Microsoft Corporation 6.1.7601.18637
StaticCache.dat
USER32.dll Multi-User Windows USER API Client DLL Microsoft Corporation 6.1.7601.17514
USP10.dll Uniscribe Unicode script processor Microsoft Corporation 1.626.7601.18454
uxtheme.dll Microsoft UxTheme Library Microsoft Corporation 6.1.7600.16385
VERSION.dll Version Checking and File Installation Libraries Microsoft Corporation 6.1.7600.16385
winmm.dll MCI API DLL Microsoft Corporation 6.1.7601.17514
winspool.drv Windows Spooler Driver Microsoft Corporation 6.1.7601.17514
wow64.dll Win32 Emulation on NT64 Microsoft Corporation 6.1.7601.18409
wow64cpu.dll AMD64 Wow64 CPU Microsoft Corporation 6.1.7601.18409
wow64win.dll Wow64 Console and Win32 API Logging Microsoft Corporation 6.1.7601.18409
[-- Attachment #5: emacs.exe.loadfile-build.txt --]
[-- Type: text/plain, Size: 3460 bytes --]
Process PID CPU Description Company Name
System Idle Process 0 99.24
csrss.exe 476
wininit.exe 548
csrss.exe 3148
winlogon.exe 2424
explorer.exe 1636 Windows Explorer Microsoft Corporation
AsusAudioCenter.exe 2328 AsusAudioCenter CMedia
emacs.exe 3228 GNU Emacs: The extensible self-documenting text editor Free Software Foundation
Process: emacs.exe Pid: 3228
Name Description Company Name Version
advapi32.dll Advanced Windows 32 Base API Microsoft Corporation 6.1.7601.18247
CFGMGR32.dll Configuration Manager DLL Microsoft Corporation 6.1.7601.17621
comctl32.dll User Experience Controls Library Microsoft Corporation 6.10.7601.17514
comdlg32.dll Common Dialogs DLL Microsoft Corporation 6.1.7601.17514
CRYPTBASE.dll Base cryptographic API DLL Microsoft Corporation 6.1.7600.16385
DEVOBJ.dll Device Information Set DLL Microsoft Corporation 6.1.7601.17621
DSOUND.dll DirectSound Microsoft Corporation 6.1.7600.16385
dwmapi.dll Microsoft Desktop Window Manager API Microsoft Corporation 6.1.7600.16385
emacs.exe GNU Emacs: The extensible self-documenting text editor Free Software Foundation 24.4.0.0
GDI32.dll GDI Client DLL Microsoft Corporation 6.1.7601.18577
HsSrv.dll HsSrv Dynamic Link Library C-Media Electronics Inc. 1.0.10.917
IMM32.DLL Multi-User Windows IMM32 API Client DLL Microsoft Corporation 6.1.7601.17514
kernel32.dll Windows NT BASE API Client DLL Microsoft Corporation 6.1.7601.18409
KERNELBASE.dll Windows NT BASE API Client DLL Microsoft Corporation 6.1.7601.18409
locale.nls
LPK.dll Language Pack Microsoft Corporation 6.1.7601.18177
mpr.dll Multiple Provider Router DLL Microsoft Corporation 6.1.7600.16385
MSCTF.dll MSCTF Server DLL Microsoft Corporation 6.1.7600.16385
msvcrt.dll Windows NT CRT DLL Microsoft Corporation 7.0.7600.16385
ntdll.dll NT Layer DLL Microsoft Corporation 6.1.7601.18247
ntdll.dll NT Layer DLL Microsoft Corporation 6.1.7601.18247
ntmarta.dll Windows NT MARTA provider Microsoft Corporation 6.1.7600.16385
ole32.dll Microsoft OLE for Windows Microsoft Corporation 6.1.7601.17514
OLEAUT32.dll Microsoft Corporation 6.1.7601.18640
POWRPROF.dll Power Profile Helper DLL Microsoft Corporation 6.1.7600.16385
RPCRT4.dll Remote Procedure Call Runtime Microsoft Corporation 6.1.7601.18532
sechost.dll Host for SCM/SDDL/LSA Lookup APIs Microsoft Corporation 6.1.7600.16385
SETUPAPI.dll Windows Setup API Microsoft Corporation 6.1.7601.17514
SHELL32.dll Windows Shell Common Dll Microsoft Corporation 6.1.7601.18517
SHLWAPI.dll Shell Light-weight Utility Library Microsoft Corporation 6.1.7601.17514
SortDefault.nls
SspiCli.dll Security Support Provider Interface Microsoft Corporation 6.1.7601.18637
StaticCache.dat
USER32.dll Multi-User Windows USER API Client DLL Microsoft Corporation 6.1.7601.17514
USP10.dll Uniscribe Unicode script processor Microsoft Corporation 1.626.7601.18454
uxtheme.dll Microsoft UxTheme Library Microsoft Corporation 6.1.7600.16385
VERSION.dll Version Checking and File Installation Libraries Microsoft Corporation 6.1.7600.16385
winmm.dll MCI API DLL Microsoft Corporation 6.1.7601.17514
winspool.drv Windows Spooler Driver Microsoft Corporation 6.1.7601.17514
WLDAP32.dll Win32 LDAP API DLL Microsoft Corporation 6.1.7601.17514
wow64.dll Win32 Emulation on NT64 Microsoft Corporation 6.1.7601.18409
wow64cpu.dll AMD64 Wow64 CPU Microsoft Corporation 6.1.7601.18409
wow64win.dll Wow64 Console and Win32 API Logging Microsoft Corporation 6.1.7601.18409
^ permalink raw reply [flat|nested] 15+ messages in thread
* bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit
2014-11-26 3:47 ` Eli Zaretskii
2014-11-26 10:06 ` Bill Farmer
@ 2014-11-26 11:34 ` Bill Farmer
2014-11-26 15:55 ` Eli Zaretskii
1 sibling, 1 reply; 15+ messages in thread
From: Bill Farmer @ 2014-11-26 11:34 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 19181
[-- Attachment #1: Type: text/plain, Size: 604 bytes --]
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.
Regards
Bill Farmer
On 26/11/2014 03:47, Eli Zaretskii wrote:
> Please try to find the DLLs loaded into the Emacs binary that does
> crash. I don't see any other way of finding out what caused it.
> Somewhere on your system there is a DLL that depends on
> libgcc_s_dw2-1.dll, and finding it is the way to solve this riddle.
> Thanks.
[-- Attachment #2: Type: text/html, Size: 1048 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit
2014-11-26 11:34 ` Bill Farmer
@ 2014-11-26 15:55 ` Eli Zaretskii
2014-11-26 17:52 ` Bill Farmer
0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2014-11-26 15:55 UTC (permalink / raw)
To: Bill Farmer; +Cc: 19181
> 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.
^ permalink raw reply [flat|nested] 15+ messages in thread
* bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit
2014-11-26 15:55 ` Eli Zaretskii
@ 2014-11-26 17:52 ` Bill Farmer
2014-11-26 18:05 ` Eli Zaretskii
0 siblings, 1 reply; 15+ messages in thread
From: Bill Farmer @ 2014-11-26 17:52 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 19181
[-- Attachment #1.1: Type: text/plain, Size: 1976 bytes --]
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.
[-- Attachment #1.2: Type: text/html, Size: 2687 bytes --]
[-- Attachment #2: Backtrace.txt --]
[-- Type: text/plain, Size: 2115 bytes --]
Debugger entered--entering a function:
* zlib-available-p()
byte-code("\300\301!\205\f\0\301 \205\f\0\302\207" [fboundp zlib-available-p "gzip"] 2)
(defvar url-mime-encoding-string (byte-code "\300\301!\205\f\0\301 \205\f\0\302\207" [fboundp zlib-available-p "gzip"] 2) ("d:/Images/emacs/emacs-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-scheme-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\b&\x06\207" [cl-x cl--defsubst-expand (cl-x) (cl-block url-type (or (and (memq ... 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\"\210\303\307\310\"\207" [require url-parse url-vars autoload timezone-parse-date "timezone" timezone-make-date-arpa-standard mail-header-extract "mailheader"] 3)
url-hexify-string("D:")
mapconcat(url-hexify-string ("D:" "Images" "emacs" "emacs-24.4" "bin" "grep-changelog") "/")
w32-handle-dropped-file(#<window 3 on *scratch*> "D:\\Images\\emacs\\emacs-24.4\\bin\\grep-changelog")
apply(w32-handle-dropped-file #<window 3 on *scratch*> "D:\\Images\\emacs\\emacs-24.4\\bin\\grep-changelog")
(closure (t) (&rest args) (apply (quote w32-handle-dropped-file) (quote #<window 3 on *scratch*>) args))("D:\\Images\\emacs\\emacs-24.4\\bin\\grep-changelog")
mapc((closure (t) (&rest args) (apply (quote w32-handle-dropped-file) (quote #<window 3 on *scratch*>) args)) ("D:\\Images\\emacs\\emacs-24.4\\bin\\grep-changelog"))
w32-drag-n-drop((drag-n-drop (#<window 3 on *scratch*> 192 (61 . 364) 10304786 nil 192 (6 . 4) nil (61 . 296) (9 . 17)) ("D:\\Images\\emacs\\emacs-24.4\\bin\\grep-changelog")))
call-interactively(w32-drag-n-drop nil nil)
command-execute(w32-drag-n-drop)
^ permalink raw reply [flat|nested] 15+ messages in thread
* bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit
2014-11-26 17:52 ` Bill Farmer
@ 2014-11-26 18:05 ` Eli Zaretskii
0 siblings, 0 replies; 15+ messages in thread
From: Eli Zaretskii @ 2014-11-26 18:05 UTC (permalink / raw)
To: Bill Farmer; +Cc: 19181-done
> Date: Wed, 26 Nov 2014 17:52:13 +0000
> From: Bill Farmer <williamjfarmer@yahoo.co.uk>
> CC: dmoncayo@gmail.com, 19181@debbugs.gnu.org
>
> 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 (^@).
OK, now everything is clear, thanks. Drag-n-drop indeed can load
zlib1.dll, if Emacs was built with zlib support. I'm guessing that
your own build was without zlib, so Emacs didn't load it.
I'm closing the bug.
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2014-11-26 18:05 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-25 11:08 bug#19181: 24.4; 24.4.1 libgcc_s_dw2-1.dll crash on exit Bill Farmer
2014-11-25 17:26 ` Eli Zaretskii
[not found] ` <5474C91A.3010007@yahoo.co.uk>
2014-11-25 18:58 ` Eli Zaretskii
2014-11-25 19:03 ` Dani Moncayo
2014-11-25 19:08 ` Eli Zaretskii
2014-11-25 19:11 ` Dani Moncayo
2014-11-25 23:42 ` Bill Farmer
2014-11-26 3:47 ` Eli Zaretskii
2014-11-26 10:06 ` Bill Farmer
2014-11-26 11:34 ` Bill Farmer
2014-11-26 15:55 ` Eli Zaretskii
2014-11-26 17:52 ` Bill Farmer
2014-11-26 18:05 ` Eli Zaretskii
2014-11-25 21:01 ` Óscar Fuentes
2014-11-26 3:42 ` Eli Zaretskii
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).