GNU bug report logs - #18463
play-sound crashes emacs if file does not exist

Previous Next

Package: emacs;

Reported by: Mario Valencia <mariovalspi <at> gmail.com>

Date: Fri, 12 Sep 2014 16:55:01 UTC

Severity: normal

Tags: unreproducible

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18463 in the body.
You can then email your comments to 18463 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Fri, 12 Sep 2014 16:55:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mario Valencia <mariovalspi <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 12 Sep 2014 16:55:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mario Valencia <mariovalspi <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: play-sound crashes emacs if file does not exist
Date: Fri, 12 Sep 2014 11:54:07 -0500
[Message part 1 (text/plain, inline)]
running emacs -Q on windows 8
tried (play-sound '(sound :file "c:/users/mario/desktop/whatever.wav"))
in *scratch* buffer.
if the file exists, it works fine. if the file does not exist, emacs
crashes.

In GNU Emacs 24.3.1 (i386-mingw-nt6.2.9200)
 of 2013-03-17 on MARVIN
Windowing system distributor `Microsoft Corp.', version 6.2.9200
Configured using:
 `configure --with-gcc (4.7) --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-3.0.9/include
 -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include
 -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2'

Important settings:
  value of $LANG: ESM
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> ( p l a y - s o u n d SPC ' ( s o u n d
SPC : f i l e SPC " c : / u s e r s / m a r i o / d
e s k t o p / c o p m <backspace> <backspace> m p l
e t e d . w a <C-backspace> <C-backspace> n o <backspace>
<backspace> w h <backspace> <backspace> a s d f . w
a v " ) ) <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> <send-emacs-bug
-report>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils time-date tooltip 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 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 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
w32 multi-tty emacs)
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Fri, 12 Sep 2014 20:11:02 GMT) Full text and rfc822 format available.

Message #8 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mario Valencia <mariovalspi <at> gmail.com>
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Fri, 12 Sep 2014 23:10:43 +0300
> Date: Fri, 12 Sep 2014 11:54:07 -0500
> From: Mario Valencia <mariovalspi <at> gmail.com>
> 
> running emacs -Q on windows 8
> tried (play-sound '(sound :file "c:/users/mario/desktop/whatever.wav"))
> in *scratch* buffer.
> if the file exists, it works fine. if the file does not exist, emacs crashes.

I cannot reproduce this (but I don't have access to Windows 8).  The
latest pretest version of 24.4 signals an error saying

   This Emacs binary lacks sound support

Emacs 24.3 instead displays an error message about failed sound
command and asks to verify that the file exists.

Can show the C-level backtrace from the crash, by running Emacs under
a debugger?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 04:16:01 GMT) Full text and rfc822 format available.

Message #11 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Mario Valencia <mariovalspi <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Fri, 12 Sep 2014 23:15:12 -0500
[Message part 1 (text/plain, inline)]
well, the official windows binary is built without debug information so i
don't know if i could get any useful info.

2014-09-12 15:10 GMT-05:00 Eli Zaretskii <eliz <at> gnu.org>:

> > Date: Fri, 12 Sep 2014 11:54:07 -0500
> > From: Mario Valencia <mariovalspi <at> gmail.com>
> >
> > running emacs -Q on windows 8
> > tried (play-sound '(sound :file "c:/users/mario/desktop/whatever.wav"))
> > in *scratch* buffer.
> > if the file exists, it works fine. if the file does not exist, emacs
> crashes.
>
> I cannot reproduce this (but I don't have access to Windows 8).  The
> latest pretest version of 24.4 signals an error saying
>
>    This Emacs binary lacks sound support
>
> Emacs 24.3 instead displays an error message about failed sound
> command and asks to verify that the file exists.
>
> Can show the C-level backtrace from the crash, by running Emacs under
> a debugger?
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 06:42:02 GMT) Full text and rfc822 format available.

Message #14 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mario Valencia <mariovalspi <at> gmail.com>
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Sat, 13 Sep 2014 09:41:27 +0300
> Date: Fri, 12 Sep 2014 23:15:12 -0500
> From: Mario Valencia <mariovalspi <at> gmail.com>
> Cc: 18463 <at> debbugs.gnu.org
> 
> well, the official windows binary is built without debug information so i don't
> know if i could get any useful info.

There are binaries of both the trunk and the release branch available
out there, and they do have debug info.  Please try them, and if the
crash still occurs there, please post the backtrace.  (If the crash
does not occur in those versions, it means the bug, whatever it is,
was already solved as part of development.)

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 07:36:02 GMT) Full text and rfc822 format available.

Message #17 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Mario Valencia <mariovalspi <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Sat, 13 Sep 2014 02:35:22 -0500
[Message part 1 (text/plain, inline)]
I don't know where those binaries with debug info are.

2014-09-13 1:41 GMT-05:00 Eli Zaretskii <eliz <at> gnu.org>:

> > Date: Fri, 12 Sep 2014 23:15:12 -0500
> > From: Mario Valencia <mariovalspi <at> gmail.com>
> > Cc: 18463 <at> debbugs.gnu.org
> >
> > well, the official windows binary is built without debug information so
> i don't
> > know if i could get any useful info.
>
> There are binaries of both the trunk and the release branch available
> out there, and they do have debug info.  Please try them, and if the
> crash still occurs there, please post the backtrace.  (If the crash
> does not occur in those versions, it means the bug, whatever it is,
> was already solved as part of development.)
>
> Thanks.
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 07:46:01 GMT) Full text and rfc822 format available.

