[Bug 12296] pidof fails to find tasks with names 15 characters long

bugzilla at busybox.net bugzilla at busybox.net
Mon Nov 4 11:45:14 UTC 2019


https://bugs.busybox.net/show_bug.cgi?id=12296

--- Comment #4 from Alin Nastac <alin.nastac at gmail.com> ---
I have no idea why argv0 is NULL, but that's what I see. If you say it
shouldn't happen, then my patch should not cause any problem for you.

I tried to compile busybox with debug information so I could find out why argv0
is NULL, but compiler refuse to generate debug information although I've added
-g3 and -ggdb3 to the command line:
  arm-openwrt-linux-gnueabi-gcc -Wp,-MD,libbb/.procps.o.d   -std=gnu99
-Iinclude -Ilibbb  -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-D"BB_VER=KBUILD_STR(1.31.0)"  -Wall -Wshadow -Wwrite-strings -Wundef
-Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function
-Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wno-format-security
-Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen
-finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections
-fno-guess-branch-probability -funsigned-char -falign-functions=1
-falign-jumps=1 -falign-labels=1 -falign-loops=1 -fno-unwind-tables
-fno-asynchronous-unwind-tables -fno-builtin-printf -Os  -Os -pipe
-mtune=cortex-a7 -fno-caller-saves -Wno-error=unused-but-set-variable -g3
-fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable
-Wno-error=unused-result -mfloat-abi=soft
-iremap/usr/localdisk2/vcnt-j/openwrt/build_dir/target-arm_cortex-a7_glibc_eabi/busybox-1.31.0:busybox-1.31.0
-D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro -flto -O0 -g3 -ggdb3
-I/usr/localdisk2/vcnt-j/openwrt/staging_dir/target-arm_cortex-a7_glibc_eabi/usr/include
-I/usr/localdisk2/vcnt-j/openwrt/staging_dir/target-arm_cortex-a7_glibc_eabi/include
-I/usr/localdisk2/vcnt-j/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_glibc_eabi/usr/include
-I/usr/localdisk2/vcnt-j/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_glibc_eabi/include
  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(procps)" 
-D"KBUILD_MODNAME=KBUILD_STR(procps)" -c -o libbb/procps.o libbb/procps.c

No matter what I do, gdb says that resulted libbb/procps.o contain no debug
information.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list