unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18463: play-sound crashes emacs if file does not exist
@ 2014-09-12 16:54 Mario Valencia
  2014-09-12 20:10 ` Eli Zaretskii
  2016-06-02 17:20 ` Noam Postavsky
  0 siblings, 2 replies; 24+ messages in thread
From: Mario Valencia @ 2014-09-12 16:54 UTC (permalink / raw)
  To: 18463

[-- Attachment #1: Type: text/plain, Size: 2960 bytes --]

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)

[-- Attachment #2: Type: text/html, Size: 4065 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-12 16:54 bug#18463: play-sound crashes emacs if file does not exist Mario Valencia
@ 2014-09-12 20:10 ` Eli Zaretskii
  2014-09-13  4:15   ` Mario Valencia
  2014-09-13  8:29   ` Eli Zaretskii
  2016-06-02 17:20 ` Noam Postavsky
  1 sibling, 2 replies; 24+ messages in thread
From: Eli Zaretskii @ 2014-09-12 20:10 UTC (permalink / raw)
  To: Mario Valencia; +Cc: 18463

> Date: Fri, 12 Sep 2014 11:54:07 -0500
> From: Mario Valencia <mariovalspi@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?





^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-12 20:10 ` Eli Zaretskii
@ 2014-09-13  4:15   ` Mario Valencia
  2014-09-13  6:41     ` Eli Zaretskii
  2014-09-13  8:29   ` Eli Zaretskii
  1 sibling, 1 reply; 24+ messages in thread
From: Mario Valencia @ 2014-09-13  4:15 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 18463

[-- Attachment #1: Type: text/plain, Size: 874 bytes --]

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@gnu.org>:

> > Date: Fri, 12 Sep 2014 11:54:07 -0500
> > From: Mario Valencia <mariovalspi@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?
>

[-- Attachment #2: Type: text/html, Size: 1310 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-13  4:15   ` Mario Valencia
@ 2014-09-13  6:41     ` Eli Zaretskii
  2014-09-13  7:35       ` Mario Valencia
  0 siblings, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2014-09-13  6:41 UTC (permalink / raw)
  To: Mario Valencia; +Cc: 18463

> Date: Fri, 12 Sep 2014 23:15:12 -0500
> From: Mario Valencia <mariovalspi@gmail.com>
> Cc: 18463@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.





^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-13  6:41     ` Eli Zaretskii
@ 2014-09-13  7:35       ` Mario Valencia
  2014-09-13  7:45         ` Mario Valencia
  2014-09-13  8:31         ` Eli Zaretskii
  0 siblings, 2 replies; 24+ messages in thread
From: Mario Valencia @ 2014-09-13  7:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 18463

[-- Attachment #1: Type: text/plain, Size: 710 bytes --]

I don't know where those binaries with debug info are.

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

> > Date: Fri, 12 Sep 2014 23:15:12 -0500
> > From: Mario Valencia <mariovalspi@gmail.com>
> > Cc: 18463@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.
>

[-- Attachment #2: Type: text/html, Size: 1181 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-13  7:35       ` Mario Valencia
@ 2014-09-13  7:45         ` Mario Valencia
  2014-09-13  8:36           ` Eli Zaretskii
  2014-09-13  8:31         ` Eli Zaretskii
  1 sibling, 1 reply; 24+ messages in thread
From: Mario Valencia @ 2014-09-13  7:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 18463

[-- Attachment #1: Type: text/plain, Size: 851 bytes --]

i also wouldn't know how to debug emacs myself.

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

> I don't know where those binaries with debug info are.
>
> 2014-09-13 1:41 GMT-05:00 Eli Zaretskii <eliz@gnu.org>:
>
> > Date: Fri, 12 Sep 2014 23:15:12 -0500
>> > From: Mario Valencia <mariovalspi@gmail.com>
>> > Cc: 18463@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.
>>
>
>

[-- Attachment #2: Type: text/html, Size: 1653 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-12 20:10 ` Eli Zaretskii
  2014-09-13  4:15   ` Mario Valencia
@ 2014-09-13  8:29   ` Eli Zaretskii
  1 sibling, 0 replies; 24+ messages in thread
From: Eli Zaretskii @ 2014-09-13  8:29 UTC (permalink / raw)
  To: mariovalspi; +Cc: 18463

> Date: Fri, 12 Sep 2014 23:10:43 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 18463@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.





^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-13  7:35       ` Mario Valencia
  2014-09-13  7:45         ` Mario Valencia
@ 2014-09-13  8:31         ` Eli Zaretskii
  2014-09-13  8:39           ` Eli Zaretskii
  1 sibling, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2014-09-13  8:31 UTC (permalink / raw)
  To: Mario Valencia; +Cc: 18463

> Date: Sat, 13 Sep 2014 02:35:22 -0500
> From: Mario Valencia <mariovalspi@gmail.com>
> Cc: 18463@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.





^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-13  7:45         ` Mario Valencia
@ 2014-09-13  8:36           ` Eli Zaretskii
  0 siblings, 0 replies; 24+ messages in thread
From: Eli Zaretskii @ 2014-09-13  8:36 UTC (permalink / raw)
  To: Mario Valencia; +Cc: 18463

> Date: Sat, 13 Sep 2014 02:45:48 -0500
> From: Mario Valencia <mariovalspi@gmail.com>
> Cc: 18463@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.





^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-13  8:31         ` Eli Zaretskii
@ 2014-09-13  8:39           ` Eli Zaretskii
  2014-09-13  8:41             ` Mario Valencia
  0 siblings, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2014-09-13  8:39 UTC (permalink / raw)
  To: mariovalspi; +Cc: 18463

> Date: Sat, 13 Sep 2014 11:31:52 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 18463@debbugs.gnu.org
> 
> > Date: Sat, 13 Sep 2014 02:35:22 -0500
> > From: Mario Valencia <mariovalspi@gmail.com>
> > Cc: 18463@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?





^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-13  8:39           ` Eli Zaretskii
@ 2014-09-13  8:41             ` Mario Valencia
  2014-09-13  8:50               ` Eli Zaretskii
  0 siblings, 1 reply; 24+ messages in thread
From: Mario Valencia @ 2014-09-13  8:41 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 18463

[-- Attachment #1: Type: text/plain, Size: 1152 bytes --]

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@gnu.org>:

> > Date: Sat, 13 Sep 2014 11:31:52 +0300
> > From: Eli Zaretskii <eliz@gnu.org>
> > Cc: 18463@debbugs.gnu.org
> >
> > > Date: Sat, 13 Sep 2014 02:35:22 -0500
> > > From: Mario Valencia <mariovalspi@gmail.com>
> > > Cc: 18463@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?
>

[-- Attachment #2: Type: text/html, Size: 2005 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-13  8:41             ` Mario Valencia
@ 2014-09-13  8:50               ` Eli Zaretskii
  2014-09-13  8:59                 ` Mario Valencia
  0 siblings, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2014-09-13  8:50 UTC (permalink / raw)
  To: Mario Valencia; +Cc: 18463

> Date: Sat, 13 Sep 2014 03:41:57 -0500
> From: Mario Valencia <mariovalspi@gmail.com>
> Cc: 18463@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).





^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-13  8:50               ` Eli Zaretskii
@ 2014-09-13  8:59                 ` Mario Valencia
  2014-09-13  9:50                   ` Eli Zaretskii
  0 siblings, 1 reply; 24+ messages in thread
From: Mario Valencia @ 2014-09-13  8:59 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 18463

[-- Attachment #1: Type: text/plain, Size: 2542 bytes --]

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@gnu.org>:

> > Date: Sat, 13 Sep 2014 03:41:57 -0500
> > From: Mario Valencia <mariovalspi@gmail.com>
> > Cc: 18463@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).
>

[-- Attachment #2: Type: text/html, Size: 4217 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-13  8:59                 ` Mario Valencia
@ 2014-09-13  9:50                   ` Eli Zaretskii
       [not found]                     ` <CA+3HrJVO4Ka5943-3m_tTNq2=2HvvV5QYOeAh3H_csRYg1EOEQ@mail.gmail.com>
  0 siblings, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2014-09-13  9:50 UTC (permalink / raw)
  To: Mario Valencia; +Cc: 18463

> Date: Sat, 13 Sep 2014 03:59:13 -0500
> From: Mario Valencia <mariovalspi@gmail.com>
> Cc: 18463@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...





^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: Fwd: bug#18463: play-sound crashes emacs if file does not exist
       [not found]                     ` <CA+3HrJVO4Ka5943-3m_tTNq2=2HvvV5QYOeAh3H_csRYg1EOEQ@mail.gmail.com>
@ 2014-09-13  9:56                       ` Mario Valencia
  2014-09-13 12:21                       ` Eli Zaretskii
  1 sibling, 0 replies; 24+ messages in thread
From: Mario Valencia @ 2014-09-13  9:56 UTC (permalink / raw)
  To: 18463

[-- Attachment #1: Type: text/plain, Size: 1394 bytes --]

---------- Forwarded message ----------
From: Mario Valencia <mariovalspi@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@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@gnu.org>:

> > Date: Sat, 13 Sep 2014 03:59:13 -0500
>
> > From: Mario Valencia <mariovalspi@gmail.com>
> > Cc: 18463@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@debbugs.gnu.org

[-- Attachment #2: Type: text/html, Size: 2471 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
       [not found]                     ` <CA+3HrJVO4Ka5943-3m_tTNq2=2HvvV5QYOeAh3H_csRYg1EOEQ@mail.gmail.com>
  2014-09-13  9:56                       ` bug#18463: Fwd: " Mario Valencia
@ 2014-09-13 12:21                       ` Eli Zaretskii
  2014-09-13 12:27                         ` Mario Valencia
  1 sibling, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2014-09-13 12:21 UTC (permalink / raw)
  To: Mario Valencia; +Cc: 18463

> Date: Sat, 13 Sep 2014 04:55:42 -0500
> From: Mario Valencia <mariovalspi@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?





^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-13 12:21                       ` Eli Zaretskii
@ 2014-09-13 12:27                         ` Mario Valencia
  2014-09-13 13:19                           ` Eli Zaretskii
  2014-09-14 16:01                           ` Eli Zaretskii
  0 siblings, 2 replies; 24+ messages in thread
From: Mario Valencia @ 2014-09-13 12:27 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 18463

[-- Attachment #1: Type: text/plain, Size: 1010 bytes --]

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@gnu.org>:

> > Date: Sat, 13 Sep 2014 04:55:42 -0500
> > From: Mario Valencia <mariovalspi@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?
>

[-- Attachment #2: Type: text/html, Size: 1507 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-13 12:27                         ` Mario Valencia
@ 2014-09-13 13:19                           ` Eli Zaretskii
  2014-09-14 16:01                           ` Eli Zaretskii
  1 sibling, 0 replies; 24+ messages in thread
From: Eli Zaretskii @ 2014-09-13 13:19 UTC (permalink / raw)
  To: Mario Valencia; +Cc: 18463

> Date: Sat, 13 Sep 2014 07:27:36 -0500
> From: Mario Valencia <mariovalspi@gmail.com>
> Cc: 18463@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.






^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-13 12:27                         ` Mario Valencia
  2014-09-13 13:19                           ` Eli Zaretskii
@ 2014-09-14 16:01                           ` Eli Zaretskii
  2014-09-15 15:23                             ` Dani Moncayo
  1 sibling, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2014-09-14 16:01 UTC (permalink / raw)
  To: Mario Valencia; +Cc: 18463

> Date: Sat, 13 Sep 2014 07:27:36 -0500
> From: Mario Valencia <mariovalspi@gmail.com>
> Cc: 18463@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.





^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-14 16:01                           ` Eli Zaretskii
@ 2014-09-15 15:23                             ` Dani Moncayo
  2014-09-15 15:59                               ` Eli Zaretskii
  0 siblings, 1 reply; 24+ messages in thread
From: Dani Moncayo @ 2014-09-15 15:23 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Mario Valencia, 18463

> 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





^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-15 15:23                             ` Dani Moncayo
@ 2014-09-15 15:59                               ` Eli Zaretskii
  2014-09-15 16:22                                 ` Dani Moncayo
  0 siblings, 1 reply; 24+ messages in thread
From: Eli Zaretskii @ 2014-09-15 15:59 UTC (permalink / raw)
  To: Dani Moncayo; +Cc: mariovalspi, 18463

> Date: Mon, 15 Sep 2014 17:23:12 +0200
> From: Dani Moncayo <dmoncayo@gmail.com>
> Cc: Mario Valencia <mariovalspi@gmail.com>, 18463@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.





^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-15 15:59                               ` Eli Zaretskii
@ 2014-09-15 16:22                                 ` Dani Moncayo
  2014-09-15 17:00                                   ` Eli Zaretskii
  0 siblings, 1 reply; 24+ messages in thread
From: Dani Moncayo @ 2014-09-15 16:22 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Mario Valencia, 18463

> 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





^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-15 16:22                                 ` Dani Moncayo
@ 2014-09-15 17:00                                   ` Eli Zaretskii
  0 siblings, 0 replies; 24+ messages in thread
From: Eli Zaretskii @ 2014-09-15 17:00 UTC (permalink / raw)
  To: Dani Moncayo; +Cc: mariovalspi, 18463

> Date: Mon, 15 Sep 2014 18:22:05 +0200
> From: Dani Moncayo <dmoncayo@gmail.com>
> Cc: Mario Valencia <mariovalspi@gmail.com>, 18463@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.





^ permalink raw reply	[flat|nested] 24+ messages in thread

* bug#18463: play-sound crashes emacs if file does not exist
  2014-09-12 16:54 bug#18463: play-sound crashes emacs if file does not exist Mario Valencia
  2014-09-12 20:10 ` Eli Zaretskii
@ 2016-06-02 17:20 ` Noam Postavsky
  1 sibling, 0 replies; 24+ messages in thread
From: Noam Postavsky @ 2016-06-02 17:20 UTC (permalink / raw)
  To: 18463-done

tag 18463 + unreproducible
quit

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





^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2016-06-02 17:20 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-12 16:54 bug#18463: play-sound crashes emacs if file does not exist Mario Valencia
2014-09-12 20:10 ` Eli Zaretskii
2014-09-13  4:15   ` Mario Valencia
2014-09-13  6:41     ` Eli Zaretskii
2014-09-13  7:35       ` Mario Valencia
2014-09-13  7:45         ` Mario Valencia
2014-09-13  8:36           ` Eli Zaretskii
2014-09-13  8:31         ` Eli Zaretskii
2014-09-13  8:39           ` Eli Zaretskii
2014-09-13  8:41             ` Mario Valencia
2014-09-13  8:50               ` Eli Zaretskii
2014-09-13  8:59                 ` Mario Valencia
2014-09-13  9:50                   ` Eli Zaretskii
     [not found]                     ` <CA+3HrJVO4Ka5943-3m_tTNq2=2HvvV5QYOeAh3H_csRYg1EOEQ@mail.gmail.com>
2014-09-13  9:56                       ` bug#18463: Fwd: " Mario Valencia
2014-09-13 12:21                       ` Eli Zaretskii
2014-09-13 12:27                         ` Mario Valencia
2014-09-13 13:19                           ` Eli Zaretskii
2014-09-14 16:01                           ` Eli Zaretskii
2014-09-15 15:23                             ` Dani Moncayo
2014-09-15 15:59                               ` Eli Zaretskii
2014-09-15 16:22                                 ` Dani Moncayo
2014-09-15 17:00                                   ` Eli Zaretskii
2014-09-13  8:29   ` Eli Zaretskii
2016-06-02 17:20 ` Noam Postavsky

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).