GNU bug report logs - #17249
24.3; segfault with certain unicode strings in C locale

Previous Next

Package: emacs;

Reported by: Richard Hansen <rhansen <at> bbn.com>

Date: Sat, 12 Apr 2014 06:12:02 UTC

Severity: normal

Found in version 24.3

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Richard Hansen <rhansen <at> bbn.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 17249 <at> debbugs.gnu.org
Subject: bug#17249: 24.3; segfault with certain unicode strings in C locale
Date: Mon, 14 Apr 2014 00:56:28 -0400
On 2014-04-12 03:23, Eli Zaretskii wrote:
>> From: Richard Hansen <rhansen <at> bbn.com>
>> Date: Sat, 12 Apr 2014 02:11:20 -0400
>>
>> I can get emacs to crash with these shell commands:
>>
>>     # generate a unicode string
>>     printf '\040\314\210\302\273\n' >crash-emacs.txt
>>     LC_ALL=C emacs -nw -Q +1:3 crash-emacs.txt
>>
>> If I set LC_ALL=en_US.utf8 then it does not crash.
> 
> I can reproduce this in Emacs 24.3, but not with the current
> development code, so I guess this was already fixed.

Thanks for checking!

I just did my own testing and agree that this has already been fixed.  I
checked out the latest emacs-24 branch of the Git repository
(git://git.savannah.gnu.org/emacs.git) and could not reproduce the
problem.  To ensure the crash in 24.3 wasn't due to certain arguments
passed to 'configure' (e.g., -fstack-protector in the CFLAGS used by
Ubuntu), I checked out the emacs-24.3 tag, ran 'configure' with the same
arguments I used to build the tip of the emacs-24 branch, and was still
able to reproduce the crash.

Thanks,
Richard




This bug report was last modified 11 years and 104 days ago.

Previous Next


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