All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Problems with the package wget version 1.19.5
@ 2018-09-19  8:09 Oscar Gomez Fuente
  2018-09-19 19:14 ` Peter Seiderer
  0 siblings, 1 reply; 5+ messages in thread
From: Oscar Gomez Fuente @ 2018-09-19  8:09 UTC (permalink / raw)
  To: buildroot

Hi everyone,

I had a problem with the package wget. The compilation was successful,
but when I executed on my HW platform (Raspberry Pi 3B+), I've got a
segmentation fault.

I using Buildroot 2018.02.5 and the version of the package wget is:

WGET_VERSION = 1.19.5

Could anyone check if this package is working fine?

Best regards.

Oscar Gomez Fuente
TST Sistemas
www.tst-sistemas.es

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Problems with the package wget version 1.19.5
  2018-09-19  8:09 [Buildroot] Problems with the package wget version 1.19.5 Oscar Gomez Fuente
@ 2018-09-19 19:14 ` Peter Seiderer
  2018-09-26 10:53   ` Oscar Gomez Fuente
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Seiderer @ 2018-09-19 19:14 UTC (permalink / raw)
  To: buildroot

Hello Oscar,

On Wed, 19 Sep 2018 10:09:17 +0200, Oscar Gomez Fuente <oscargomezf@gmail.com> wrote:

> Hi everyone,
> 
> I had a problem with the package wget. The compilation was successful,
> but when I executed on my HW platform (Raspberry Pi 3B+), I've got a
> segmentation fault.
> 
> I using Buildroot 2018.02.5 and the version of the package wget is:
> 
> WGET_VERSION = 1.19.5
> 
> Could anyone check if this package is working fine?

Please post your .config/defconfig file (with the bare raspberrypi3_defconfig
wget is disabled because of the BR2_USE_WCHAR dependency (and BR2_PACKAGE_BUSYBOX_SHOW_OTHERS))?

Did you try a complete rebuild after changing your configuration (see [1])?

Regards,
Peter

[1] http://nightly.buildroot.org/manual.html#full-rebuild

> 
> Best regards.
> 
> Oscar Gomez Fuente
> TST Sistemas
> www.tst-sistemas.es
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Problems with the package wget version 1.19.5
  2018-09-19 19:14 ` Peter Seiderer
@ 2018-09-26 10:53   ` Oscar Gomez Fuente
  2018-09-29 17:49     ` Peter Seiderer
  0 siblings, 1 reply; 5+ messages in thread
From: Oscar Gomez Fuente @ 2018-09-26 10:53 UTC (permalink / raw)
  To: buildroot

Hi Peter,

Thank you in advanced for your help.

> Please post your .config/defconfig file (with the bare raspberrypi3_defconfig
> wget is disabled because of the BR2_USE_WCHAR dependency (and BR2_PACKAGE_BUSYBOX_SHOW_OTHERS))?

