bash sigabrt

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

bash sigabrt

Rajaa, Mukuntha (Nokia - IN/Bangalore)
Hi,

Bash-4.4.12(1) release occasionally coredumps. This was tested on mips64 platform. Could you please confirm, is this a known bug or should I raise a ticket for this ?


GNU gdb (GDB) 7.12.1
Copyright (C) 2017 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 "mips64-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 bash...Reading symbols from /bin/bash.debug...done.
done.
[New LWP 24672]
Core was generated by `-bash'.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:58
58      ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) t a a bt

Thread 1 (LWP 24672):
#0  __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:58
#1  0x000000ffe8019aa0 in __GI_abort () at abort.c:118
#2  0x0000000120050220 in programming_error (format=0x120117290 "free: called with already freed block argument")
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/error.c:176
#3  0x00000001200f62e8 in xbotch (s=0x120117290 "free: called with already freed block argument",
    file=file@entry=0x1200fedc8 "/build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/bashline.c",
    line=line@entry=1828, e=<optimized out>, mem=0x1201424f8)
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/lib/malloc/malloc.c:319
#4  0x00000001200f63a8 in internal_free (mem=0x1201424f8,
    file=0x1200fedc8 "/build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/bashline.c",
    line=<optimized out>, flags=<optimized out>)
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/lib/malloc/malloc.c:880
#5  0x0000000120097814 in sh_xfree (string=<optimized out>, file=<optimized out>, line=<optimized out>)
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/xmalloc.c:221
#6  0x0000000120089954 in command_word_completion_function (hint_text=hint_text@entry=0x120153888 "netst",
    state=state@entry=0) at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/bashline.c:1828
#7  0x00000001200d4484 in rl_completion_matches (text=0x120153888 "netst",
    entry_function=0x120089788 <command_word_completion_function>)
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/lib/readline/complete.c:2232
#8  0x000000012008c7a0 in bash_default_completion (text=0x120153888 "netst", start=<optimized out>, end=<optimized out>,
    qc=<optimized out>, compflags=<optimized out>)
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/bashline.c:1698
#9  0x000000012008ce34 in attempt_shell_completion (text=0x120153888 "netst", start=<optimized out>, end=<optimized out>)
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/bashline.c:1630
#10 0x00000001200d45ec in gen_completion_matches (text=text@entry=0x120153888 "netst", start=start@entry=0,
    end=<optimized out>, our_func=0x1200d21a0 <rl_filename_completion_function>, found_quote=<optimized out>,
    quote_char=<optimized out>)
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/lib/readline/complete.c:1232
#11 0x00000001200d4810 in rl_complete_internal (what_to_do=<optimized out>)
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/lib/readline/complete.c:2058
#12 0x00000001200c7dcc in _rl_dispatch_subseq (key=<optimized out>, map=<optimized out>, got_subseq=<optimized out>)
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/lib/readline/readline.c:859
#13 0x00000001200c82e0 in _rl_dispatch (map=<optimized out>, key=9)
---Type <return> to continue, or q <return> to quit---
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/lib/readline/readline.c:802
#14 readline_internal_char ()
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/lib/readline/readline.c:629
#15 0x00000001200c8d78 in readline_internal_charloop ()
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/lib/readline/readline.c:656
#16 readline_internal ()
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/lib/readline/readline.c:670
#17 readline (prompt=<optimized out>)
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/lib/readline/readline.c:376
#18 0x0000000120023d6c in yy_readline_get () at /usr/homes/chet/src/bash/src/parse.y:1456
#19 0x00000001200266e4 in yy_getc () at /usr/homes/chet/src/bash/src/parse.y:1390
#20 shell_getc (remove_quoted_newline=remove_quoted_newline@entry=1) at /usr/homes/chet/src/bash/src/parse.y:2299
#21 0x000000012002a41c in read_token (command=0) at /usr/homes/chet/src/bash/src/parse.y:3115
#22 0x000000012002e654 in yylex () at /usr/homes/chet/src/bash/src/parse.y:2675
#23 yyparse () at y.tab.c:1834
#24 0x0000000120022ecc in parse_command ()
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/eval.c:261
#25 0x0000000120023024 in read_command ()
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/eval.c:305
#26 0x00000001200232c8 in reader_loop ()
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/eval.c:149
#27 0x0000000120021c9c in main (argc=1, argv=0xfffffbd6d8, env=0xfffffbd6e8)
    at /build/distro/work/shared/bash-bfb3958cf769d48678bf2b583dd69c6036c09e18/shell.c:792
(gdb) quit


Regards,
Mukunth

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: bash sigabrt

Eduardo A. Bustamante López
On Tue, Jun 20, 2017 at 9:12 AM, Rajaa, Mukuntha (Nokia -
IN/Bangalore) <[hidden email]> wrote:
> Hi,
>
> Bash-4.4.12(1) release occasionally coredumps. This was tested on mips64 platform. Could you please confirm, is this a known bug or should I raise a ticket for this ?

This error means that bash's internal allocator found an issue
(perhaps the code is trying to `free' a memory region that was not
allocated by it) and calls `abort()' which causes the process to end.

It looks like it crashed during completion for `netst'. Can you
reproduce this consistently? And if so, how?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: bash sigabrt

Rajaa, Mukuntha (Nokia - IN/Bangalore)
Hi,

No this is an occasional issue and there is no reproducer yet.

Regards,
Mukunth

-----Original Message-----
From: Eduardo Bustamante [mailto:[hidden email]]
Sent: Tuesday, June 20, 2017 9:12 PM
To: Rajaa, Mukuntha (Nokia - IN/Bangalore) <[hidden email]>
Cc: [hidden email]
Subject: Re: bash sigabrt

On Tue, Jun 20, 2017 at 9:12 AM, Rajaa, Mukuntha (Nokia -
IN/Bangalore) <[hidden email]> wrote:
> Hi,
>
> Bash-4.4.12(1) release occasionally coredumps. This was tested on mips64 platform. Could you please confirm, is this a known bug or should I raise a ticket for this ?

This error means that bash's internal allocator found an issue
(perhaps the code is trying to `free' a memory region that was not
allocated by it) and calls `abort()' which causes the process to end.

It looks like it crashed during completion for `netst'. Can you
reproduce this consistently? And if so, how?
Loading...