[LLVMbugs] [Bug 3504] New: [llvm2.5prerelease] tramp3d-v4 cbe failure

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Feb 7 11:47:15 PST 2009


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

           Summary: [llvm2.5prerelease] tramp3d-v4 cbe failure
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu
        Depends on: 3503


Created an attachment (id=2506)
 --> (http://llvm.org/bugs/attachment.cgi?id=2506)
bugpoint.test.bc-e314SK

TEST Output/tramp3d-v4.cbe FAILED: process terminated by signal (exit status
139)!

warning: Can't read pathname for load map: Input/output error.
Core was generated by `Output/tramp3d-v4.cbe --cartvis 1.0 0.0 --rhomin 1e-8 -n
10 --domain 32 32 32'.
Program terminated with signal 11, Segmentation fault.
[New process 3890]
#0  0x00002abc96367f05 in std::basic_ostringstream<char,
std::char_traits<char>, std::allocator<char> >::str ()
   from /usr/lib/libstdc++.so.6
#0  0x00002abc96367f05 in std::basic_ostringstream<char,
std::char_traits<char>, std::allocator<char> >::str ()
   from /usr/lib/libstdc++.so.6
#1  0x00000000004699ce in Inform::flush ()
#2  0x0000000000487914 in main ()

bugpoint says:
*** The following function is being miscompiled: 
main__ZN4GridILi3EED1Ev_2E_exit
<llc><gcc>You can reproduce the problem with the command line:
  llc -f bugpoint.test.bc-e314SK -o bugpoint.test.bc-e314SK.s
  gcc ./bugpoint.safe.bc-j4Rq3C.llc.s.so bugpoint.test.bc-e314SK.s -o
bugpoint.test.bc-e314SK.exe -Wl,-R.
  bugpoint.test.bc-e314SK.exe --cartvis 1.0 0.0 --rhomin 1e-8 -n 10 --domain 32
32 32
The shared object was created with:
  llc -march=c bugpoint.safe.bc-j4Rq3C -o temporary.c
  gcc -xc temporary.c -O2 -o ./bugpoint.safe.bc-j4Rq3C.llc.s.so -fPIC -shared
-fno-strict-aliasing

Here's relevant portion:
define void @main__ZN4GridILi3EED1Ev_2E_exit(%struct.Inform* %out) nounwind {
newFuncRoot:
        br label %_ZN4GridILi3EED1Ev.exit

_ZN4GridILi3EED1Ev.exit.ret.exitStub:           ; preds =
%_ZN4GridILi3EED1Ev.exit
        ret void

_ZN4GridILi3EED1Ev.exit:                ; preds = %newFuncRoot
        call fastcc void @_ZN6InformD1Ev(%struct.Inform* %out) nounwind
        br label %_ZN4GridILi3EED1Ev.exit.ret.exitStub
}

Which gets transformed to by CBE into:
void _ZN6InformD1Ev(struct l_struct_2E_Inform *);
void main__ZN4GridILi3EED1Ev_2E_exit(struct l_struct_2E_Inform *llvm_cbe_out) {
  _ZN6InformD1Ev(llvm_cbe_out);
  return;
}

I think fastcc may be the problem


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