bash core file indicating stack smashing detected

Solution Verified - Updated -


  • bash is producing core file that indicates stack smashing detected, and back trace similar to:

    #0  0x00007f266777e1d7 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
    #1  0x00007f266777f8c8 in __GI_abort () at abort.c:90
    #2  0x00007f26677bdf07 in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7f26678c7824 "*** %s ***: %s terminated\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:196
    #3  0x00007f2667858047 in __GI___fortify_fail (msg=msg@entry=0x7f26678c780c "stack smashing detected") at fortify_fail.c:31
    #4  0x00007f2667858010 in __stack_chk_fail () at stack_chk_fail.c:28
    #5  0x0000000000479760 in wait_builtin (list=<optimized out>) at ./wait.def:186
    #6  0x0000000000000000 in ?? ()


  • Red Hat Enterprise Linux (RHEL) 7
    • bash-4.2.46-20.el7_2 (or before)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In