bug-inetutils
[Top][All Lists]
Advanced

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

Re: inetutils-2.2 released [stable]


From: Michael Brunnbauer
Subject: Re: inetutils-2.2 released [stable]
Date: Mon, 13 Sep 2021 11:02:49 +0200

Hello Simon,

On Fri, Sep 10, 2021 at 01:22:50PM +0200, Simon Josefsson wrote:
> Could you try to reproduce the problem standalone?  The file regexp.m4
> contains the C code to trigger the bug,

Not usable. But configure actually dumps the code in config.log - I extracted
it from there.

> could you extract it and build it separately and run it under gdb and get a 
> 'bt full' backtrace?

Sourcecode is attached. It was compiled with "gcc -o test -g -O2 test.c".
Here is the backtrace:

gdb test
GNU gdb (GDB) 9.1
Copyright (C) 2020 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-pc-linux-gnu".
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 test...
(gdb) run
Starting program: /home/bold/GNU/inetutils-2.2/test

Program received signal SIGSEGV, Segmentation fault.
memcpy@GLIBC_2.2.5 ()
    at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:208
208             VMOVU   (%rsi), %VEC(0)
(gdb) bt full
#0  memcpy@GLIBC_2.2.5 ()
    at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:208
No locals.
#1  0x00007ffff7e9f1b6 in pop_fail_stack (fs=fs@entry=0x7fffffffe0a0,
    pidx=pidx@entry=0x7fffffffe08c, nregs=nregs@entry=2,
    regs=regs@entry=0x406da0, eps_via_nodes=eps_via_nodes@entry=0x7fffffffe090)
    at regexec.c:1351
        num = <optimized out>
#2  0x00007ffff7eaa271 in set_regs (fl_backtrack=<optimized out>,
    pmatch=0x406da0, nmatch=2, mctx=0x7fffffffe150, preg=0x406cb0)
    at regexec.c:1449
        dfa = <optimized out>
        idx = 0
        eps_via_nodes = {alloc = 2, nelem = 1, elems = 0x40b340}
        cur_node = <optimized out>
        fs = 0x7fffffffe0a0
        fs_body = {num = -1, alloc = 4, stack = 0x40ba30}
        prev_match = {u = {dynarray_abstract = {used = 2, allocated = 16,
              array = 0x7fffffffe0c8}, dynarray_header = {used = 2,
              allocated = 16, array = 0x7fffffffe0c8}}, scratch = {{rm_so = 0,
              rm_eo = 1}, {rm_so = 0, rm_eo = 1}, {rm_so = 2, rm_eo = 0}, {
              rm_so = 16, rm_eo = 0}, {rm_so = 4236744, rm_eo = 0}, {
              rm_so = 4236720, rm_eo = 0}, {rm_so = 4222128, rm_eo = 0}, {
              rm_so = 50, rm_eo = 0}, {rm_so = -135964009, rm_eo = 32767}, {
              rm_so = 4222912, rm_eo = 0}, {rm_so = 4236744, rm_eo = 0}, {
              rm_so = 4236720, rm_eo = 0}, {rm_so = 2, rm_eo = 0}, {
              rm_so = 4222912, rm_eo = 0}, {rm_so = -135668317,
              rm_eo = 32767}, {rm_so = 0, rm_eo = 1}}}
        prev_idx_match = <optimized out>
        dfa = <optimized out>
        idx = <optimized out>
        cur_node = <optimized out>
        eps_via_nodes = <optimized out>
        fs = <optimized out>
        fs_body = <optimized out>
        prev_match = <optimized out>
        prev_idx_match = <optimized out>
        reg_idx = <optimized out>
