Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1896976 - [abrt] renderdoc: rdcarray<SDObject*>::size(): qrenderdoc killed by SIGSEGV
Summary: [abrt] renderdoc: rdcarray<SDObject*>::size(): qrenderdoc killed by SIGSEGV
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: renderdoc
Version: 33
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Christian Kellner
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:e6a5e5346932642e64075973708...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-12 00:24 UTC by James Legg
Modified: 2020-11-12 00:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (94.51 KB, text/plain)
2020-11-12 00:24 UTC, James Legg
no flags Details
File: core_backtrace (2.04 KB, text/plain)
2020-11-12 00:24 UTC, James Legg
no flags Details
File: cpuinfo (2.37 KB, text/plain)
2020-11-12 00:24 UTC, James Legg
no flags Details
File: dso_list (5.06 KB, text/plain)
2020-11-12 00:24 UTC, James Legg
no flags Details
File: environ (1.96 KB, text/plain)
2020-11-12 00:24 UTC, James Legg
no flags Details
File: exploitable (82 bytes, text/plain)
2020-11-12 00:24 UTC, James Legg
no flags Details
File: limits (1.29 KB, text/plain)
2020-11-12 00:24 UTC, James Legg
no flags Details
File: maps (32.29 KB, text/plain)
2020-11-12 00:24 UTC, James Legg
no flags Details
File: mountinfo (2.54 KB, text/plain)
2020-11-12 00:24 UTC, James Legg
no flags Details
File: open_fds (364 bytes, text/plain)
2020-11-12 00:24 UTC, James Legg
no flags Details
File: proc_pid_status (1.33 KB, text/plain)
2020-11-12 00:24 UTC, James Legg
no flags Details

Description James Legg 2020-11-12 00:24:19 UTC
Description of problem:
qrenderdoc reliably crashes on launch.

It creates a file in /tmp/RenderDoc/ with contents like the following:
RDOC 018941: [23:39:18]             core.cpp( 418) - Log     - RenderDoc v1.8 Linux 64-bit Release (NO_GIT_COMMIT_HASH_DEFINED) loaded in replay application
RDOC 018941: [23:39:18]         settings.cpp( 459) - Log     - Loading config from /home/jlegg/.renderdoc/renderdoc.conf

I didn't have a ~/.renderdoc/renderdoc.conf file, and creating an empty one does not stop qrenderdoc from crashing. From strace I don't see any other user specific configuration files accessed.

I think this looks like a static initialisation order problem in librenderdoc.so. If I run "gdb /usr/bin/true", at the gdb prompt enter "set exec-wrapper env 'LD_PRELOAD=/usr/lib64/renderdoc/librenderdoc.so'" and "run", then I see a similar crash.

Version-Release number of selected component:
renderdoc-1.8-4.fc33

Additional info:
reporter:       libreport-2.14.0
backtrace_rating: 3
cgroup:         0::/user.slice/user-1000.slice/user/app-gnome-renderdoc-18941.scope
cmdline:        qrenderdoc
crash_function: rdcarray<SDObject*>::size
executable:     /usr/bin/qrenderdoc
journald_cursor: s=c99270b8bbc2408bae1ee120b57fe4ae;i=585d4;b=a6e6e98a09cd4bd58fc6b23945957609;m=25056a9bf;t=5b3dd4dd5da57;x=9238f1fd6053c88e
kernel:         5.8.18-300.fc33.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #0 rdcarray<SDObject*>::size at /usr/src/debug/renderdoc-1.8-4.fc33.x86_64/renderdoc/core/settings.cpp:270
 #1 SDObject::NumChildren at /usr/src/debug/renderdoc-1.8-4.fc33.x86_64/renderdoc/api/replay/structured_data.h:488
 #2 MergeConfigValues at /usr/src/debug/renderdoc-1.8-4.fc33.x86_64/renderdoc/core/settings.cpp:274
 #3 RenderDoc::ProcessConfig at /usr/include/bits/string_fortified.h:71
 #4 RenderDoc::Initialise at /usr/src/debug/renderdoc-1.8-4.fc33.x86_64/renderdoc/core/core.cpp:458
 #5 _sub_I_65535_0.0 at /usr/src/debug/renderdoc-1.8-4.fc33.x86_64/renderdoc/api/replay/rdcarray.h:148
 #6 call_init at dl-init.c:74
 #8 _dl_init at dl-init.c:121
 #9 _dl_start_user
 #10 ??

Comment 1 James Legg 2020-11-12 00:24:24 UTC
Created attachment 1728559 [details]
File: backtrace

Comment 2 James Legg 2020-11-12 00:24:26 UTC
Created attachment 1728560 [details]
File: core_backtrace

Comment 3 James Legg 2020-11-12 00:24:27 UTC
Created attachment 1728561 [details]
File: cpuinfo

Comment 4 James Legg 2020-11-12 00:24:28 UTC
Created attachment 1728562 [details]
File: dso_list

Comment 5 James Legg 2020-11-12 00:24:30 UTC
Created attachment 1728563 [details]
File: environ

Comment 6 James Legg 2020-11-12 00:24:31 UTC
Created attachment 1728564 [details]
File: exploitable

Comment 7 James Legg 2020-11-12 00:24:32 UTC
Created attachment 1728565 [details]
File: limits

Comment 8 James Legg 2020-11-12 00:24:34 UTC
Created attachment 1728566 [details]
File: maps

Comment 9 James Legg 2020-11-12 00:24:36 UTC
Created attachment 1728567 [details]
File: mountinfo

Comment 10 James Legg 2020-11-12 00:24:37 UTC
Created attachment 1728568 [details]
File: open_fds

Comment 11 James Legg 2020-11-12 00:24:38 UTC
Created attachment 1728569 [details]
File: proc_pid_status


Note You need to log in before you can comment on or make changes to this bug.