Message #20 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Mario Valencia <mariovalspi <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Sat, 13 Sep 2014 02:45:48 -0500
[Message part 1 (text/plain, inline)]
i also wouldn't know how to debug emacs myself.

2014-09-13 2:35 GMT-05:00 Mario Valencia <mariovalspi <at> gmail.com>:

> I don't know where those binaries with debug info are.
>
> 2014-09-13 1:41 GMT-05:00 Eli Zaretskii <eliz <at> gnu.org>:
>
> > Date: Fri, 12 Sep 2014 23:15:12 -0500
>> > From: Mario Valencia <mariovalspi <at> gmail.com>
>> > Cc: 18463 <at> debbugs.gnu.org
>> >
>> > well, the official windows binary is built without debug information so
>> i don't
>> > know if i could get any useful info.
>>
>> There are binaries of both the trunk and the release branch available
>> out there, and they do have debug info.  Please try them, and if the
>> crash still occurs there, please post the backtrace.  (If the crash
>> does not occur in those versions, it means the bug, whatever it is,
>> was already solved as part of development.)
>>
>> Thanks.
>>
>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 08:30:02 GMT) Full text and rfc822 format available.

Message #23 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: mariovalspi <at> gmail.com
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Sat, 13 Sep 2014 11:29:27 +0300
> Date: Fri, 12 Sep 2014 23:10:43 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 18463 <at> debbugs.gnu.org
> 
> The latest pretest version of 24.4 signals an error saying
> 
>    This Emacs binary lacks sound support

This was due to a bug in the build process: the sound support
functions were not compiled into the Windows build.  Now fixed on the
emacs-24 branch (revision 117496).  So something good already resulted
from this bug report; thanks.

With that bug fixed, an existing sound file is played, while a
non-existing one causes this error message to be displayed:

  The open mciSendString command failed to open the specified sound file.
  Error: Cannot find the specified file.  Make sure the path and filename are correct.

This is on XPSP2; I will try on Windows 7 when I have time.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 08:33:02 GMT) Full text and rfc822 format available.

Message #26 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mario Valencia <mariovalspi <at> gmail.com>
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Sat, 13 Sep 2014 11:31:52 +0300
> Date: Sat, 13 Sep 2014 02:35:22 -0500
> From: Mario Valencia <mariovalspi <at> gmail.com>
> Cc: 18463 <at> debbugs.gnu.org
> 
> I don't know where those binaries with debug info are. 