BR2_arm=y
BR2_cortex_a53=y
BR2_ARM_FPU_NEON_VFPV4=y
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=y
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TARGET_GENERIC_HOSTNAME="tstpi"
BR2_TARGET_GENERIC_ISSUE="Welcome to Buildroot 2018.02.5 by TST"
BR2_TARGET_GENERIC_PASSWD_SHA512=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_TARGET_GENERIC_ROOT_PASSWD="tstpi"
BR2_SYSTEM_BIN_SH_BASH=y
BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y
BR2_SYSTEM_DHCP="eth0"
# BR2_ENABLE_LOCALE_PURGE is not set
BR2_ROOTFS_POST_BUILD_SCRIPT="$(TOPDIR)/board/tst/tstpi/post-build-tstpi-3b.sh"
BR2_ROOTFS_POST_IMAGE_SCRIPT="$(TOPDIR)/board/tst/tstpi/post-image.sh"
BR2_ROOTFS_POST_SCRIPT_ARGS="tstpi-3p-pc --serial --ext-mon-wifi --bt"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/raspberrypi/linux.git"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="865ddc1393f558198e7e7ce70928ff2e49c4f7f6"
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(TOPDIR)/board/tst/tstpi/linux-config/linux-tstpi-3b-pc.config"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2710-rpi-3-b bcm2710-rpi-3-b-plus
bcm2710-rpi-cm3"
BR2_PACKAGE_LINUX_TOOLS_CPUPOWER=y
BR2_PACKAGE_LINUX_TOOLS_GPIO=y
BR2_PACKAGE_LINUX_TOOLS_TMON=y
BR2_PACKAGE_BUSYBOX_CONFIG="$(TOPDIR)/board/tst/tstpi/busybox-config/busybox-tstpi-pc.config"
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_BUSYBOX_WATCHDOG=y
BR2_PACKAGE_CHECK=y
BR2_PACKAGE_RPI_BT_FIRMWARE=y
BR2_PACKAGE_RPI_FIRMWARE=y
BR2_PACKAGE_RPI_WIFI_FIRMWARE=y
BR2_PACKAGE_I2C_TOOLS=y
BR2_PACKAGE_SPI_TOOLS=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON3_CURSES=y
BR2_PACKAGE_PYTHON_SMBUS_CFFI=y
BR2_PACKAGE_LIBSNDFILE=y
BR2_PACKAGE_LIBUSB=y
BR2_PACKAGE_WIRINGPI=y
BR2_PACKAGE_BC=y
BR2_PACKAGE_AIRCRACK_NG=y
BR2_PACKAGE_BLUEZ_TOOLS=y
BR2_PACKAGE_BLUEZ5_UTILS=y
BR2_PACKAGE_BLUEZ5_UTILS_OBEX=y
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
BR2_PACKAGE_BLUEZ5_UTILS_EXPERIMENTAL=y
BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HEALTH=y
BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_MIDI=y
BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_NFC=y
BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_SAP=y
BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_SIXAXIS=y
BR2_PACKAGE_BLUEZ5_UTILS_TEST=y
BR2_PACKAGE_BLUEZ5_TOOLS_BDADDR=y
BR2_PACKAGE_DROPBEAR=y
BR2_PACKAGE_ETHTOOL=y
BR2_PACKAGE_IW=y
BR2_PACKAGE_NETCAT=y
BR2_PACKAGE_NTP=y
BR2_PACKAGE_NTP_NTPDATE=y
BR2_PACKAGE_PPPD=y
BR2_PACKAGE_WGET=y
BR2_PACKAGE_WPA_SUPPLICANT=y
BR2_PACKAGE_NANO=y
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y
BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
BR2_PACKAGE_HOST_DOSFSTOOLS=y
BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_HOST_MTOOLS=y

> Did you try a complete rebuild after changing your configuration (see [1])?
YES

Best regards.

