[LLVMbugs] [Bug 11969] New: FreeBSD 9.0 stable i386 build world core dumped (libssp_nonshared)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 9 23:23:16 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=11969

             Bug #: 11969
           Summary: FreeBSD 9.0 stable i386 build world core dumped
                    (libssp_nonshared)
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: epopen at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Hi LLVM team :D

I encounter a problem..
Please help me :)

Today (2/10), I upated my FreeBSD 9.0 system source code from freebsd.org
And build world via clang.
Waiting long time...
I got an error.

--------------------------------------------------------------
>>> stage 4.2: building libraries
--------------------------------------------------------------
cd /usr/src;  MAKEOBJDIRPREFIX=/usr/obj  MACHINE_ARCH=i386  MACHINE=i386 
CPUTYPE=pentium3m GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin 
GROFF_FONT_PATH
=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font 
GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac 
_SHLIBDIRPREFIX=/usr/obj/usr/src/tmp  VERSION="F
reeBSD 9.0-STABLE i386 900502"  INSTALL="sh /usr/src/tools/install.sh" 
PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/
usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
NO_CTF=1 m
ake -f Makefile.inc1 DESTDIR=/usr/obj/usr/src/tmp -DNO_FSCHG -DWITHOUT_HTML
-DWITHOUT_INFO -DNO_LINT  -DWITHOUT_MAN -DWITHOUT_PROFILE libraries
cd /usr/src;  make -f Makefile.inc1 _prereq_libs;  make -f Makefile.inc1
_startup_libs;  make -f Makefile.inc1 _prebuild_libs;  make -f Makefile.inc1
_generic_
libs;
===> gnu/lib/libssp/libssp_nonshared (obj,depend,all,install)
rm -f .depend
CC='clang' mkdep -f .depend -a    -DHAVE_CONFIG_H
-I/usr/src/gnu/lib/libssp/libssp_nonshared/..
-I/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/
gcclibs/libssp
-I/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/include
-DPIC /usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contri
b/gcclibs/libssp/ssp-local.c
clang -O2 -pipe -msse -march=pentium3m -DHAVE_CONFIG_H
-I/usr/src/gnu/lib/libssp/libssp_nonshared/.. 
-I/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../co
ntrib/gcclibs/libssp 
-I/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/include
-fPIC -DPIC -fvisibility=hidden -std=gnu99 -fstack-protect
or  -c
/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp/ssp-local.c

Stack dump:
0.      Program arguments: /usr/obj/usr/src/tmp/usr/bin/clang -cc1 -triple
i386-unknown-freebsd9.0 -emit-obj -disable-free -main-file-name ssp-local.c
-pic-level 2 -mdisable-fp-elim -masm-verbose -mconstructor-aliases -target-cpu
pentium3m -target-feature +sse -momit-leaf-frame-pointer -coverage-file
ssp-local.o -resource-dir /usr/obj/usr/src/tmp/usr/bin/../lib/clang/3.0 -D
HAVE_CONFIG_H -D PIC -I /usr/src/gnu/lib/libssp/libssp_nonshared/.. -I
/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp -I
/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/include
-fmodule-cache-path /var/tmp/clang-module-cache -O2 -std=gnu99 -ferror-limit 19
-fmessage-length 159 -fvisibility hidden -stack-protector 1 -fgnu-runtime
-fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fdiagnostics-show-option -fcolor-diagnostics -o ssp-local.o -x c
/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp/ssp-local.c
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module
'/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp/ssp-local.c'.
4.      Running pass 'Greedy Register Allocator' on function
'@__stack_chk_fail_local'
clang: error: unable to execute command: Segmentation fault: 11 (core dumped)
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/ssp-local-DpEj4g.i
*** Error code 254

Stop in /usr/src/gnu/lib/libssp/libssp_nonshared.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1


And 
# less /tmp/ssp-local-DpEj4g.i
# 1
"/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp/ssp-local.c"
# 1
"/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp/ssp-local.c"
1
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 133 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1
"/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp/ssp-local.c"
2
# 36
"/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp/ssp-local.c"
# 1 "/usr/src/gnu/lib/libssp/libssp_nonshared/../config.h" 1
# 37
"/usr/src/gnu/lib/libssp/libssp_nonshared/../../../../contrib/gcclibs/libssp/ssp-local.c"
2

extern void __stack_chk_fail (void);


void
__attribute__((visibility ("hidden")))
__stack_chk_fail_local (void)
{
  __stack_chk_fail ();
}


I don't know what happen...
So I report it on llvm.org.
If need detail information, Please teach me how to fetch it.

Thanks a lot.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list