[LLVMbugs] [Bug 13327] New: clang dumps core when initialising a struct

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 11 03:11:29 PDT 2012


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

             Bug #: 13327
           Summary: clang dumps core when initialising a struct
           Product: new-bugs
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: devel at fresse.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8875
  --> http://llvm.org/bugs/attachment.cgi?id=8875
gzipped preprocessed source as indicated

In file included from ../../lib/ltrcc.c:48:
../../lib/dt-core.h:280:8: warning: subobject initialization overrides
initialization of other fields within its enclosing subobject
[-Winitializer-overrides]
                .t = {
                     ^
../../lib/dt-core.h:276:15: note: previous initialization is here
                .sandwich = 0U,
                            ^~
0  clang           0x000000000171877f
1  clang           0x0000000001718ca9
2  libpthread.so.0 0x00007f3ab24bd2d0
3  clang           0x00000000009ec7a7
4  clang           0x00000000009eea95
5  clang           0x00000000009ef5e4
6  clang           0x00000000009e9cca
7  clang           0x00000000009eb071
8  clang           0x00000000009ec29d
9  clang           0x00000000009ed897
Stack dump:
0.    Program arguments: /home/freundt/usr/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-main-file-name ltrcc.c -mrelocation-model static -mdisable-fp-elim
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-linker-version 2.21.51.0.7.20110306 -momit-leaf-frame-pointer -g
-coverage-file ltrcc-ltrcc.o -resource-dir
/home/freundt/usr/bin/../lib/clang/3.0 -dependency-file .deps/ltrcc-ltrcc.Tpo
-sys-header-deps -MP -MT ltrcc-ltrcc.o -D HAVE_CONFIG_H -D
_POSIX_C_SOURCE=200809L -D _XOPEN_SOURCE=700 -D _BSD_SOURCE -D DECLF=extern -D
SKIP_LEAP_ARITH -I . -I ../../lib -I ../src -fmodule-cache-path
/var/tmp/clang-module-cache -O3 -Wall -Wextra -Wsign-compare
-Wno-char-subscripts -Wundef -Wpacked -Wpointer-arith -Wshadow
-Wmissing-declarations -Wmissing-prototypes -Winline -Wbad-function-cast
-Wcast-qual -Wcast-align -Wswitch -Wswitch-default -Wswitch-enum
-Wunused-function -Wunused-variable -Wunused-parameter -Wunused-value -Wunused
-Wunknown-pragmas -Wuninitialized -Wreorder -Wdeprecated -std=gnu1x
-ferror-limit 19 -fmessage-length 210 -fdiagnostics-show-option
-fcolor-diagnostics -o ltrcc-ltrcc.o -x c ../../lib/ltrcc.c 
1.    ../../lib/dt-core.h:287:3: current parser token ';'
2.    ../../lib/dt-core.h:272:1: parsing function body 'dt_dt_initialiser'
3.    ../../lib/dt-core.h:272:1: in compound statement ('{}')
clang: error: unable to execute command: Segmentation fault (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/ltrcc-5YRbmq.i

-- 
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