[Bug 66331] WebGL water demo crashes LLVM
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Oct 12 23:11:59 CEST 2013
https://bugs.freedesktop.org/show_bug.cgi?id=66331
--- Comment #2 from Dieter Nützel <Dieter at nuetzel-hh.de> ---
(In reply to comment #1)
> With current Mesa CVS (10.0.0! ;-) on RV730 AGP I get this,too.
>
> Pure LLVM (3.3 stable) bug, NOT sb.
>
> setenv R600_DEBUG nollvm
> Works OK.
>
> Nice link, Grigori!
>
> Application: konqueror (4.11.2)
> KDE Platform Version: 4.11.2
> Qt Version: 4.8.5
> Operating System: Linux 3.12.0-rc3-1-desktop i686
> Distribution: "openSUSE 12.3 (i586)"
Hopefully better (with LLVM source) trace run:
Program received signal SIGSEGV, Segmentation fault.
llvm::ScheduleDAGInstrs::addVRegUseDeps (this=0x0, SU=0xffffffff,
OperIdx=<optimized out>)
at /usr/src/debug/llvm-3.3/lib/CodeGen/ScheduleDAGInstrs.cpp:414
414 LiveRangeQuery LRQ(LIS->getInterval(Reg),
LIS->getInstructionIndex(MI));
(gdb) list
409 MachineInstr *MI = SU->getInstr();
410 unsigned Reg = MI->getOperand(OperIdx).getReg();
411
412 // Lookup this operand's reaching definition.
413 assert(LIS && "vreg dependencies requires LiveIntervals");
414 LiveRangeQuery LRQ(LIS->getInterval(Reg),
LIS->getInstructionIndex(MI));
415 VNInfo *VNI = LRQ.valueIn();
416
417 // VNI will be valid because MachineOperand::readsReg() is checked by
caller.
418 assert(VNI && "No value to read by operand");
(gdb) info registers
eax 0xad55d20 181755168
ecx 0x0 0
edx 0x0 0
ebx 0xad33d000 -1389113344
esp 0xbfff6f40 0xbfff6f40
ebp 0x0 0x0
esi 0xad441f8 181682680
edi 0xad55d20 181755168
eip 0xad2e747d
0xad2e747d <llvm::ScheduleDAGInstrs::addVRegUseDeps(llvm::SUnit*, unsigned
int)+77>
eflags 0x210246 [ PF ZF IF RF ID ]
cs 0x73 115
ss 0x7b 123
ds 0x7b 123
es 0x7b 123
fs 0x0 0
gs 0x33 51
(gdb) bt
#0 llvm::ScheduleDAGInstrs::addVRegUseDeps (this=0x0, SU=0xffffffff,
OperIdx=<optimized out>)
at /usr/src/debug/llvm-3.3/lib/CodeGen/ScheduleDAGInstrs.cpp:414
#1 0xad2e9890 in llvm::ScheduleDAGInstrs::buildSchedGraph (this=0xad55d20,
AA=<optimized out>,
RPTracker=0x700) at
/usr/src/debug/llvm-3.3/lib/CodeGen/ScheduleDAGInstrs.cpp:776
#2 0xad21a4dc in llvm::DefaultVLIWScheduler::schedule (this=0xad55d20)
at /usr/src/debug/llvm-3.3/lib/CodeGen/DFAPacketizer.cpp:124
#3 0xad21a7c9 in llvm::VLIWPacketizerList::PacketizeMIs (this=0xbfff7368,
MBB=<optimized out>,
BeginItr=..., EndItr=...) at
/usr/src/debug/llvm-3.3/lib/CodeGen/DFAPacketizer.cpp:164
#4 0xad90f426 in llvm::R600Packetizer::runOnMachineFunction (this=<optimized
out>, Fn=...)
at /usr/src/debug/llvm-3.3/lib/Target/R600/R600Packetizer.cpp:444
#5 0xad27cbb5 in llvm::MachineFunctionPass::runOnFunction (this=0xac81dd0,
F=...)
at /usr/src/debug/llvm-3.3/lib/CodeGen/MachineFunctionPass.cpp:33
#6 0xacdb7307 in llvm::FPPassManager::runOnFunction (this=0x36, F=...)
at /usr/src/debug/llvm-3.3/lib/IR/PassManager.cpp:1530
#7 0xacdb7530 in llvm::FPPassManager::runOnModule (this=0xaba13d8, M=...)
at /usr/src/debug/llvm-3.3/lib/IR/PassManager.cpp:1550
#8 0xacdb77d9 in llvm::MPPassManager::runOnModule (this=0xac6db08, M=...)
at /usr/src/debug/llvm-3.3/lib/IR/PassManager.cpp:1608
#9 0xacdb7fa1 in llvm::PassManagerImpl::run (this=0xac6a1e0, M=...)
at /usr/src/debug/llvm-3.3/lib/IR/PassManager.cpp:1703
#10 0xacdb8157 in llvm::PassManager::run (this=0xbfff7578, M=...)
at /usr/src/debug/llvm-3.3/lib/IR/PassManager.cpp:1738
#11 0xacea2651 in LLVMTargetMachineEmit (T=<optimized out>, M=0xaaed0c0,
OS=...,
codegen=<optimized out>, ErrorMessage=<optimized out>)
at /usr/src/debug/llvm-3.3/lib/Target/TargetMachineC.cpp:194
#12 0xacea27a3 in LLVMTargetMachineEmitToMemoryBuffer (T=0xac68280,
M=0xaaed0c0, codegen=
LLVMObjectFile, ErrorMessage=0xbfff7640, OutMemBuf=<optimized out>)
at /usr/src/debug/llvm-3.3/lib/Target/TargetMachineC.cpp:220
#13 0xade1c7d6 in radeon_llvm_compile () from /usr/lib/dri/updates/r600_dri.so
---Type <return> to continue, or q <return> to quit---
#14 0xade173e2 in r600_llvm_compile () from /usr/lib/dri/updates/r600_dri.so
#15 0xaddc80f7 in r600_shader_from_tgsi () from
/usr/lib/dri/updates/r600_dri.so
#16 0xaddc9335 in r600_pipe_shader_create () from
/usr/lib/dri/updates/r600_dri.so
#17 0xadddadfd in r600_shader_select () from /usr/lib/dri/updates/r600_dri.so
#18 0xadddafb4 in r600_create_shader_state () from
/usr/lib/dri/updates/r600_dri.so
#19 0xadbd4413 in st_translate_fragment_program () from
/usr/lib/dri/updates/r600_dri.so
#20 0xadbd4fd6 in st_get_fp_variant () from /usr/lib/dri/updates/r600_dri.so
#21 0xadb9ccfc in update_fp () from /usr/lib/dri/updates/r600_dri.so
#22 0xadb9997e in st_validate_state () from /usr/lib/dri/updates/r600_dri.so
#23 0xadbaea9c in st_draw_vbo () from /usr/lib/dri/updates/r600_dri.so
#24 0xadb82745 in vbo_handle_primitive_restart () from
/usr/lib/dri/updates/r600_dri.so
#25 0xadb84247 in vbo_validated_drawrangeelements () from
/usr/lib/dri/updates/r600_dri.so
#26 0xadb8462c in vbo_exec_DrawElements () from
/usr/lib/dri/updates/r600_dri.so
#27 0xb2775b9f in ?? () from /usr/lib/libQtWebKit.so.4
#28 0xb27661f5 in ?? () from /usr/lib/libQtWebKit.so.4
#29 0xb292f430 in ?? () from /usr/lib/libQtWebKit.so.4
#30 0xb2e1d92b in ?? () from /usr/lib/libQtWebKit.so.4
#31 0xb2e03109 in ?? () from /usr/lib/libQtWebKit.so.4
#32 0xfffffffb in ?? ()
#33 0xb2ea305e in JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType,
JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) () from
/usr/lib/libQtWebKit.so.4
#34 0xb0b5ea4c in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20131012/9149c283/attachment.html>
More information about the dri-devel
mailing list