Modify

Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#12175 closed defect (fixed)

squashfs in imagebuilder segfaults

Reported by: dgolle@… Owned by: developers
Priority: response-needed Milestone: Barrier Breaker 14.07
Component: toolchain Version: Attitude Adjustment 12.09 Beta
Keywords: imagebuilder, mksquashfs, segfault Cc: john@…

Description

cp /home/public/source/imagebuilder/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-i486/build_dir/linux-ramips_rt305x/uImage.lzma /home/public/source/imagebuilder/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-i486/bin/ramips/openwrt-ramips-rt305x-uImage.bin
/home/public/source/imagebuilder/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-i486/staging_dir/host/bin/mksquashfs4 /home/public/source/imagebuilder/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-i486/build_dir/target-mipsel_r2_uClibc-0.9.33.2/root-ramips /home/public/source/imagebuilder/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-i486/build_dir/linux-ramips_rt305x/root.squashfs -nopad -noappend -root-owned -comp xz -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2 -b 256k -processors 1
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /home/public/source/imagebuilder/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-i486/build_dir/linux-ramips_rt305x/root.squashfs, block size 262144.
[===================================================-                                                                                  ] 159/414  38%make[3]: *** [install] Segmentation fault
make[3]: Leaving directory `/home/public/source/imagebuilder/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-i486/target/linux/ramips/image'
make[2]: *** [build_image] Error 2
make[2]: Leaving directory `/home/public/source/imagebuilder/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-i486'
make[1]: *** [_call_image] Error 2
make[1]: Leaving directory `/home/public/source/imagebuilder/OpenWrt-ImageBuilder-ramips_rt305x-for-linux-i486'
make: *** [image] Error 2

The 10.03.1 image builder works just fine on the same host which is a multilib x86_64 system running archlinux.

Attachments (0)

Change History (6)

comment:1 Changed 5 years ago by jow

  • Priority changed from normal to response-needed

Attach your ./scripts/diffconfig.sh output please.

comment:2 Changed 5 years ago by dgolle@…

I used the ImageBuilder download for 12.09-beta from downloads.openwrt.org.

[daniel@earthship OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486]$ ./scripts/diffconfig.sh
can't open file at ./scripts/kconfig.pl line 32.
can't open file at ./scripts/kconfig.pl line 32.
CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_generic=y
CONFIG_TARGET_ar71xx_generic_Default=y
CONFIG_ALL=y
CONFIG_DEVEL=y
CONFIG_TOOLCHAINOPTS=y

I just made a fresh Debian 32-bit install, there
staging_dir/host/bin/opkg
also segfaults right away, not even getting to mksquashfs...
Maybe libc6 linkage is messed up somehow...?

The main difference I can see is that for some reason the imagebuilder is now targeting i486 instead of i686...

comment:3 Changed 5 years ago by jow

Yes the 12.09 release one is improperly packaged. The following copy should fix it:

cp ./staging_dir/host/bin/bundled/lib/*/lib*.so* ./staging_dir/host/bin/bundled/lib/

comment:4 Changed 5 years ago by dgolle@…

Did the trick. Thanks!

comment:5 Changed 5 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

The underlying issue has already been fixed with r33353 and fixed tarballs are uploading at the moment.

comment:6 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.