* [Bug 95329] Metro 2033 Redux benchmark fails to start
@ 2016-05-09 19:28 bugzilla-daemon
2016-05-09 19:29 ` bugzilla-daemon
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: bugzilla-daemon @ 2016-05-09 19:28 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1629 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=95329
Bug ID: 95329
Summary: Metro 2033 Redux benchmark fails to start
Product: Mesa
Version: git
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: dri-devel@lists.freedesktop.org
Reporter: 0xe2.0x9a.0x9b@gmail.com
QA Contact: dri-devel@lists.freedesktop.org
Mesa: 11.3.0-devel (git-57763ee)
GPU: R9 390 (dynamic power management: disabled)
Linux kernel: 4.5.0
Kernel module: radeon
Steps to reproduce the issue:
1) cd ".steam/root/steamapps/common/Metro 2033 Redux"
2) mv metro metro.bin
3) ln -s benchmark.sh metro
4) Edit benchmark.sh and replace "./metro" with "./metro.bin"
5) Copy the file "user.cfg" (attached to this bug report) to directory
"110000106d2b5d5"
6) Start the Steam client from command-line
7) Start Metro 2033 Redux from the Steam client
Segmentation fault (core dumped)
./metro.bin -benchmark benchmarks\\benchmark33 -bench_runs 1 -output_file
benchmark.log -close_on_finish
Notes:
- Running "gdb metro.bin core" does not provide useful information
- AMD drivers (fglrx) are working OK
- Step 5 is maybe optional, but I haven't verified this
Running "valgrind --tool=callgrind" for about an hour seems to indicate that
the issue may be linked to very slow shader compilation, but this is
inconclusive. AMD drivers (fglrx) start the benchmark much faster.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2992 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 95329] Metro 2033 Redux benchmark fails to start
2016-05-09 19:28 [Bug 95329] Metro 2033 Redux benchmark fails to start bugzilla-daemon
@ 2016-05-09 19:29 ` bugzilla-daemon
2016-05-11 12:26 ` bugzilla-daemon
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2016-05-09 19:29 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 547 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=95329
Jan Ziak <0xe2.0x9a.0x9b@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |0xe2.0x9a.0x9b@gmail.com
--- Comment #1 from Jan Ziak <0xe2.0x9a.0x9b@gmail.com> ---
Created attachment 123583
--> https://bugs.freedesktop.org/attachment.cgi?id=123583&action=edit
user.cfg
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1932 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 95329] Metro 2033 Redux benchmark fails to start
2016-05-09 19:28 [Bug 95329] Metro 2033 Redux benchmark fails to start bugzilla-daemon
2016-05-09 19:29 ` bugzilla-daemon
@ 2016-05-11 12:26 ` bugzilla-daemon
2016-05-17 12:03 ` bugzilla-daemon
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2016-05-11 12:26 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 255 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=95329
--- Comment #2 from Jan Ziak <0xe2.0x9a.0x9b@gmail.com> ---
The game itself (excluding the benchmark) runs OK with Mesa.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1021 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 95329] Metro 2033 Redux benchmark fails to start
2016-05-09 19:28 [Bug 95329] Metro 2033 Redux benchmark fails to start bugzilla-daemon
2016-05-09 19:29 ` bugzilla-daemon
2016-05-11 12:26 ` bugzilla-daemon
@ 2016-05-17 12:03 ` bugzilla-daemon
2018-07-10 17:18 ` bugzilla-daemon
2018-07-10 23:11 ` bugzilla-daemon
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2016-05-17 12:03 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1477 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=95329
Jan Ziak <0xe2.0x9a.0x9b@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |NOTOURBUG
--- Comment #3 from Jan Ziak <0xe2.0x9a.0x9b@gmail.com> ---
The cause of the issue is in metro.bin, not in Mesa. Found via running
"valgrind benchmark.sh".
The following code fixes the issue:
$ cat posix_memalign.c
#include <errno.h>
#include <malloc.h>
#include <stdlib.h>
#include <strings.h>
int posix_memalign(void **memptr, size_t alignment, size_t size) {
if(alignment < 32) {
alignment = 32; // Optional. Might boost memcpy().
}
size *= 2; // Required
void *p = memalign(alignment, size);
if(!p && size) {
return ENOMEM;
}
bzero(p, size); // Optional
*memptr = p;
return 0;
}
$ gcc -m32 -shared -fPIC -O2 -g -Wall -Werror -std=c99 -o posix_memalign32.so
posix_memalign.c
$ gcc -m64 -shared -fPIC -O2 -g -Wall -Werror -std=c99 -o posix_memalign64.so
posix_memalign.c
$ export
LD_PRELOAD="$PWD/posix_memalign32.so:$PWD/posix_memalign64.so:$LD_PRELOAD"
$ .../Metro 2033 Redux/benchmark.sh
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 3018 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 95329] Metro 2033 Redux benchmark fails to start
2016-05-09 19:28 [Bug 95329] Metro 2033 Redux benchmark fails to start bugzilla-daemon
` (2 preceding siblings ...)
2016-05-17 12:03 ` bugzilla-daemon
@ 2018-07-10 17:18 ` bugzilla-daemon
2018-07-10 23:11 ` bugzilla-daemon
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2018-07-10 17:18 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 227 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=95329
--- Comment #4 from Jan Ziak <0xe2.0x9a.0x9b@gmail.com> ---
Still reproducible in July 2018.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1053 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug 95329] Metro 2033 Redux benchmark fails to start
2016-05-09 19:28 [Bug 95329] Metro 2033 Redux benchmark fails to start bugzilla-daemon
` (3 preceding siblings ...)
2018-07-10 17:18 ` bugzilla-daemon
@ 2018-07-10 23:11 ` bugzilla-daemon
4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2018-07-10 23:11 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 296 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=95329
--- Comment #5 from Alexander Tsoy <alexander@tsoy.me> ---
Another workaround is possible with newer glibc:
GLIBC_TUNABLES=glibc.malloc.check=3 ./benchmark.sh
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1121 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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-07-10 23:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-09 19:28 [Bug 95329] Metro 2033 Redux benchmark fails to start bugzilla-daemon
2016-05-09 19:29 ` bugzilla-daemon
2016-05-11 12:26 ` bugzilla-daemon
2016-05-17 12:03 ` bugzilla-daemon
2018-07-10 17:18 ` bugzilla-daemon
2018-07-10 23:11 ` bugzilla-daemon
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.