Oscar Gomez Fuente
TST Sistemas
www.tst-sistemas.es

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Problems with the package wget version 1.19.5
  2018-09-26 10:53   ` Oscar Gomez Fuente
@ 2018-09-29 17:49     ` Peter Seiderer
  2018-09-29 18:54       ` Oscar Gomez Fuente
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Seiderer @ 2018-09-29 17:49 UTC (permalink / raw)
  To: buildroot

Hello Oscar,

On Wed, 26 Sep 2018 12:53:52 +0200, Oscar Gomez Fuente <oscargomezf@gmail.com> wrote:

> Hi Peter,
> 
> Thank you in advanced for your help.
> 
> > Please post your .config/defconfig file (with the bare raspberrypi3_defconfig
> > wget is disabled because of the BR2_USE_WCHAR dependency (and BR2_PACKAGE_BUSYBOX_SHOW_OTHERS))?  
> 
> BR2_arm=y
> BR2_cortex_a53=y
> BR2_ARM_FPU_NEON_VFPV4=y
> BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14=y
> BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
> BR2_TOOLCHAIN_BUILDROOT_CXX=y
> BR2_TARGET_GENERIC_HOSTNAME="tstpi"
> BR2_TARGET_GENERIC_ISSUE="Welcome to Buildroot 2018.02.5 by TST"
> BR2_TARGET_GENERIC_PASSWD_SHA512=y
> BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
> BR2_TARGET_GENERIC_ROOT_PASSWD="tstpi"
> BR2_SYSTEM_BIN_SH_BASH=y
> BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
> BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y
> BR2_SYSTEM_DHCP="eth0"
> # BR2_ENABLE_LOCALE_PURGE is not set
> BR2_ROOTFS_POST_BUILD_SCRIPT="$(TOPDIR)/board/tst/tstpi/post-build-tstpi-3b.sh"
> BR2_ROOTFS_POST_IMAGE_SCRIPT="$(TOPDIR)/board/tst/tstpi/post-image.sh"
> BR2_ROOTFS_POST_SCRIPT_ARGS="tstpi-3p-pc --serial --ext-mon-wifi --bt"
> BR2_LINUX_KERNEL=y
> BR2_LINUX_KERNEL_CUSTOM_GIT=y
> BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/raspberrypi/linux.git"
> BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="865ddc1393f558198e7e7ce70928ff2e49c4f7f6"
> BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
> BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(TOPDIR)/board/tst/tstpi/linux-config/linux-tstpi-3b-pc.config"
> BR2_LINUX_KERNEL_DTS_SUPPORT=y
> BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2710-rpi-3-b bcm2710-rpi-3-b-plus
> bcm2710-rpi-cm3"
> BR2_PACKAGE_LINUX_TOOLS_CPUPOWER=y
> BR2_PACKAGE_LINUX_TOOLS_GPIO=y
> BR2_PACKAGE_LINUX_TOOLS_TMON=y
> BR2_PACKAGE_BUSYBOX_CONFIG="$(TOPDIR)/board/tst/tstpi/busybox-config/busybox-tstpi-pc.config"
> BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
> BR2_PACKAGE_BUSYBOX_WATCHDOG=y
> BR2_PACKAGE_CHECK=y
> BR2_PACKAGE_RPI_BT_FIRMWARE=y
> BR2_PACKAGE_RPI_FIRMWARE=y
> BR2_PACKAGE_RPI_WIFI_FIRMWARE=y
> BR2_PACKAGE_I2C_TOOLS=y
> BR2_PACKAGE_SPI_TOOLS=y
> BR2_PACKAGE_PYTHON3=y
> BR2_PACKAGE_PYTHON3_CURSES=y
> BR2_PACKAGE_PYTHON_SMBUS_CFFI=y
> BR2_PACKAGE_LIBSNDFILE=y
> BR2_PACKAGE_LIBUSB=y
> BR2_PACKAGE_WIRINGPI=y
> BR2_PACKAGE_BC=y
> BR2_PACKAGE_AIRCRACK_NG=y
> BR2_PACKAGE_BLUEZ_TOOLS=y
> BR2_PACKAGE_BLUEZ5_UTILS=y
> BR2_PACKAGE_BLUEZ5_UTILS_OBEX=y
> BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
> BR2_PACKAGE_BLUEZ5_UTILS_EXPERIMENTAL=y
> BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_HEALTH=y
> BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_MIDI=y
> BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_NFC=y
> BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_SAP=y
> BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_SIXAXIS=y
> BR2_PACKAGE_BLUEZ5_UTILS_TEST=y
> BR2_PACKAGE_BLUEZ5_TOOLS_BDADDR=y
> BR2_PACKAGE_DROPBEAR=y
> BR2_PACKAGE_ETHTOOL=y
> BR2_PACKAGE_IW=y
> BR2_PACKAGE_NETCAT=y
> BR2_PACKAGE_NTP=y
> BR2_PACKAGE_NTP_NTPDATE=y
> BR2_PACKAGE_PPPD=y
> BR2_PACKAGE_WGET=y
> BR2_PACKAGE_WPA_SUPPLICANT=y
> BR2_PACKAGE_NANO=y
> BR2_TARGET_ROOTFS_EXT2=y
> BR2_TARGET_ROOTFS_EXT2_4=y
> BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
> BR2_PACKAGE_HOST_DOSFSTOOLS=y
> BR2_PACKAGE_HOST_GENIMAGE=y
> BR2_PACKAGE_HOST_MTOOLS=y
> 
> > Did you try a complete rebuild after changing your configuration (see [1])?  
> YES

I can confirm the Segmentation fault on RPi3 with your buildroot configuration:

	$ ./host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-gdb /mnt/root/wget /mnt/root/core
Core was generated by `wget http://www.buildroot.org'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  rpl_gmtime (timep=0x7ebb390c, 
    timep at entry=<error reading variable: DWARF-2 expression error: Loop detected (257).>)
    at localtime-buffer.c:49