Here are 2 places:

  https://www.dropbox.com/sh/3pgcb3iiy8s9irl/c171Xhsd99
  http://sourceforge.net/projects/emacs-bin/files/releases/

On the 1st site, take the latest zip of the 24.3.91 series.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 08:37:01 GMT) Full text and rfc822 format available.

Message #29 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mario Valencia <mariovalspi <at> gmail.com>
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Sat, 13 Sep 2014 11:36:16 +0300
> Date: Sat, 13 Sep 2014 02:45:48 -0500
> From: Mario Valencia <mariovalspi <at> gmail.com>
> Cc: 18463 <at> debbugs.gnu.org
> 
> i also wouldn't know how to debug emacs myself.

No need to debug it, just run it under GDB, like this:

 c:\whatever> gdb emacs.exe
 ...
 (gdb) run -Q

Then do whatever is needed to reproduce the crash.  When Emacs
crashes, GDB will kick in and display its "(gdb)" prompt in the cmd
window where you started it.  Then type at that prompt:

 (gdb) thread apply all bt

and post here everything it displays.  We will take it from there.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 08:40:02 GMT) Full text and rfc822 format available.

Message #32 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: mariovalspi <at> gmail.com
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Sat, 13 Sep 2014 11:39:13 +0300
> Date: Sat, 13 Sep 2014 11:31:52 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 18463 <at> debbugs.gnu.org
> 
> > Date: Sat, 13 Sep 2014 02:35:22 -0500
> > From: Mario Valencia <mariovalspi <at> gmail.com>
> > Cc: 18463 <at> debbugs.gnu.org
> > 
> > I don't know where those binaries with debug info are. 
> 
> Here are 2 places:
> 
>   https://www.dropbox.com/sh/3pgcb3iiy8s9irl/c171Xhsd99
>   http://sourceforge.net/projects/emacs-bin/files/releases/
> 
> On the 1st site, take the latest zip of the 24.3.91 series.

But please wait for the next binary after today, since what is there
now has its sound support disabled due to the bug I mentioned in my
previous mail.

Btw, do you see crashes for _any_ non-existing file, or just for some
of them?  E.g., do you have non-ASCII characters in those file names?
How about the leading directories: if the file name includes leading
directories outside of the C:/Users tree, does the problem still
happen?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 08:42:02 GMT) Full text and rfc822 format available.

Message #35 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Mario Valencia <mariovalspi <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Sat, 13 Sep 2014 03:41:57 -0500
[Message part 1 (text/plain, inline)]
It happens with any string whatsoever actually, even the empty string. it
only works if the file exists.


2014-09-13 3:39 GMT-05:00 Eli Zaretskii <eliz <at> gnu.org>:

> > Date: Sat, 13 Sep 2014 11:31:52 +0300
> > From: Eli Zaretskii <eliz <at> gnu.org>
> > Cc: 18463 <at> debbugs.gnu.org
> >
> > > Date: Sat, 13 Sep 2014 02:35:22 -0500
> > > From: Mario Valencia <mariovalspi <at> gmail.com>
> > > Cc: 18463 <at> debbugs.gnu.org
> > >
> > > I don't know where those binaries with debug info are.
> >
> > Here are 2 places:
> >
> >   https://www.dropbox.com/sh/3pgcb3iiy8s9irl/c171Xhsd99
> >   http://sourceforge.net/projects/emacs-bin/files/releases/
> >
> > On the 1st site, take the latest zip of the 24.3.91 series.
>
> But please wait for the next binary after today, since what is there
> now has its sound support disabled due to the bug I mentioned in my
> previous mail.
>
> Btw, do you see crashes for _any_ non-existing file, or just for some
> of them?  E.g., do you have non-ASCII characters in those file names?
> How about the leading directories: if the file name includes leading
> directories outside of the C:/Users tree, does the problem still
> happen?
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 08:51:01 GMT) Full text and rfc822 format available.

