[TRE-general] segv from /usr/lib/libtre.so.4 (tre-0.7.5)

Paolo oopla at users.sf.net
Thu Jan 4 18:36:14 EET 2007


hi,

while testing crm114 (crm114.sf.net) got segv from libtre:

$ gdb --args crm -w 8192 '-{window;isolate (:f:) /QUICKREF.txt/; match (:: :a: :b:) [:f:] /((?.+)^$.{10}).*/; output /:*:a:\n/}'

tarting program: /usr/local/bin/crm-btr -w 8192 -\{window\;isolate\ \(:f:\)\ /QUICKREF.txt/\;\ match\ \(::\ :a:\ :b:\)\ \[:f:\]\ /\(\(\?.+\)\^\$.\{10\}\).\*/\;\ output\ /:\*:a:\\n/\}

Program received signal SIGSEGV, Segmentation fault.
0x40051886 in tre_have_approx () from /usr/lib/libtre.so.4
(gdb) bt
#0  0x40051886 in tre_have_approx () from /usr/lib/libtre.so.4
#1  0x400519f3 in regnexec () from /usr/lib/libtre.so.4
#2  0x080675ef in crm_regexec (preg=0xbffe0bb4, 
    string=0x808a0d5 "QUICKREF.txt\n", string_len=12, nmatch=256, 
    pmatch=0xbffe17cc, eflags=0, aux_string=0x0) at crmregex_tre.c:271
#3  0x08054916 in crm_expr_match (csl=0x807a7e8, apb=0x808dd60)
    at crm_expr_match.c:429
#4  0x0804cb24 in crm_invoke () at crm_exec_engine.c:542
#5  0x0804abf6 in main (argc=4, argv=0xbffff9d4) at crm_main.c:751
(gdb)

the guilty RE is '((?.+)^$.{10}).*'

that's on Debian Woody, gcc-2.95.4, tre-0.7.5

-- 
 paolo


More information about the TRE-general mailing list