49	{
(gdb) where
#0  rpl_gmtime (timep=0x7ebb390c, 
    timep at entry=<error reading variable: DWARF-2 expression error: Loop detected (257).>)
    at localtime-buffer.c:49
#1  0x000487a8 in rpl_gmtime (
    timep=<error reading variable: DWARF-2 expression error: Loop detected (257).>)
    at localtime-buffer.c:50
#2  0x000487a8 in rpl_gmtime (
    timep=<error reading variable: DWARF-2 expression error: Loop detected (257).>)
    at localtime-buffer.c:50
#3  0x000487a8 in rpl_gmtime (
    timep=<error reading variable: DWARF-2 expression error: Loop detected (257).>)
    at localtime-buffer.c:50

...and so on (endless recursion)..., maybe by calling rpl_gmtime with
gmtime defined as rpl_gmtime:

build/wget-1.19.5/lib/localtime-buffer.c:

 47 struct tm *
 48 rpl_gmtime (time_t const *timep)
 49 {
 50   struct tm *tm = gmtime (timep);
 51 
 52   if (localtime_buffer_addr == &tm_zero_buffer)
 53     localtime_buffer_addr = tm;
 54 
 55   return tm;
 56 }

build/wget-1.19.5/lib/time.h:

675 # if 0 || 1
676 #  if 1
677 #   if !(defined __cplusplus && defined GNULIB_NAMESPACE)
678 #    undef gmtime
679 #    define gmtime rpl_gmtime
680 #   endif
681 _GL_FUNCDECL_RPL (gmtime, struct tm *, (time_t const *__timer)
682                                        _GL_ARG_NONNULL ((1)));
683 _GL_CXXALIAS_RPL (gmtime, struct tm *, (time_t const *__timer));
684 #  else
685 _GL_CXXALIAS_SYS (gmtime, struct tm *, (time_t const *__timer));
686 #  endif
687 _GL_CXXALIASWARN (gmtime);
688 # endif

Try with musl or glibc until a proper solution is found?

Regards,
Peter


> Best regards.
> 
> Oscar Gomez Fuente
> TST Sistemas
> www.tst-sistemas.es
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Problems with the package wget version 1.19.5
  2018-09-29 17:49     ` Peter Seiderer
@ 2018-09-29 18:54       ` Oscar Gomez Fuente
  0 siblings, 0 replies; 5+ messages in thread
From: Oscar Gomez Fuente @ 2018-09-29 18:54 UTC (permalink / raw)
  To: buildroot

Hi Peter,

Thank you very much for your help.

> Try with musl or glibc until a proper solution is found?

I can wait. I am not really using wget right now in my final product,
but I think is a very useful tool, so I wanted to report this bug in
order to be fixed in the next future.

Best regards.

Oscar Gomez Fuente
TST Sistemas
www.tst-sistemas.es

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-09-29 18:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-19  8:09 [Buildroot] Problems with the package wget version 1.19.5 Oscar Gomez Fuente
2018-09-19 19:14 ` Peter Seiderer
2018-09-26 10:53   ` Oscar Gomez Fuente
2018-09-29 17:49     ` Peter Seiderer
2018-09-29 18:54       ` Oscar Gomez Fuente

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.