[LLVMbugs] [Bug 5814] New: msp430 backend: memory safety problem

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Dec 16 20:12:11 PST 2009


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

           Summary: msp430 backend: memory safety problem
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: asl at math.spbu.ru, llvmbugs at cs.uiuc.edu


Valgrind indicates that there is likely some funny stuff going on with memory
management here.

regehr at john-home:~/volatile/bugs/tmp248$ clang -Os -w -ccc-host-triple
msp430-elf -c small.c
0  clang     0x0926c71a
1  clang     0x0926c58f
2            0x00cec400 __kernel_sigreturn + 0
3  clang     0x081f6123
4  clang     0x086796c8
5  clang     0x08678ba4
6  clang     0x091b176f
7  clang     0x0904968a
8  clang     0x090491e2
9  clang     0x09048093
10 clang     0x09047897
11 clang     0x090472e9
12 clang     0x091e7603
13 clang     0x091e7346
14 clang     0x091e6fc5
15 clang     0x08142282
16 clang     0x08141356
17 clang     0x08393127
18 clang     0x0806dc86
19 clang     0x0806d919
20 clang     0x0804ffc9
21 clang     0x08054a6f main + 267
22 libc.so.6 0x0014cb56 __libc_start_main + 230
23 clang     0x0804e961
Stack dump:
0.      Program arguments: /home/regehr/llvm-msp430/build/bin/clang -cc1
-triple msp430-elf- -S -disable-free -main-file-name small.c -mrelocation-model
static -mdisable-fp-elim -Os -w -fmessage-length 80 -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-1eGmXx.s -x c small.c 
1.      Program arguments: -triple msp430-elf- -S -disable-free -main-file-name
small.c -mrelocation-model static -mdisable-fp-elim -Os -w -fmessage-length 80
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-1eGmXx.s
-x c small.c clang: error: compiler command failed due to signal 11 (use -v to
see invocation)
regehr at john-home:~/volatile/bugs/tmp248$ clang -v
clang version 1.1 (trunk 114)
Target: i386-pc-linux-gnu
Thread model: posix
regehr at john-home:~/volatile/bugs/tmp248$ cat small.c
typedef int int32_t;
struct S1
{
  int32_t f0;
};
const int32_t **
func_41 (int32_t * p_42)
{
  struct S1 l_44 = {
    0xF963L
  };
  struct S1 *l_45 = &l_44;
  *l_45 = l_44;
  return 0;
}


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