Subject: Re: bug#41184: 28.0.50; Crash on NS when opening text file in a possibly invalid zip archive

From: Andrii Kolomoiets <[email-masked]>
Date: Mon, 11 May 2020 18:57:52 +0300

Eli Zaretskii <[email-masked]> writes:

>> - emacs -Q
>> - C-x C-f <path to attached zip> RET
>> - RET on the first file in archive (the one with .txt extension)
>
> Can you please show the backtrace?  Without that, the bug report is
> only useful if the crash can be reproduced, and you shouldn't rely on
> that (e.g, I couldn't reproduce it).

For this time not only the subject contains "NS" but also the message
body contains "Mac OS X" ;-)

Can reproduce it with those steps.  Here is backtrace:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: aString != nil'
abort() called
terminating with uncaught exception of type NSException

Application Specific Backtrace 1:
0   CoreFoundation                      0x00007fff32c47d07 __exceptionPreprocess + 250
1   libobjc.A.dylib                     0x00007fff6b96b5bf objc_exception_throw + 48
2   CoreFoundation                      0x00007fff32c70ec8 +[NSException raise:format:arguments:] + 88
3   Foundation                          0x00007fff3535bf3d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
4   AppKit                              0x00007fff2fe991c4 -[NSWindow setTitle:] + 185
5   Emacs-x86_64-10_14                  0x000000010b22dfb1 ns_set_name_internal + 161
6   Emacs-x86_64-10_14                  0x000000010b227e8b ns_implicitly_set_name + 475
7   Emacs-x86_64-10_14                  0x000000010b08a531 gui_consider_frame_title + 609
8   Emacs-x86_64-10_14                  0x000000010b05f9fc redisplay_internal + 1324
9   Emacs-x86_64-10_14                  0x000000010b0fdbe5 read_char + 2213
10  Emacs-x86_64-10_14                  0x000000010b0fb7aa read_key_sequence + 1722
11  Emacs-x86_64-10_14                  0x000000010b0f9fac command_loop_1 + 1340
12  Emacs-x86_64-10_14                  0x000000010b180b87 internal_condition_case + 263
13  Emacs-x86_64-10_14                  0x000000010b10a120 command_loop_2 + 48
14  Emacs-x86_64-10_14                  0x000000010b1803ab internal_catch + 267
15  Emacs-x86_64-10_14                  0x000000010b24c385 command_loop.cold.1 + 69
16  Emacs-x86_64-10_14                  0x000000010b0f9073 command_loop + 131
17  Emacs-x86_64-10_14                  0x000000010b0f8fa3 recursive_edit_1 + 115
18  Emacs-x86_64-10_14                  0x000000010b0f91fb Frecursive_edit + 347
19  Emacs-x86_64-10_14                  0x000000010b0f7dd7 main + 7431
20  libdyld.dylib                       0x00007fff6cb12cc9 start + 1

--
Andrii