https://qa.mandrakesoft.com/show_bug.cgi?id=675

           Product: glibc
         Component: glibc
           Summary: Muttrc reply_regexp='^((Re:)? *)*' causes crash in glibc
           Version: 2.3.1-2mdk
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


After upgrading glibc, Mutt started to crash. The crash is caused by the
reply_regexp setting from Muttrc (or ~/.muttrc).

The simplest regexp that still crashes is:
  set reply_regexp='^((Re:)? *)*'

Backstrace points to glibc:
LD_LIBRARY_PATH=/usr/lib/debug gdb /usr/bin/mutt
#0  __libc_malloc (bytes=4) at malloc.c:3292
#1  0x4021b14b in re_node_set_init_1 (set=0x42c72aa8, elem=0) at
regex_internal.c:615
#2  0x4021b8ca in re_node_set_insert (set=0x42c72aa8, elem=838201) at
regex_internal.c:863
#3  0x40210730 in duplicate_node_closure (dfa=0x8107a90, top_org_node=2,
top_clone_node=838200, root_node=0, init_constraint=16) at regcomp.c:1283
#4  0x402106e9 in duplicate_node_closure (dfa=0x8107a90, top_org_node=1,
top_clone_node=838198, root_node=0, init_constraint=16) at regcomp.c:1274

(keeps looping on duplicate_node_closure)

#104777 0x402106e9 in duplicate_node_closure (dfa=0x8107a90, top_org_node=1,
top_clone_node=14, root_node=0, init_constraint=16) at regcomp.c:1274
#104778 0x402106e9 in duplicate_node_closure (dfa=0x8107a90, top_org_node=0,
top_clone_node=0, root_node=0, init_constraint=16) at regcomp.c:1274
#104779 0x40210cd2 in calc_eclosure_iter (new_set=0xbfffe790, dfa=0x8107a90,
node=0, root=1) at regcomp.c:1410
#104780 0x40210a33 in calc_eclosure (dfa=0x8107a90) at regcomp.c:1368
#104781 0x402102be in analyze (dfa=0x8107a90) at regcomp.c:980
#104782 0x4020fe68 in re_compile_internal (preg=0x8108c28, pattern=0x8137b28
"^((Re:)? *)*", length=12, syntax=242428) at regcomp.c:777
#104783 0x4020faff in __regcomp (preg=0x8108c28, pattern=0x8137b28 "^((Re:)?
*)*", cflags=0) at regcomp.c:495
#104784 0x08065747 in strcpy () at strcpy:-1



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

Reply via email to