NetBSD-Bugs archive

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

Re: lib/56024: Recent regex change breaks textproc/link-grammar



What' going on here is that the package was expecting to have gnu regex that supports \w out of the box.
Our old regex code just ignored \<characters> that it did not understand, so it was not working correctly either; it was just ignoring the error.
The current regex code will work properly if you pass REG_GNU in regcomp(). This is not the default behavior.

Best,

christos

> On Feb 26, 2021, at 10:30 AM, ryo%tetera.org@localhost wrote:
> 
>> Number:         56024
>> Category:       lib
>> Synopsis:       Recent regex change breaks textproc/link-grammar
>> Confidential:   no
>> Severity:       serious
>> Priority:       medium
>> Responsible:    lib-bug-people
>> State:          open
>> Class:          sw-bug
>> Submitter-Id:   net
>> Arrival-Date:   Fri Feb 26 15:30:01 +0000 2021
>> Originator:     Ryo ONODERA
>> Release:        NetBSD 9.99.80
>> Organization:
> Ryo ONODERA // ryo%tetera.org@localhost
> PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3
>> Environment:
> 
> 
> System: NetBSD brownie 9.99.80 NetBSD 9.99.80 (DTRACE7) #0: Fri Feb 26 15:59:31 JST 2021 ryoon@brownie:/usr/world/9.99/amd64/obj/sys/arch/amd64/compile/DTRACE7 amd64
> Architecture: x86_64
> Machine: amd64
>> Description:
> After recent regex change in libc, textproc/link-grammar failed to load
> dictionary file.
> 
> # cd /usr/pkgsrc/textproc/link-grammar
> # make install
> $ link-parser en
> link-grammar: Info: Dictionary found at /usr/pkg/share/link-grammar/en/4.0.dict
> link-grammar: Error: Failed to compile regex: "^\w.+ing$" (<ING-WORDS>): trailing backslash (\) (5)
> link-grammar: Fatal error: Unable to open dictionary.
> 
> On HEAD of 202102202230Z from
> http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/202102202230Z/amd64/binary/sets/ ,
> link-parser command works fine.
> 
> $ link-parser en
> link-grammar: Info: Dictionary found at /usr/pkg/share/link-grammar/en/4.0.dict
> link-grammar: Info: Dictionary version 5.8.1, locale en_US.UTF-8
> link-grammar: Info: Library version link-grammar-5.8.1. Enter "!help" for help.
> linkparser>
> 
>> How-To-Repeat:
> # cd /usr/pkgsrc/textproc/link-grammar
> # make install
> % link-parser en
> 
>> Fix:
> 
> I have no idea.
> 
>> Unformatted:
> 
> 

Attachment: signature.asc
Description: Message signed with OpenPGP



Home | Main Index | Thread Index | Old Index