[SOLVED] busybox upgrade fails

Problems with packages? Post here, using [tags] of the package name.

[SOLVED] busybox upgrade fails

Postby replabrobin » Sat Feb 28, 2015 10:31 pm

I'm trying to update my ancient sheeva $this->bbcode_second_pass_code('', 'Linux delilah 3.19.0-1-ARCH #1 PREEMPT Mon Feb 9 21:55:44 MST 2015 armv5tel GNU/Linux
') and get this error
$this->bbcode_second_pass_code('', ' 1/45) upgrading busybox [----------------------] 100%
/tmp/alpm_dj2gwX/.INSTALL: line 11: 12982 Segmentation fault (core dumped) busybox rm -rf tmp/busybox.upgrade
error: command failed to execute correctly
')

the pacman upgrade continued and after reboot it seems the busybox update went through $this->bbcode_second_pass_code('', '# pacman -Qs busybox
local/busybox 1.23.1-2
Utilities for rescue and embedded systems
local/mkinitcpio-busybox 1.21.1-2
base initramfs tools
')

should I worry about the partial failure?

Edit: busybox-1.23.1-3.1 seems to work fine.
Last edited by replabrobin on Wed Mar 18, 2015 9:08 pm, edited 1 time in total.
replabrobin
 
Posts: 110
Joined: Tue Nov 30, 2010 11:18 am

Re: busybox upgrade fails

Postby moonman » Sat Feb 28, 2015 11:11 pm

Install busybox again to be sure.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: busybox upgrade fails

Postby replabrobin » Sun Mar 01, 2015 9:13 am

It seems consistent

$this->bbcode_second_pass_code('', 'root@delilah:~
# pacman -S busybox
warning: busybox-1.23.1-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) busybox-1.23.1-2

Total Installed Size: 1.01 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [----------------------] 100%
(1/1) checking package integrity [----------------------] 100%
(1/1) loading package files [----------------------] 100%
(1/1) checking for file conflicts [----------------------] 100%
(1/1) checking available disk space [----------------------] 100%
/tmp/alpm_9EZZRY/.INSTALL: line 6: 23879 Segmentation fault (core dumped) busybox stat -c %a usr/bin/busybox > tmp/busybox.upgrade/busybox.upgrade.script
error: command failed to execute correctly
(1/1) reinstalling busybox [----------------------] 100%
/tmp/alpm_xNoPtf/.INSTALL: line 11: 23882 Segmentation fault (core dumped) busybox rm -rf tmp/busybox.upgrade
error: command failed to execute correctly
root@delilah:~
# ls -alrt /tmp/busybox.upgrade/busybox.upgrade.script
-rw-r--r-- 1 root root 0 Mar 1 08:55 /tmp/busybox.upgrade/busybox.upgrade.script')

If I run that command post install I see this
$this->bbcode_second_pass_code('', 'root@delilah:/
# busybox stat -c %a usr/bin/busybox >tmp/busybox.upgrade/busybox.upgrade.script
Segmentation fault (core dumped)
')

It seems the command is failing and in fact it's the busybox stat that fails
$this->bbcode_second_pass_code('', 'root@delilah:/
# busybox stat
Segmentation fault (core dumped)')

there is a separate stat command fro coreutils and that seems fine$this->bbcode_second_pass_code('', 'root@delilah:/
# stat -c %a /tmp/busybox.upgrade/busybox.upgrade.script
644')
replabrobin
 
Posts: 110
Joined: Tue Nov 30, 2010 11:18 am

Re: busybox upgrade fails

Postby replabrobin » Sat Mar 14, 2015 2:41 pm

The latest busybox-1.23.1-3 for arm5 seems even more broken

$this->bbcode_second_pass_code('', '/tmp/alpm_w9XxmB/.INSTALL: line 8: 29743 Segmentation fault (core dumped) busybox stat -c %a usr/bin/busybox > ${_tmp_dir}/busybox.upgrade.script
error: command failed to execute correctly
( 1/32) upgrading busybox [----------------------] 100%
/tmp/alpm_IHo7rs/.INSTALL: line 13: 29749 Segmentation fault (core dumped) busybox chmod `busybox cat ${_tmp_dir}/busybox.upgrade.script` usr/bin/busybox
/tmp/alpm_IHo7rs/.INSTALL: line 13: 29751 Segmentation fault (core dumped) busybox rm -rf ${_tmp_dir}
error: command failed to execute correctly')

$this->bbcode_second_pass_code('', '# file /bin/busybox
/bin/busybox: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, stripped')

executing any command eg busybox ls causes a segfault. I tried gdb on one of the coredumps in var/lib/systemd/coredump/, but couldn't seem to decompress it with xz or lz4 (it has .lz4 extension). gdb certainly doesn't know what to do with them. I have excuted ulimit -c unlimited so am now stuck.
replabrobin
 
Posts: 110
Joined: Tue Nov 30, 2010 11:18 am

Re: busybox upgrade fails

Postby replabrobin » Sat Mar 14, 2015 2:55 pm

Read up on new coredumps etc etc coredumpctl gdb 433 (one of my tests)

$this->bbcode_second_pass_code('', 'Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/busybox...(no debugging symbols found)...done.
[New LWP 433]
Core was generated by `busybox ls'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x550e0488 in ?? ()
(gdb) bt
#0 0x550e0488 in ?? ()
#1 0x000c7284 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) ')

Edit:I tried building my own version of the package with debug on in the makepkg.conf settings; after that I see this sort of backtrace
$this->bbcode_second_pass_code('', 'warning: core file may not match specified executable file.
[New LWP 12600]
Core was generated by `src/busybox-1.23.1/busybox_unstripped ls'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x550e0488 in ?? ()
(gdb) bt
#0 0x550e0488 in ?? ()
#1 0x000c7284 in __init_ssp ()
#2 0x000c710c in __libc_start_main ()
#3 0x000101b8 in _start ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) quit')

_libc_start_main seems to be in the musl libc somewhere.
Last edited by replabrobin on Sun Mar 15, 2015 2:37 pm, edited 1 time in total.
replabrobin
 
Posts: 110
Joined: Tue Nov 30, 2010 11:18 am

Re: busybox upgrade fails

Postby replabrobin » Sat Mar 14, 2015 10:06 pm

for what it's worth the busybox in mkinitcpio-busybox 1.21.1-2 seems fine
$this->bbcode_second_pass_code('', 'robin@delilah:~
$ /lib/initcpio/busybox ls
ORIG bin devel scripts tmp vim_backups')
replabrobin
 
Posts: 110
Joined: Tue Nov 30, 2010 11:18 am


Return to Packages

Who is online

Users browsing this forum: No registered users and 5 guests