Message #38 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mario Valencia <mariovalspi <at> gmail.com>
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Sat, 13 Sep 2014 11:50:02 +0300
> Date: Sat, 13 Sep 2014 03:41:57 -0500
> From: Mario Valencia <mariovalspi <at> gmail.com>
> Cc: 18463 <at> debbugs.gnu.org
> 
> It happens with any string whatsoever actually, even the empty string. it only
> works if the file exists.

OK.  Can you look in the Windows Event Viewer, under Applications, for
any events that show these Emacs crashes?  If so, please post here all
the information recorded in the event (it should at least show the DLL
or .exe file where the crash happened, and the address of the
instruction that caused the crash).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 09:00:03 GMT) Full text and rfc822 format available.

Message #41 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Mario Valencia <mariovalspi <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Sat, 13 Sep 2014 03:59:13 -0500
[Message part 1 (text/plain, inline)]
Log Name: Application
Source: Application Error
Date: 9/13/2014 3:55:12 a. m.
Event ID:. 1,000
Task Category: (100)
Level: Error
Keywords: Classic
User: Not available
Computer: Lenovo-PC
Description:
Name of application errors: emacs.exe Version: 24.3.0.0, time stamp:
0x51461ed8
Faulting module name: emacs.exe Version: 24.3.0.0, time stamp: 0x51461ed8
Exception code: 0x40000015
Offset errors: 0x000c5847
Faulting process identifier: 0x1aa4
Start time of application errors: 0x01cfcf306387d837
Path application errors: C: \ Users \ mario \ Desktop \ emacs-24.3 \ bin \
emacs.exe
Path module with errors: C: \ Users \ mario \ Desktop \ emacs-24.3 \ bin \
emacs.exe
Report ID: ab4a0b15-3b23-11e4-826b-a4db30844fdb
Full name of package errors:
Application identifier on the package errors:
XML event:
<Event xmlns = "http://schemas.microsoft.com/win/2004/08/events/event">
   <System>
     <Provider Name = "Application Error" />
     <EventID Qualifiers = "0"> 1000 </ EventID>
     <Level> 2 </ Level>
     <Task> 100 </ Task>
     <Keywords> 0x80000000000000 </ Keywords>
     <TimeCreated SYSTEMTIME = "2014-09-13T08: 55: 12.000000000Z" />
     <EventRecordID> 10308 </ EventRecordID>
     <Channel> Application </ Channel>
     <Computer> Lenovo-PC </ Computer>
     <Security />
   </ System>
   <EventData>
     <Data> emacs.exe </ Data>
     <Data> 24.3.0.0 </ Data>
     <Data> 51461ed8 </ Data>
     <Data> emacs.exe </ Data>
     <Data> 24.3.0.0 </ Data>
     <Data> 51461ed8 </ Data>
     <Data> 40000015 </ Data>
     <Data> 000c5847 </ Data>
     <Data> 1aa4 </ Data>
     <Data> 01cfcf306387d837 </ Data>
     <Data> C: \ Users \ mario \ Desktop \ emacs-24.3 \ bin \ emacs.exe </
Data>
     <Data> C: \ Users \ mario \ Desktop \ emacs-24.3 \ bin \ emacs.exe </
Data>
     <Data> ab4a0b15-3b23-11e4-826b-a4db30844fdb </ Data>
     <Data>
     </ Data>
     <Data>
     </ Data>
   </ EventData>
</ Event>


2014-09-13 3:50 GMT-05:00 Eli Zaretskii <eliz <at> gnu.org>:

> > Date: Sat, 13 Sep 2014 03:41:57 -0500
> > From: Mario Valencia <mariovalspi <at> gmail.com>
> > Cc: 18463 <at> debbugs.gnu.org
> >
> > It happens with any string whatsoever actually, even the empty string.
> it only
> > works if the file exists.
>
> OK.  Can you look in the Windows Event Viewer, under Applications, for
> any events that show these Emacs crashes?  If so, please post here all
> the information recorded in the event (it should at least show the DLL
> or .exe file where the crash happened, and the address of the
> instruction that caused the crash).
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 09:52:01 GMT) Full text and rfc822 format available.

Message #44 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mario Valencia <mariovalspi <at> gmail.com>
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Sat, 13 Sep 2014 12:50:45 +0300
> Date: Sat, 13 Sep 2014 03:59:13 -0500
> From: Mario Valencia <mariovalspi <at> gmail.com>
> Cc: 18463 <at> debbugs.gnu.org
> 
> Log Name: Application 
> Source: Application Error 
> Date: 9/13/2014 3:55:12 a. m. 
> Event ID:. 1,000 
> Task Category: (100) 
> Level: Error 
> Keywords: Classic 
> User: Not available 
> Computer: Lenovo-PC 
> Description: 
> Name of application errors: emacs.exe Version: 24.3.0.0, time stamp: 0x51461ed8 
> Faulting module name: emacs.exe Version: 24.3.0.0, time stamp: 0x51461ed8 
> Exception code: 0x40000015 
> Offset errors: 0x000c5847 
  ^^^^^^^^^^^^^^^^^^^^^^^^^
According to this, Emacs tried to display the Abort dialog box, and
crashed while trying.  You didn't see the Abort dialog, did you?

Maybe there's some Windows 8 specific problem in displaying that
dialog.  Of course, the main question is why did Emacs at all tried to
display the Abort dialog...




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 09:57:02 GMT) Full text and rfc822 format available.

Message #47 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Mario Valencia <mariovalspi <at> gmail.com>
To: 18463 <at> debbugs.gnu.org
Subject: Fwd: bug#18463: play-sound crashes emacs if file does not exist
Date: Sat, 13 Sep 2014 04:56:54 -0500
[Message part 1 (text/plain, inline)]
---------- Forwarded message ----------
From: Mario Valencia <mariovalspi <at> gmail.com>
Date: 2014-09-13 4:55 GMT-05:00
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
To: Eli Zaretskii <eliz <at> gnu.org>


Emacs Abort Dialog

A fatal error has ocurred.

Would you like to attach a debugger?

.... etc etc use gdb -p emacs blablablah

2014-09-13 4:50 GMT-05:00 Eli Zaretskii <eliz <at> gnu.org>:

> > Date: Sat, 13 Sep 2014 03:59:13 -0500
>
> > From: Mario Valencia <mariovalspi <at> gmail.com>
> > Cc: 18463 <at> debbugs.gnu.org
> >
> > Log Name: Application
> > Source: Application Error
> > Date: 9/13/2014 3:55:12 a. m.
> > Event ID:. 1,000
> > Task Category: (100)
> > Level: Error
> > Keywords: Classic
> > User: Not available
> > Computer: Lenovo-PC
> > Description:
> > Name of application errors: emacs.exe Version: 24.3.0.0, time stamp:
> 0x51461ed8
> > Faulting module name: emacs.exe Version: 24.3.0.0, time stamp: 0x51461ed8
> > Exception code: 0x40000015
> > Offset errors: 0x000c5847
>   ^^^^^^^^^^^^^^^^^^^^^^^^^
> According to this, Emacs tried to display the Abort dialog box, and
> crashed while trying.  You didn't see the Abort dialog, did you?
>
> Maybe there's some Windows 8 specific problem in displaying that
> dialog.  Of course, the main question is why did Emacs at all tried to
> display the Abort dialog...
>

i keep forgetting to include 18463 <at> debbugs.gnu.org
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 12:22:01 GMT) Full text and rfc822 format available.

Message #50 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mario Valencia <mariovalspi <at> gmail.com>
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Sat, 13 Sep 2014 15:21:32 +0300
> Date: Sat, 13 Sep 2014 04:55:42 -0500
> From: Mario Valencia <mariovalspi <at> gmail.com>
> 
> Emacs Abort Dialog
> 
> A fatal error has ocurred.
> 
> Would you like to attach a debugger?
> 
> .... etc etc use gdb -p emacs blablablah

So you did see the abort dialog?  Is there anything else you see that
happens at that moment, and might be relevant to the problem?

Let me be sure I understand what you see.

 . you type "emacs -Q"
 . in the scratch buffer you type the play-sound form, and press C-j
   (or is it "C-x C-e"?) at its right parenthesis
 . Emacs pops up the Abort dialog

What happens next?  Do you click "No" on the dialog, and then Emacs
crashes?  Or something else?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 12:28:01 GMT) Full text and rfc822 format available.

Message #53 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Mario Valencia <mariovalspi <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Sat, 13 Sep 2014 07:27:36 -0500
[Message part 1 (text/plain, inline)]
yes. pressing C-j or C-x C-e, no difference. i see the abort dialog (which
tells me emacs crashed, and to use debugger if possible). i click no,
windows shows application crash message. i see nothing else relevant to the
problem.

2014-09-13 7:21 GMT-05:00 Eli Zaretskii <eliz <at> gnu.org>:

> > Date: Sat, 13 Sep 2014 04:55:42 -0500
> > From: Mario Valencia <mariovalspi <at> gmail.com>
> >
> > Emacs Abort Dialog
> >
> > A fatal error has ocurred.
> >
> > Would you like to attach a debugger?
> >
> > .... etc etc use gdb -p emacs blablablah
>
> So you did see the abort dialog?  Is there anything else you see that
> happens at that moment, and might be relevant to the problem?
>
> Let me be sure I understand what you see.
>
>  . you type "emacs -Q"
>  . in the scratch buffer you type the play-sound form, and press C-j
>    (or is it "C-x C-e"?) at its right parenthesis
>  . Emacs pops up the Abort dialog
>
> What happens next?  Do you click "No" on the dialog, and then Emacs
> crashes?  Or something else?
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sat, 13 Sep 2014 13:20:02 GMT) Full text and rfc822 format available.

Message #56 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mario Valencia <mariovalspi <at> gmail.com>
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Sat, 13 Sep 2014 16:19:04 +0300
> Date: Sat, 13 Sep 2014 07:27:36 -0500
> From: Mario Valencia <mariovalspi <at> gmail.com>
> Cc: 18463 <at> debbugs.gnu.org
> 
> yes. pressing C-j or C-x C-e, no difference. i see the abort dialog (which
> tells me emacs crashed, and to use debugger if possible). i click no, windows
> shows application crash message. i see nothing else relevant to the problem.

OK, so the only issue here is why Emacs shows the abort dialog in this
scenario.

Thanks.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Sun, 14 Sep 2014 16:02:02 GMT) Full text and rfc822 format available.

Message #59 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mario Valencia <mariovalspi <at> gmail.com>
Cc: 18463 <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Sun, 14 Sep 2014 19:01:07 +0300
> Date: Sat, 13 Sep 2014 07:27:36 -0500
> From: Mario Valencia <mariovalspi <at> gmail.com>
> Cc: 18463 <at> debbugs.gnu.org
> 
> pressing C-j or C-x C-e, no difference. i see the abort dialog (which
> tells me emacs crashed, and to use debugger if possible). i click no, windows
> shows application crash message. i see nothing else relevant to the problem.

I tried this on Windows 7, and I cannot reproduce the problem there.
Either it plays the sound file (if it exists) or says the file could
not be found.

Can someone who is equipped to run Emacs under a debugger please try
reproducing this on Windows 8, and report the results?  TIA.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Mon, 15 Sep 2014 15:24:02 GMT) Full text and rfc822 format available.

Message #62 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 18463 <at> debbugs.gnu.org, Mario Valencia <mariovalspi <at> gmail.com>
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Mon, 15 Sep 2014 17:23:12 +0200
> Can someone who is equipped to run Emacs under a debugger please try
> reproducing this on Windows 8, and report the results?  TIA.

