All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 100067] [OpenCL] const int in argument list crashes build
Date: Sun, 05 Mar 2017 18:53:03 +0000	[thread overview]
Message-ID: <bug-100067-502@http.bugs.freedesktop.org/> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 5280 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=100067

            Bug ID: 100067
           Summary: [OpenCL] const int in argument list crashes build
           Product: Mesa
           Version: 17.0
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/radeonsi
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: mastner@hotmail.com
        QA Contact: dri-devel@lists.freedesktop.org

When running the program:

https://github.com/CNugteren/myGEMM/blob/master/extra/minimal.cpp

it crashes. valgrind output is:

valgrind ./minimal 
==3618== Memcheck, a memory error detector
==3618== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==3618== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==3618== Command: ./minimal
==3618== 
>>> Initializing OpenCL...
% Device: AMD TONGA (DRM 3.8.0 / 4.9.11-1-ARCH, LLVM 3.9.1), 7253.7 MiB memory,
max allocation 1813.4 MiB, driver  17.0.1
==3618== Invalid read of size 1
==3618==    at 0xAACAB18:
llvm::SIInstrInfo::getInstSizeInBytes(llvm::MachineInstr const&) const (in
/usr/lib/libLLVM-3.9.so)
==3618==    by 0xAA5F550:
llvm::AMDGPUAsmPrinter::getSIProgramInfo(llvm::AMDGPUAsmPrinter::SIProgramInfo&,
llvm::MachineFunction const&) const (in /usr/lib/libLLVM-3.9.so)
==3618==    by 0xAA625B9:
llvm::AMDGPUAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) (in
/usr/lib/libLLVM-3.9.so)
==3618==    by 0x9D591D0:
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (in
/usr/lib/libLLVM-3.9.so)
==3618==    by 0x9BF17C1: llvm::FPPassManager::runOnFunction(llvm::Function&)
(in /usr/lib/libLLVM-3.9.so)
==3618==    by 0x9BF1B4A: llvm::FPPassManager::runOnModule(llvm::Module&) (in
/usr/lib/libLLVM-3.9.so)
==3618==    by 0x9BF1E73: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in
/usr/lib/libLLVM-3.9.so)
==3618==    by 0x7CB9742: ??? (in /usr/lib/libMesaOpenCL.so.1.0.0)
==3618==    by 0x7CB9D5F: ??? (in /usr/lib/libMesaOpenCL.so.1.0.0)
==3618==    by 0x7CB611D: ??? (in /usr/lib/libMesaOpenCL.so.1.0.0)
==3618==    by 0x7CA7AF8: ??? (in /usr/lib/libMesaOpenCL.so.1.0.0)
==3618==    by 0x7C859CB: ??? (in /usr/lib/libMesaOpenCL.so.1.0.0)
==3618==  Address 0x400c07ab25 is not stack'd, malloc'd or (recently) free'd
==3618== 
==3618== 
==3618== Process terminating with default action of signal 11 (SIGSEGV):
dumping core
==3618==  Access not within mapped region at address 0x400C07AB25
==3618==    at 0xAACAB18:
llvm::SIInstrInfo::getInstSizeInBytes(llvm::MachineInstr const&) const (in
/usr/lib/libLLVM-3.9.so)
==3618==    by 0xAA5F550:
llvm::AMDGPUAsmPrinter::getSIProgramInfo(llvm::AMDGPUAsmPrinter::SIProgramInfo&,
llvm::MachineFunction const&) const (in /usr/lib/libLLVM-3.9.so)
==3618==    by 0xAA625B9:
llvm::AMDGPUAsmPrinter::runOnMachineFunction(llvm::MachineFunction&) (in
/usr/lib/libLLVM-3.9.so)
==3618==    by 0x9D591D0:
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (in
/usr/lib/libLLVM-3.9.so)
==3618==    by 0x9BF17C1: llvm::FPPassManager::runOnFunction(llvm::Function&)
(in /usr/lib/libLLVM-3.9.so)
==3618==    by 0x9BF1B4A: llvm::FPPassManager::runOnModule(llvm::Module&) (in
/usr/lib/libLLVM-3.9.so)
==3618==    by 0x9BF1E73: llvm::legacy::PassManagerImpl::run(llvm::Module&) (in
/usr/lib/libLLVM-3.9.so)
==3618==    by 0x7CB9742: ??? (in /usr/lib/libMesaOpenCL.so.1.0.0)
==3618==    by 0x7CB9D5F: ??? (in /usr/lib/libMesaOpenCL.so.1.0.0)
==3618==    by 0x7CB611D: ??? (in /usr/lib/libMesaOpenCL.so.1.0.0)
==3618==    by 0x7CA7AF8: ??? (in /usr/lib/libMesaOpenCL.so.1.0.0)
==3618==    by 0x7C859CB: ??? (in /usr/lib/libMesaOpenCL.so.1.0.0)
==3618==  If you believe this happened as a result of a stack
==3618==  overflow in your program's main thread (unlikely but
==3618==  possible), you can try to increase the size of the
==3618==  main thread stack using the --main-stacksize= flag.
==3618==  The main thread stack size used in this run was 8388608.
==3618== 
==3618== HEAP SUMMARY:
==3618==     in use at exit: 27,389,789 bytes in 3,698 blocks
==3618==   total heap usage: 82,326 allocs, 78,628 frees, 58,257,510 bytes
allocated
==3618== 
==3618== LEAK SUMMARY:
==3618==    definitely lost: 16 bytes in 2 blocks
==3618==    indirectly lost: 0 bytes in 0 blocks
==3618==      possibly lost: 245,866 bytes in 375 blocks
==3618==    still reachable: 27,143,907 bytes in 3,321 blocks
==3618==                       of which reachable via heuristic:
==3618==                         newarray           : 340,712 bytes in 7 blocks
==3618==                         multipleinheritance: 632 bytes in 2 blocks
==3618==         suppressed: 0 bytes in 0 blocks
==3618== Rerun with --leak-check=full to see details of leaked memory
==3618== 
==3618== For counts of detected and suppressed errors, rerun with: -v
==3618== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Speicherzugriffsfehler (Speicherabzug geschrieben)

It does not so when the int arguments in the OpenCL kernel are changed
to unsigned int.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 6835 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

             reply	other threads:[~2017-03-05 18:53 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-05 18:53 bugzilla-daemon [this message]
2017-03-09  1:38 ` [Bug 100067] [OpenCL] const int in argument list crashes build bugzilla-daemon
2017-03-22 15:44 ` bugzilla-daemon
2017-03-22 15:44 ` bugzilla-daemon
2017-03-22 18:40 ` bugzilla-daemon
2017-03-22 18:41 ` bugzilla-daemon
2017-03-22 22:40 ` bugzilla-daemon
2017-03-23 18:10 ` bugzilla-daemon
2017-03-24 16:18 ` bugzilla-daemon
2017-03-24 16:20 ` bugzilla-daemon
2017-04-22 20:16 ` bugzilla-daemon
2017-04-24 11:19 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-100067-502@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon@freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.