Bug 2082587

Summary: Busybox 1.35.0-2 crashes
Product: [Fedora] Fedora Reporter: Stefan Berger <stefanb>
Component: busyboxAssignee: Tom "spot" Callaway <spotrh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 36CC: admiller, davide, dvlasenk, epel-packagers-sig, spotrh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-25 17:14:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stefan Berger 2022-05-06 13:24:28 UTC
Description of problem:

Busybox 1.35.0-2 is crashing for me

Version-Release number of selected component (if applicable):

1.35.0-2

How reproducible:

I need to downgrade busybox to have it working ...


[stefanb@test ~]$ busybox sh
Segmentation fault (core dumped)
[stefanb@test ~]$ gdb --args busybox sh
GNU gdb (GDB) Fedora 11.2-3.fc36
Copyright (C) 2022 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-redhat-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 busybox...

This GDB supports auto-downloading debuginfo from the following URLs:
https://debuginfod.fedoraproject.org/
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Reading symbols from /home/stefanb/.cache/debuginfod_client/88baa87c0a47de9361e9abdbea1d01d5ee79f832/debuginfo...
(gdb) r
Starting program: /usr/sbin/busybox sh
Downloading separate debug info for /home/stefanb/system-supplied DSO at 0x7ffff7ffd000...

Program received signal SIGSEGV, Segmentation fault.
0x0000000000409597 in parse_config_file () at libbb/appletlib.c:329
329     {
(gdb) q
A debugging session is active.

        Inferior 1 [process 3691] will be killed.

Quit anyway? (y or n) y
[stefanb@test ~]$ sudo su -
[root@test ~]# busybox sh
Segmentation fault (core dumped)
[root@test ~]# sudo dnf -y reinstall busybox
Last metadata expiration check: 3:08:06 ago on Fri 06 May 2022 06:09:36 AM.
Dependencies resolved.
===========================================================================================================================================================
 Package                            Architecture                      Version                                      Repository                         Size
===========================================================================================================================================================
Reinstalling:
 busybox                            x86_64                            1:1.35.0-2.fc36                              fedora                            775 k

Transaction Summary
===========================================================================================================================================================

Total download size: 775 k
Installed size: 1.5 M
Downloading Packages:
busybox-1.35.0-2.fc36.x86_64.rpm                                                                                           4.9 MB/s | 775 kB     00:00
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                      2.0 MB/s | 775 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                   1/1
  Reinstalling     : busybox-1:1.35.0-2.fc36.x86_64                                                                                                    1/2
  Cleanup          : busybox-1:1.35.0-2.fc36.x86_64                                                                                                    2/2
  Running scriptlet: busybox-1:1.35.0-2.fc36.x86_64                                                                                                    2/2
  Verifying        : busybox-1:1.35.0-2.fc36.x86_64                                                                                                    1/2
  Verifying        : busybox-1:1.35.0-2.fc36.x86_64                                                                                                    2/2

Reinstalled:
  busybox-1:1.35.0-2.fc36.x86_64

Complete!
[root@test ~]# busybox ls
Segmentation fault (core dumped)
[root@test ~]# dnf remove busybox
Dependencies resolved.
===========================================================================================================================================================
 Package                            Architecture                      Version                                     Repository                          Size
===========================================================================================================================================================
Removing:
 busybox                            x86_64                            1:1.35.0-2.fc36                             @fedora                            1.5 M

Transaction Summary
===========================================================================================================================================================
Remove  1 Package

Freed space: 1.5 M
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                   1/1
  Erasing          : busybox-1:1.35.0-2.fc36.x86_64                                                                                                    1/1
  Running scriptlet: busybox-1:1.35.0-2.fc36.x86_64                                                                                                    1/1
  Verifying        : busybox-1:1.35.0-2.fc36.x86_64                                                                                                    1/1

Removed:
  busybox-1:1.35.0-2.fc36.x86_64

Complete!
[root@test ~]# rpm -Uvh https://kojipkgs.fedoraproject.org//packages/busybox/1.34.1/1.fc36/x86_64/busybox-1.34.1-1.fc36.x86_64.rpm
Retrieving https://kojipkgs.fedoraproject.org//packages/busybox/1.34.1/1.fc36/x86_64/busybox-1.34.1-1.fc36.x86_64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:busybox-1:1.34.1-1.fc36          ################################# [100%]
[root@test ~]# busybox sh
~ #
[root@test ~]#
logout
[stefanb@test ~]$ busybox sh
~ $



Expected results:

Busybox should work.

Additional info:

Comment 1 Stefan Berger 2022-05-06 13:51:02 UTC
Trying to upgrade to the latest build doesn't unfortunately solve the issue but I see you're not statically linking busybox anymore at this point ...

[root@test ~]# rpm -Uvh https://kojipkgs.fedoraproject.org//packages/busybox/1.35.0/4.fc36/x86_64/busybox-1.35.0-4.fc36.x86_64.rpm
Retrieving https://kojipkgs.fedoraproject.org//packages/busybox/1.35.0/4.fc36/x86_64/busybox-1.35.0-4.fc36.x86_64.rpm
error: Failed dependencies:
        ld-musl-x86_64.so.1()(64bit) is needed by busybox-1:1.35.0-4.fc36.x86_64

Comment 2 Stefan Berger 2022-05-10 15:31:22 UTC
busybox-1.35.0-4.fc36.x86_64 resolves the crashing issue. Unfortunately it is not statically linked anymore:

# ldd /sbin/busybox.musl.static
        linux-vdso.so.1 (0x00007ffcf0797000)
        ld-musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x00007f15f5b85000)

Comment 3 Ben Cotton 2023-04-25 17:06:56 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.