#3  re_search_internal (preg=preg@entry=0x4040a0 <regex>,
    string=string@entry=0x402080 <data> "a", length=length@entry=1,
    start=<optimized out>, start@entry=0, last_start=<optimized out>,
    last_start@entry=1, stop=stop@entry=1, nmatch=2, pmatch=0x406da0, eflags=0)
    at regexec.c:849
        reg_idx = <optimized out>
        err = _REG_NOERROR
        dfa = 0x406cb0
        left_lim = 0
        right_lim = 1
        incr = 1
        fl_longest_match = <optimized out>
        match_kind = 8
        match_first = 0
        match_last = <optimized out>
        extra_nmatch = 0
        sb = true
        ch = <optimized out>
        mctx = {input = {raw_mbs = 0x402080 <data> "a",
            mbs = 0x402080 <data> "a", wcs = 0x0, offsets = 0x0, cur_state = {
              __count = 0, __value = {__wch = 0, __wchb = "\000\000\000"}},
            raw_mbs_idx = 0, valid_len = 1, valid_raw_len = 1, bufs_len = 2,
            cur_idx = 1, raw_len = 1, len = 1, raw_stop = 1, stop = 1,
            tip_context = 6, trans = 0x0, word_char = 0x406d58,
            icase = 0 '\000', is_utf8 = 0 '\000', map_notascii = 0 '\000',
            mbs_allocated = 0 '\000', offsets_needed = 0 '\000',
            newline_anchor = 1 '\001', word_ops_used = 0 '\000',
            mb_cur_max = 1}, dfa = 0x406cb0, eflags = 0, match_last = 1,
          last_node = 8, state_log = 0x40b300, state_log_top = 1,
          nbkref_ents = 3, abkref_ents = 4, bkref_ents = 0x40b130,
          max_mb_elem_len = 0, nsub_tops = 2, asub_tops = 2,
          sub_tops = 0x406400}
        fastmap = 0x0
        t = <optimized out>
#4  0x00007ffff7eab8a2 in re_search_stub (bufp=bufp@entry=0x4040a0 <regex>,
    string=string@entry=0x402080 <data> "a", length=length@entry=1,
    start=start@entry=0, range=range@entry=1, stop=stop@entry=1,
    regs=0x7fffffffe300, ret_len=false) at regexec.c:425
        result = <optimized out>
        pmatch = 0x406da0
        nregs = 2
        rval = <optimized out>
        eflags = <optimized out>
        dfa = <optimized out>
        last_start = <optimized out>
#5  0x00007ffff7eac1a0 in __re_search (bufp=bufp@entry=0x4040a0 <regex>,
    string=string@entry=0x402080 <data> "a", length=length@entry=1,
    start=start@entry=0, range=range@entry=1, regs=regs@entry=0x7fffffffe300)
    at regexec.c:289
No locals.
#6  0x000000000040151b in main () at test1.c:650
        data = "a"
        datalen = 1
        result = 0
        regex = {buffer = 0x406cb0, allocated = 224, used = 224,
          syntax = 16843462, fastmap = 0x0, translate = 0x0, re_nsub = 1,
          can_be_null = 0, regs_allocated = 0, fastmap_accurate = 0,
          no_sub = 0, not_bol = 0, not_eol = 0, newline_anchor = 1}
        folded_chars = 
"\000\001\002\003\004\005\006\a\b\t\n\v\f\r\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037
 
!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\177\200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217\220\221\222\223\224\225\226\227\230\231\232\233\234\235\236\237
 ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇ"...
        i = <optimized out>
        s = <optimized out>
        regs = {num_regs = 0, start = 0x0, end = 0x0}
        pat_sub2 = "\\(a*\\)*a*\\1"

Regards,

Michael Brunnbauer

-- 
++  Michael Brunnbauer
++  netEstate GmbH
++  Geisenhausener Straße 11a
++  81379 München
++  Tel +49 89 32 19 77 80
++  Fax +49 89 32 19 77 89 
++  E-Mail brunni@netestate.de
++  https://www.netestate.de/
++
++  Sitz: München, HRB Nr.142452 (Handelsregister B München)
++  USt-IdNr. DE221033342
++  Geschäftsführer: Michael Brunnbauer, Franz Brunnbauer
++  Prokurist: Dipl. Kfm. (Univ.) Markus Hendel

Attachment: test.c
Description: Text document

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]