bug-ncurses
[Top][All Lists]
Advanced

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

Re: Segment fault in tic


From: Ziqiao Kong
Subject: Re: Segment fault in tic
Date: Mon, 24 Apr 2023 02:06:28 +0200

Weird, I can no longer reproduce the backtrace before. Either with or
without `--enable-debug` gives the same backtrace. Maybe the binary
was some cache I forget to clean & rebuild.

Anyway, on my side the backtrace was the one I just posted.

I also tried `--with-debug=no` as suggested, the backtrace is exactly the same.

Bests,
Ziqiao

On Mon, Apr 24, 2023 at 1:57 AM Ziqiao Kong <ziqiaokong@gmail.com> wrote:
>
> Hello,
>
> Thanks for your timely response!
>
> I rebuild it with `./configure`, and it now gives backtrace:
>
> ```
> Program received signal SIGSEGV, Segmentation fault.
> __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:74
> 74 ../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
> (gdb) bt
> #0  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:74
> #1  0x000055b37d125f11 in _nc_wrap_entry ()
> #2  0x000055b37d1204d0 in _nc_parse_entry ()
> #3  0x000055b37d11cee4 in _nc_read_entry_source ()
> #4  0x000055b37d1034d6 in main ()
> (gdb)
> ```
>
> bests,
> Ziqiao
>
> On Mon, Apr 24, 2023 at 1:52 AM Thomas Dickey <dickey@his.com> wrote:
> >
> > On Sun, Apr 23, 2023 at 07:48:11PM -0400, Thomas Dickey wrote:
> > > On Sun, Apr 23, 2023 at 10:32:39PM +0200, Ziqiao Kong wrote:
> > > > Hello,
> > > >
> > > > Our fuzzer finds a segment fault for tic.
> >
> > (_not_ a "segment fault").
> >
> > man abort:
> >
> > NAME
> >        abort - cause abnormal process termination
> >
> > SYNOPSIS
> >        #include <stdlib.h>
> >
> >        void abort(void);
> >
> > DESCRIPTION
> >        The abort() function first unblocks the SIGABRT signal, and then 
> > raises
> >        that signal for the calling process (as though  raise(3)  was  
> > called).
> >        This  results  in  the  abnormal  termination of the process unless 
> > the
> >        SIGABRT signal is caught and the signal handler does  not  return  
> > (see
> >        longjmp(3)).
> >
> > > >
> > > > Steps to reproduce:
> > > >
> > > > ```
> > > > wget -c 
> > > > "https://invisible-island.net/archives/ncurses/current/ncurses-6.4-20230418.tgz";
> > > > tar xf ncurses-6.4-20230418.tgz
> > > > cd ncurses-6.4-20230418
> > > > ./configure --enable-debug && make -j
> > >               ^^^^^^^^^^^^^^
> > > The core dump is intentional for the debug configuration.
> > >
> > > (if you're not in the debugger, you'll see the error message printed
> > > right before that).
> > >
> > > --
> > > Thomas E. Dickey <dickey@invisible-island.net>
> > > https://invisible-island.net
> >
> >
> >
> > --
> > Thomas E. Dickey <dickey@invisible-island.net>
> > https://invisible-island.net



reply via email to

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