From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 99488] [r600g]OpenCL driver causes ImageMagick to hang on JPEG input in Gaussian Blur kernel
Date: Fri, 03 Feb 2017 03:39:04 +0000 [thread overview]
Message-ID: <bug-99488-502-HcGrkkGehs@http.bugs.freedesktop.org/> (raw)
In-Reply-To: <bug-99488-502@http.bugs.freedesktop.org/>
[-- Attachment #1.1: Type: text/plain, Size: 3705 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=99488
--- Comment #3 from Jan Vesely <jv356@scarletmail.rutgers.edu> ---
(In reply to nixscripter from comment #1)
> I'm still trying some versions in order to help you guys pin this down (it's
> not always easy to tell what reinstall is having what effect, since Arch
> Linux has three packages involved). In the mean time, I did the basics on
> the process in its hung state.
>
> It's currently running three threads, two blocked, one continuing to run:
>
> (gdb) info threads
> Id Target Id Frame
> * 1 Thread 0x39ac9cdf7c0 (LWP 3806) "display" 0x0000039abefef921 in
> llvm::MachineInstr::findRegisterDefOperandIdx(unsigned int, bool, bool,
> llvm::TargetRegisterInfo const*) const () from /usr/lib/libLLVM-5.0svn.so
can you get backtrace of this thread?
does it ever leave this function? you can check by adding breakpoint on that
function and checking if it gets hit.
this can be repeated going up the stack to find the function that won't exit.
> 2 Thread 0x39abd04f700 (LWP 3809) "radeon_cs:0" 0x0000039ac6b0310f in
> pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
> 3 Thread 0x39abadd4700 (LWP 3814) "display" futex_wait (val=8,
> addr=0x25349d4)
> at /build/gcc-multilib/src/gcc/libgomp/config/linux/x86/futex.h:44
> (gdb)
>
>
> What is that call to findRegisterDefOperandIdx doing?
there's a loop, it can't be infinite, but if the num of operands is corrupted,
it can take a very long time to finish. can you check "p e" in gdb?
> It's not entirely
> clear, but it's sucking up a lot of memory. Running strace confirms that:
>
> strace: Process 3806 attached with 3 threads
> strace: [ Process PID=3806 runs in x32 mode. ]
> [pid 3809] futex(0x2599e64, FUTEX_WAIT_PRIVATE, 1, NULL <unfinished ...>
> [pid 3814] futex(0x25349d4, FUTEX_WAIT_PRIVATE, 8, NULL <unfinished ...>
> [pid 3806] mmap(NULL, 8392704, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x640f4000
> strace: [ Process PID=3806 runs in 64 bit mode. ]
> [pid 3806] mmap(NULL, 8392704, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x39a638f3000
> [pid 3806] mmap(NULL, 8392704, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x39a630f2000
> [pid 3806] mmap(NULL, 8392704, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x39a628f1000
> [...]
>
> And down the address space it goes, 0x1000 bytes (4k) a time or two per
> second.
the above mmaps show 8M (+4K, probably for bookkeeping) allocations. is there
any other, not shown? I haven't found anything in the mentioned function that
would need such big amount of memory, the hand if probably higher in the call
stack.
>
> Looking at the function name, I'm thinking about what Jan said on another
> bug:
>
> > the hang is probably a separate bug. ImageMagick test suite results on my Turks GPU are:
> > # TOTAL: 86
> > # PASS: 78
> > # SKIP: 0
> > # XFAIL: 0
> > # FAIL: 3
> > # XPASS: 0
> > # ERROR: 5
> >
> > the errors and failures are accompanied by:
> > Assertion `i < getNumRegs() && "Register number out of range!"' failed.
>
> Could this be perhaps the same registers that were out of range on a
> different card?
all cards of one class have the same number of architecturally available
registers.
I see you have debug symbols, is that a debug build? if not, it can be that the
assert is not hit, and the hang is just fallout.
>
> Either way, I will continue to investigate, and hope to narrow down the
> issue soon.
thanks.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 5045 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
next prev parent reply other threads:[~2017-02-03 3:39 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-22 7:23 [Bug 99488] [r600g]OpenCL driver causes process to hang in ImageMagick's Gaussian Blur kernel bugzilla-daemon
2017-01-26 19:44 ` bugzilla-daemon
2017-02-03 2:02 ` bugzilla-daemon
2017-02-03 2:48 ` bugzilla-daemon
2017-02-03 2:52 ` [Bug 99488] [r600g]OpenCL driver causes ImageMagick to hang on JPEG input in " bugzilla-daemon
2017-02-03 3:39 ` bugzilla-daemon [this message]
2017-02-03 9:01 ` bugzilla-daemon
2017-02-04 22:47 ` bugzilla-daemon
2017-02-05 16:37 ` bugzilla-daemon
2017-02-05 21:57 ` bugzilla-daemon
2017-02-21 23:20 ` bugzilla-daemon
2017-02-24 3:09 ` bugzilla-daemon
2017-02-26 4:46 ` bugzilla-daemon
2017-02-26 4:47 ` bugzilla-daemon
2017-02-26 6:38 ` bugzilla-daemon
2017-02-26 17:24 ` [Bug 99488] [r600g]ImageMagick issues " bugzilla-daemon
2017-02-26 17:26 ` bugzilla-daemon
2017-02-26 17:36 ` bugzilla-daemon
2017-05-07 0:39 ` bugzilla-daemon
2017-05-24 5:12 ` bugzilla-daemon
2017-05-30 6:38 ` bugzilla-daemon
2017-06-05 1:38 ` 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-99488-502-HcGrkkGehs@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox