From: Gareth Rees <gdr@ravenbrook.com>
To: 16683@debbugs.gnu.org
Subject: bug#16683: 24.3; Crash on OS X when loading a bad PPM image
Date: Fri, 7 Feb 2014 13:53:14 +0000 [thread overview]
Message-ID: <1864A71D-D864-46CA-9219-73616E12652D@ravenbrook.com> (raw)
SUMMARY
Emacs for Mac OS X crashes when trying to display a badly formatted PPM image. The crash is 100% reproducible.
STEPS TO REPRODUCE
1. Install Emacs 24.3.1 for Mac OS X from http://emacsformacosx.com/
2. Create a file crash.ppm with contents:
P3
100 100
255 255 255
3. Run /Applications/Emacs.app/Contents/MacOS/Emacs-10.7 -Q
4. In Emacs, type C-x C-f crash.ppm RET
5. Emacs crashes. The terminal prints:
Fatal error 11: Segmentation faultAbort trap: 6
BACKTRACE
(lldb) bt all
* thread #1: tid = 0xa1297b, 0x00007fff93864097 libobjc.A.dylib`objc_msgSend + 23, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
frame #0: 0x00007fff93864097 libobjc.A.dylib`objc_msgSend + 23
frame #1: 0x000000010018c514 Emacs-10.7`ns_draw_glyph_string + 1332
frame #2: 0x000000010001f58e Emacs-10.7`draw_glyphs + 11534
frame #3: 0x000000010001fe86 Emacs-10.7`x_write_glyphs + 198
frame #4: 0x0000000100007614 Emacs-10.7`update_window_line + 756
frame #5: 0x0000000100008efb Emacs-10.7`update_window + 4171
frame #6: 0x000000010000969a Emacs-10.7`update_window_tree + 106
frame #7: 0x000000010000b519 Emacs-10.7`update_frame + 409
frame #8: 0x00000001000427d8 Emacs-10.7`redisplay_internal + 3880
frame #9: 0x00000001000ad7d9 Emacs-10.7`read_char + 7961
frame #10: 0x00000001000b061f Emacs-10.7`read_key_sequence + 7535
frame #11: 0x00000001000b2098 Emacs-10.7`command_loop_1 + 5128
frame #12: 0x0000000100118e19 Emacs-10.7`internal_condition_case + 297
frame #13: 0x00000001000b0c6e Emacs-10.7`command_loop_2 + 62
frame #14: 0x0000000100118f15 Emacs-10.7`internal_catch + 213
frame #15: 0x00000001000b26a0 Emacs-10.7`recursive_edit_1 + 240
frame #16: 0x00000001000a309d Emacs-10.7`Frecursive_edit + 237
frame #17: 0x000000010009ff2c Emacs-10.7`main + 5932
frame #18: 0x00000001000020e4 Emacs-10.7`start + 52
thread #2: tid = 0xa12994, 0x00007fff97af2e6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fff97af2e6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fff95d65f08 libsystem_pthread.dylib`_pthread_wqthread + 330
frame #2: 0x00007fff95d68fb9 libsystem_pthread.dylib`start_wqthread + 13
thread #3: tid = 0xa12995, 0x00007fff97af3662 libsystem_kernel.dylib`kevent64 + 10, queue = 'com.apple.libdispatch-manager
frame #0: 0x00007fff97af3662 libsystem_kernel.dylib`kevent64 + 10
frame #1: 0x00007fff942e443d libdispatch.dylib`_dispatch_mgr_invoke + 239
frame #2: 0x00007fff942e4152 libdispatch.dylib`_dispatch_mgr_thread + 52
thread #4: tid = 0xa12996, 0x00007fff97af2e6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fff97af2e6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fff95d65f08 libsystem_pthread.dylib`_pthread_wqthread + 330
frame #2: 0x00007fff95d68fb9 libsystem_pthread.dylib`start_wqthread + 13
thread #5: tid = 0xa129a5, 0x00007fff97af2e6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #0: 0x00007fff97af2e6a libsystem_kernel.dylib`__workq_kernreturn + 10
frame #1: 0x00007fff95d65f08 libsystem_pthread.dylib`_pthread_wqthread + 330
frame #2: 0x00007fff95d68fb9 libsystem_pthread.dylib`start_wqthread + 13
thread #6: tid = 0xa129a6, 0x00007fff97af29aa libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
frame #0: 0x00007fff97af29aa libsystem_kernel.dylib`select$DARWIN_EXTSN + 10
frame #1: 0x0000000100181ac7 Emacs-10.7`-[EmacsApp fd_handler:] + 247
frame #2: 0x00007fff95dd270b Foundation`__NSThread__main__ + 1318
frame #3: 0x00007fff95d64899 libsystem_pthread.dylib`_pthread_body + 138
frame #4: 0x00007fff95d6472a libsystem_pthread.dylib`_pthread_start + 137
frame #5: 0x00007fff95d68fc9 libsystem_pthread.dylib`thread_start + 13
thread #7: tid = 0xa129c8, 0x00007fff97aeea1a libsystem_kernel.dylib`mach_msg_trap + 10
frame #0: 0x00007fff97aeea1a libsystem_kernel.dylib`mach_msg_trap + 10
frame #1: 0x00007fff97aedd18 libsystem_kernel.dylib`mach_msg + 64
frame #2: 0x00007fff96b47315 CoreFoundation`__CFRunLoopServiceMachPort + 181
frame #3: 0x00007fff96b46939 CoreFoundation`__CFRunLoopRun + 1161
frame #4: 0x00007fff96b46275 CoreFoundation`CFRunLoopRunSpecific + 309
frame #5: 0x00007fff992f41ce AppKit`_NSEventThread + 144
frame #6: 0x00007fff95d64899 libsystem_pthread.dylib`_pthread_body + 138
frame #7: 0x00007fff95d6472a libsystem_pthread.dylib`_pthread_start + 137
frame #8: 0x00007fff95d68fc9 libsystem_pthread.dylib`thread_start + 13
VERSION DETAILS
Emacs 24.3.1 For Mac OS X (the latest version available from http://emacsformacosx.com/)
In GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2013-03-13 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1265
Configured using:
`configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin'
'--with-ns' 'build_alias=i686-apple-darwin'
'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.7
-isystem
--
Gareth Rees
next reply other threads:[~2014-02-07 13:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-07 13:53 Gareth Rees [this message]
2014-02-09 22:30 ` bug#16683: 24.3; Crash on OS X when loading a bad PPM image Marcus Karlsson
2014-02-12 7:53 ` Jan Djärv
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1864A71D-D864-46CA-9219-73616E12652D@ravenbrook.com \
--to=gdr@ravenbrook.com \
--cc=16683@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.