All of lore.kernel.org
 help / color / mirror / Atom feed
From: mikhail <mikhail.v.gavrilov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Marek Olšák" <maraeo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: "amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
	<amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: All games maded with Unity engine in steam catalog crashes on AMD GPU, but worked on Intel GPU on same machine.
Date: Fri, 02 Feb 2018 21:13:05 +0500	[thread overview]
Message-ID: <1517587985.12783.5.camel@gmail.com> (raw)
In-Reply-To: <CAAxE2A42A-bjU=qhZqRH-6aaJXbKDjxjj=Obyrk2-CC1BAbtig-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Thu, 2018-02-01 at 21:31 +0100, Marek Olšák wrote:
> 
> Valgrind doesn't show any memory-related issue with Mesa. It does show
> an issue with "New Unity Project". This can corrupt the heap and cause
> a random crash on the next call of malloc/free/new/delete:
> 
> ==17721== Mismatched free() / delete / delete []
> ==17721==    at 0x4C311E8: operator delete(void*) (vg_replace_malloc.c:576)
> ==17721==    by 0xD4482C: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0xD315D8: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x4FD79A: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x7E6350: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x8197CC: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x4608A1: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x5D7B009: (below main) (libc-start.c:308)
> ==17721==  Address 0x1f6bf470 is 0 bytes inside a block of size 220 alloc'd
> ==17721==    at 0x4C308B7: operator new[](unsigned long)
> (vg_replace_malloc.c:423)
> ==17721==    by 0xD47CF3: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0xD3EF39: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x4FD712: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x7E2B8D: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x818B52: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x4603F1: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x5D7B009: (below main) (libc-start.c:308)
> ==17721==
> ==17721== Mismatched free() / delete / delete []
> ==17721==    at 0x4C311E8: operator delete(void*) (vg_replace_malloc.c:576)
> ==17721==    by 0xD44843: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0xD315D8: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x4FD79A: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x7E6350: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x8197CC: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x4608A1: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x5D7B009: (below main) (libc-start.c:308)
> ==17721==  Address 0x1f6bf590 is 0 bytes inside a block of size 220 alloc'd
> ==17721==    at 0x4C308B7: operator new[](unsigned long)
> (vg_replace_malloc.c:423)
> ==17721==    by 0xD47ED7: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0xD3EF39: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x4FD712: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x7E2B8D: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x818B52: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x4603F1: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
> ==17721==    by 0x5D7B009: (below main) (libc-start.c:308)
> 
> Marek


Tak  said: We'll investigate, but if that were the case, wouldn't it affect the intel driver the same way?

I also checked same Unity project under Valgrind on Intel GPU and see same errors in log:

==3407== Mismatched free() / delete / delete []
==3407==    at 0x4C311E8: operator delete(void*) (vg_replace_malloc.c:576)
==3407==    by 0xD4482C: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0xD315D8: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x4FD79A: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x7E6350: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x8197CC: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x4608A1: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x5D7B009: (below main) (libc-start.c:308)
==3407==  Address 0x17065190 is 0 bytes inside a block of size 220 alloc'd
==3407==    at 0x4C308B7: operator new[](unsigned long) (vg_replace_malloc.c:423)
==3407==    by 0xD47CF3: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0xD3EF39: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x4FD712: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x7E2B8D: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x818B52: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x4603F1: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x5D7B009: (below main) (libc-start.c:308)

==3407== Mismatched free() / delete / delete []
==3407==    at 0x4C311E8: operator delete(void*) (vg_replace_malloc.c:576)
==3407==    by 0xD44843: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0xD315D8: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x4FD79A: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x7E6350: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x8197CC: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x4608A1: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x5D7B009: (below main) (libc-start.c:308)
==3407==  Address 0x170652b0 is 0 bytes inside a block of size 220 alloc'd
==3407==    at 0x4C308B7: operator new[](unsigned long) (vg_replace_malloc.c:423)
==3407==    by 0xD47ED7: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0xD3EF39: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x4FD712: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x7E2B8D: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x818B52: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x4603F1: ??? (in /home/mikhail/New Unity Project/aaa.x86_64)
==3407==    by 0x5D7B009: (below main) (libc-start.c:308)


What answer to Tak?
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2018-02-02 16:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-28 16:15 All games maded with Unity engine in steam catalog crashes on AMD GPU, but worked on Intel GPU on same machine mikhail
     [not found] ` <1517156104.15379.10.camel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-01-29 15:40   ` Marek Olšák
     [not found]     ` <CAAxE2A53JUCvPQsKDQ-NYzDp1ixkZrHqHb=3nUKOQWT6t+5wKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-29 17:19       ` mikhail
     [not found]         ` <1517246354.5736.2.camel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-01-29 17:34           ` Marek Olšák
     [not found]             ` <CAAxE2A792+0WB0LSn6wYcHGcZQVuOsrYzXdYbPgOJkYM+vJnFQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-29 17:51               ` mikhail
     [not found]                 ` <1517248296.11388.3.camel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-01-29 18:18                   ` Marek Olšák
     [not found]                     ` <CAAxE2A6+Vnr0zs7T0cLSUcvxUin=tbCO_Mjb2+qCSx5aJ9bbYw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-30 18:08                       ` mikhail
     [not found]                         ` <1517335699.9211.8.camel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-01-30 19:12                           ` Marek Olšák
2018-01-30 21:04                             ` mikhail
     [not found]                               ` <1517346270.6516.7.camel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-01-30 21:36                                 ` Marek Olšák
     [not found]                                   ` <CAAxE2A6aeHYAdVZo1ND14BP3JN=kP1Y4m83k0QVXDpBWCGJvQQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-01-30 21:38                                     ` Marek Olšák
     [not found]                                       ` <CAAxE2A4vOw-uK1rNFPWCpE933B7mJwYt3V-vq4hpxeuGwzQV2w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-01 16:27                                         ` mikhail
     [not found]                                           ` <1517502454.21706.3.camel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-02-01 17:34                                             ` Marek Olšák
     [not found]                                               ` <CAAxE2A771dnvh249kbgvmb-1-mnP_1fGpWkPvhQQ7gCUppsf2Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-01 18:39                                                 ` mikhail
     [not found]                                                   ` <1517510384.18433.3.camel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-02-01 20:31                                                     ` Marek Olšák
     [not found]                                                       ` <CAAxE2A42A-bjU=qhZqRH-6aaJXbKDjxjj=Obyrk2-CC1BAbtig-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-02-02 16:13                                                         ` mikhail [this message]
     [not found]                                                           ` <1517587985.12783.5.camel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-02-02 16:25                                                             ` Michel Dänzer
2018-02-02 16:46                                                             ` Marek Olšák

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=1517587985.12783.5.camel@gmail.com \
    --to=mikhail.v.gavrilov-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=maraeo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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.