On Windows 8, with the current trunk,
  emacs -Q
  Eval: (play-sound '(sound :file "c:/path/foo.wav"))

gives this if the file does not exist:
 * Return value = nil.
 * Side effect: Message [1] in the *Messages* buffer.

and this if the file does exist:
 * Return value = nil.
 * Side effect: The sound stored in the file is played as expected.

I've been unable to make the test with the latest version from the
emacs-24 brach, because it failed to build (reported to emacs-devel).

HTH.

----- Footnotes ----

[1] The open mciSendString command failed to open the specified sound file.
  Error: Cannot find the specified file.  Make sure the path and
filename are correct.


-- 
Dani Moncayo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Mon, 15 Sep 2014 16:01:01 GMT) Full text and rfc822 format available.

Message #65 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 18463 <at> debbugs.gnu.org, mariovalspi <at> gmail.com
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Mon, 15 Sep 2014 18:59:48 +0300
> Date: Mon, 15 Sep 2014 17:23:12 +0200
> From: Dani Moncayo <dmoncayo <at> gmail.com>
> Cc: Mario Valencia <mariovalspi <at> gmail.com>, 18463 <at> debbugs.gnu.org
> 
> > Can someone who is equipped to run Emacs under a debugger please try
> > reproducing this on Windows 8, and report the results?  TIA.
> 
> On Windows 8, with the current trunk,
>   emacs -Q
>   Eval: (play-sound '(sound :file "c:/path/foo.wav"))
> 
> gives this if the file does not exist:
>  * Return value = nil.
>  * Side effect: Message [1] in the *Messages* buffer.
> 
> and this if the file does exist:
>  * Return value = nil.
>  * Side effect: The sound stored in the file is played as expected.

Thanks, this is the expected behavior.

Can you test with Emacs 24.3, preferably the official binary on the
GNU FTP site?  That was the one the OP complained about.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Mon, 15 Sep 2014 16:23:02 GMT) Full text and rfc822 format available.

Message #68 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 18463 <at> debbugs.gnu.org, Mario Valencia <mariovalspi <at> gmail.com>
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Mon, 15 Sep 2014 18:22:05 +0200
> Can you test with Emacs 24.3, preferably the official binary on the
> GNU FTP site?  That was the one the OP complained about.

OK, I've just done it, and I observe the same behavior I've described
for the current trunk.

-- 
Dani Moncayo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#18463; Package emacs. (Mon, 15 Sep 2014 17:01:02 GMT) Full text and rfc822 format available.

Message #71 received at 18463 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dani Moncayo <dmoncayo <at> gmail.com>
Cc: 18463 <at> debbugs.gnu.org, mariovalspi <at> gmail.com
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Mon, 15 Sep 2014 20:00:34 +0300
> Date: Mon, 15 Sep 2014 18:22:05 +0200
> From: Dani Moncayo <dmoncayo <at> gmail.com>
> Cc: Mario Valencia <mariovalspi <at> gmail.com>, 18463 <at> debbugs.gnu.org
> 
> > Can you test with Emacs 24.3, preferably the official binary on the
> > GNU FTP site?  That was the one the OP complained about.
> 
> OK, I've just done it, and I observe the same behavior I've described
> for the current trunk.

Thank you.  I guess there's something special on Mario's system that
somehow causes this.




Added tag(s) unreproducible. Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Thu, 02 Jun 2016 17:21:01 GMT) Full text and rfc822 format available.

Reply sent to Noam Postavsky <npostavs <at> users.sourceforge.net>:
You have taken responsibility. (Thu, 02 Jun 2016 17:21:02 GMT) Full text and rfc822 format available.

Notification sent to Mario Valencia <mariovalspi <at> gmail.com>:
bug acknowledged by developer. (Thu, 02 Jun 2016 17:21:02 GMT) Full text and rfc822 format available.

Message #78 received at 18463-done <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: 18463-done <at> debbugs.gnu.org
Subject: Re: bug#18463: play-sound crashes emacs if file does not exist
Date: Thu, 2 Jun 2016 13:20:13 -0400
tag 18463 + unreproducible
quit

I don't see a crash on Windows 8, Emacs 24.3 either. Closing as unreproducible.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 01 Jul 2016 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 308 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.