[LLVMbugs] [Bug 8076] New: clang segfault with variably-modified function parameters.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 3 13:30:12 PDT 2010


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

           Summary: clang segfault with variably-modified function
                    parameters.
           Product: clang
           Version: 2.7
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nbowler at draconx.ca
                CC: llvmbugs at cs.uiuc.edu


The following C source causes clang to segfault:

  void foo(void)
  {
    void bar(int, char (*a)[*]);
    bar(0, 0);
  }

Spewing the following to the console:

  0  clang           0x0000000001071b3f
  1  clang           0x000000000107218c
  2  libpthread.so.0 0x00007fd9399e4010
  3  clang           0x000000000057389b
  4  clang           0x0000000000575cb9
  5  clang           0x00000000005d526b
  6  clang           0x00000000005d4f81
  7  clang           0x00000000005759c2
  8  clang           0x0000000000575cb9
  9  clang           0x000000000054ebe7
  10 clang           0x000000000054eecf
  11 clang           0x00000000005211fc
  12 clang           0x000000000054f4c3
  13 clang           0x000000000054f724
  14 clang           0x000000000056eca3
  15 clang           0x000000000057532f
  16 clang           0x0000000000575cb9
  17 clang           0x000000000054ebe7
  18 clang           0x00000000005b69da
  19 clang           0x00000000005b82c0
  20 clang           0x00000000005b6936
  21 clang           0x00000000005b6969
  22 clang           0x00000000005d88ab
  23 clang           0x0000000000505231
  24 clang           0x0000000000505cb3
  25 clang           0x0000000000505e3c
  26 clang           0x0000000000505f5b
  27 clang           0x00000000004fe141
  28 clang           0x00000000004191d4
  29 clang           0x00000000005e83b5
  30 clang           0x000000000041e257
  31 clang           0x000000000041174a
  32 clang           0x0000000000414a33 main + 1731
  33 libc.so.6       0x00007fd938cefbbd __libc_start_main + 253
  34 clang           0x000000000040fc79
  Stack dump:
  0.    Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu -S
-disable-free -disable-llvm-verifier -main-file-name test.c -mrelocation-model
static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu
x86-64 -resource-dir /usr/lib/clang/1.1 -fmessage-length 80 -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-yM4W3J.s -x c test.c 
  1.    <eof> parser at end of file
  2.    test.c:1:6: LLVM IR generation of declaration 'foo'
  3.    test.c:1:6: Generating code for declaration 'foo'
  4.    test.c:2:1: LLVM IR generation of compound statement ('{}')
  clang: error: compiler command failed due to signal 11 (use -v to see
invocation)

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