[Bug 220754] clang38 core dump when compile busybox-1.26.2 on freebsd11.0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jul 16 08:31:54 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220754

            Bug ID: 220754
           Summary: clang38 core dump when compile busybox-1.26.2 on
                    freebsd11.0
           Product: Base System
           Version: 11.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: amutu at amutu.com

I am trying to update busybox to 1.26.2. While the
PR(https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219183) patch compile ok
on 10.3R-amd64, but report build error when compile on 11.0R. 

/tmp/ash-f6b622.c:
https://raw.githubusercontent.com/amutu/data/master/ash-f6b622.c
/tmp/ash-f6b622.sh:https://raw.githubusercontent.com/amutu/data/master/ash-f6b622.sh

  cc -Wp,-MD,shell/.ash.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.26.2)"
-DBB_BT=AUTOCONF_TIMESTAMP -O2 -pipe  -fno-builtin-mempcpy -fstack-protector
-fno-strict-aliasing -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 
-funsigned-char -static-libgcc -falign-functions=1 -falign-jumps=1
-falign-labels=1 -falign-loops=1 -fno-unwind-tables
-fno-asynchronous-unwind-tables -fno-builtin-printf -Os    
-D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(ash)" 
-D"KBUILD_MODNAME=KBUILD_STR(ash)" -c -o shell/ash.o shell/ash.c
cc: warning: optimization flag '-finline-limit=0' is not supported
cc: warning: optimization flag '-falign-functions=1' is not supported
cc: warning: optimization flag '-falign-jumps=1' is not supported
cc: warning: optimization flag '-falign-labels=1' is not supported
cc: warning: optimization flag '-falign-loops=1' is not supported
cc: warning: argument unused during compilation: '-static-libgcc'
shell/ash.c:3968:51: warning: data argument not used by format string
[-Wformat-extra-args]
                col = fmtstr(s, 16, (st ? "Done(%d)" : "Done"), st);
                                                       ~~~~~~   ^
cc: error: unable to execute command: Segmentation fault (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see
invocation)
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM
3.8.0)
Target: x86_64-unknown-freebsd11.0
Thread model: posix
InstalledDir: /usr/bin
cc: note: diagnostic msg: PLEASE submit a bug report to
https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed
source, and associated run script.
cc: warning: optimization flag '-finline-limit=0' is not supported
cc: warning: optimization flag '-falign-functions=1' is not supported
cc: warning: optimization flag '-falign-jumps=1' is not supported
cc: warning: optimization flag '-falign-labels=1' is not supported
cc: warning: optimization flag '-falign-loops=1' is not supported
cc: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
cc: note: diagnostic msg: /tmp/ash-f6b622.c
cc: note: diagnostic msg: /tmp/ash-f6b622.sh
cc: note: diagnostic msg: 

********************
gmake[3]: *** [scripts/Makefile.build:198: shell/ash.o] Error 254
gmake[2]: *** [Makefile:742: shell] Error 2

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list