[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#187991: bug#1536: mutt-1.5.4i: Segment fault with long lines when LANG=*.UTF-8



On Sun, Apr 27, 2003 at 05:59:24PM +0200, Anders Helmersson wrote:
> On Sat, 2003-04-26 at 19:38:11 +0200, Thomas Roessler wrote:
> > With mutt -F <your colors> -n -f segfault, I can't reproduce this.
> > (Latest CVS checkout; Redhat 7.3.)
> 
> The problem seems to be related to regex. The segfault occurs in
> function regexec invoked from line 828 in pager.c with the long line as
> the buf argument.
> 
> The buf argument fits just within the 1024 bytes of buf; the last
> element, buf[1023], is "\0".
> 
> When I compile the latest CVS checkout with --with-regex the problem
> disappears. Thus, the problem might be in libc.so.6 of my debian
> installation (libc6 2.3.1-16). I have tried to debug the code (without
> --with-regex) both with LANG=sv_SE.UTF-8 and LC_CTYPE=sv_SE.UTF-8. I can
> see no difference between the calls of the regexec. However
> LANG=sv_SE.UTF-8 produces the segfault, while LC_CTYPE=sv_SE.UTF-8 does
> not.

This might be related to Debian bug #187991 (grep 2.5.1 segfaults in
UTF-8 locale) [1]?

> Anders

cu
Adrian

[1] http://bugs.debian.org/187991

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed




Reply to: