Skip to content

BASH segfault in Debian 12.9 docker image #238

@jderusse

Description

@jderusse

Since debian:12.9 docker image, bash segfaults in interactive mode.

reproducer:

$ docker run --rm -ti debian
root@eaf3cfaa9646:/# ls
# exit from the container
$ echo $?
139

info:

 Server Version: 28.0.1
 Kernel Version: 6.11.0-17-generic
 Operating System: Ubuntu 24.04.2 LTS
 OSType: linux
 Architecture: x86_64

debug info:

$ docker run --rm -ti debian:12.9 sh
# bash
root@b5e3dca8e866:/# ls
Segmentation fault (core dumped)

# apt update; apt install gdb
...

# gdb `which bash` ./core
GNU gdb (Debian 13.1-3) 13.1
Copyright (C) 2023 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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 /usr/bin/bash...
(No debugging symbols found in /usr/bin/bash)
[New LWP 7]
[Thread debugging using libthrealib/x86_64-linux-gnu/libthread_db.d_db enabled]
Using host libthread_db library "/so.1".
Core was generated by `bash'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000073d0c35c6267 in __GI_kill () at ../sysdeps/unix/syscall-template.S:120
120     ../sysdeps/unix/syscall-template.S: No such file or directory.

note: the issue does not occur with a lower version of the host kernel (tested on 6.8)

note: the issue does not occur with debian:12.8 image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions