pkgsrc-Bugs archive

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

pkg/50129: bogofilter crashes reliably with unicode enabled



>Number:         50129
>Category:       pkg
>Synopsis:       bogofilter crashes reliably with unicode enabled
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 05 16:00:00 +0000 2015
>Originator:     Hisashi Todd Fujinaka
>Release:        NetBSD 7.0_RC2
>Organization:
None
>Environment:
	
	
System: NetBSD chris.i8u.org 7.0_RC2 NetBSD 7.0_RC2 (CHRIS) #92: Sun Aug 2 20:43:50 PDT 2015 htodd%chris.i8u.org@localhost:/usr/obj/amd64/sys/arch/amd64/compile/CHRIS amd64
Architecture: x86_64
Machine: amd64
>Description:
bogofilter crashes with unicode enabled. There appears to be a bug filed in
Debian regarding the same problem:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733622

htodd@chris:/home/bogofilter > sudo gdb /usr/pkg/bin/bogofilter /home/bogofilter/bogofilter.core
GNU gdb (GDB) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/pkg/bin/bogofilter...done.
[New process 1]
Core was generated by `bogofilter'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  _citrus_UTF8_wcrtomb_priv (s=0x7f7ff7800000 <error: Cannot access memory at address 0x7f7ff7800000>, n=<optimized out>,
    wc=<optimized out>, nresult=0x7f7fffffda40, psenc=<optimized out>, ei=<optimized out>)
    at /usr/src/lib/libc/citrus/modules/citrus_utf8.c:299
299                     s[0] = c;
(gdb) bt
#0  _citrus_UTF8_wcrtomb_priv (s=0x7f7ff7800000 <error: Cannot access memory at address 0x7f7ff7800000>, n=<optimized out>,
    wc=<optimized out>, nresult=0x7f7fffffda40, psenc=<optimized out>, ei=<optimized out>)
    at /usr/src/lib/libc/citrus/modules/citrus_utf8.c:299
#1  0x00007f7ff5a01364 in _citrus_stdenc_cstomb (nresult=0x7f7fffffda40, ps=<optimized out>, idx=<optimized out>,
    csid=<optimized out>, n=<optimized out>, s=<optimized out>, ce=<optimized out>) at /usr/src/lib/libc/citrus/citrus_stdenc.h:87
#2  cstombx (se=0x7f7ff7744458, se=0x7f7ff7744458, nresult=0x7f7fffffda40, idx=<optimized out>, csid=<optimized out>,
    n=<optimized out>, s=<optimized out>) at /usr/src/lib/libc/citrus/modules/citrus_iconv_std.c:119
#3  _citrus_iconv_std_iconv_convert (cv=<optimized out>, in=<optimized out>, inbytes=0x7f7fffffdaf8, out=0x7f7fffffdb00,
    outbytes=0x7f7fffffdb08, flags=0, invalids=0x7f7fffffdaa8) at /usr/src/lib/libc/citrus/modules/citrus_iconv_std.c:563
#4  0x00007f7ff62588d7 in _citrus_iconv_convert (nresults=0x7f7fffffdaa8, flags=0, outbytes=0x7f7fffffdaa8, out=0x7f7fffffdb00,
    inbytes=0x7f7fffffdaf8, in=0x7f7fffffdaf0, cv=0x7f7ff7701170) at /usr/src/lib/libc/citrus/citrus_iconv.h:65
#5  _iconv (handle=handle@entry=0x7f7ff7701170, in=in@entry=0x7f7fffffdaf0, szin=szin@entry=0x7f7fffffdaf8,
    out=out@entry=0x7f7fffffdb00, szout=szout@entry=0x7f7fffffdb08) at /usr/src/lib/libc/iconv/iconv.c:97
#6  0x00000000004141f7 in convert (xd=0x7f7ff7701170, src=0x7f7ff771f3e0, dst=0x7f7fffffdb80) at iconvert.c:91
#7  0x00000000004078c2 in get_decoded_line (buff=buff@entry=0x7f7fffffdb80) at lexer.c:225
#8  0x0000000000407a83 in yyinput (
    buf=0x7f7ff77fffd7 "in-width: 76px;\">view deal</a></td></tr><"<error: Cannot access memory at address 0x7f7ff7800000>,
    used=20439, size=8192) at lexer.c:317
#9  0x0000000000409c7b in yy_get_next_buffer () at lexer_v3.c:3157
#10 yylex () at lexer_v3.c:2987
#11 0x000000000040e633 in parse_new_token (token=0x7f7fffffdcb0) at token.c:206
#12 get_token (token=token@entry=0x7f7fffffdcb0) at token.c:153
#13 0x00000000004059a6 in collect_words (wh=wh@entry=0x7f7ff77441a0) at collect.c:48
#14 0x0000000000402adb in bogofilter (argc=argc@entry=0, argv=<optimized out>) at bogofilter.c:98
#15 0x0000000000404646 in bogomain (argc=argc@entry=4, argv=argv@entry=0x7f7fffffddc0) at bogomain.c:67
#16 0x0000000000415047 in main (argc=4, argv=0x7f7fffffddc0) at main.c:31
(gdb) p s
$1 = 0x7f7ff7800000 <error: Cannot access memory at address 0x7f7ff7800000>
(gdb) p *s
Cannot access memory at address 0x7f7ff7800000
(gdb) q


>How-To-Repeat:
install bogofilter
get email from livingsocial
	
>Fix:
CONFIGURE_ARGS+=    --disable-unicode

There have to be better solutions, but upstream sounds quiet.
	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index