From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org
Subject: [Bug 105382] New: segfault in nouveau_scratch_data when
using 2 nouveau cards
Date: Wed, 07 Mar 2018 14:39:40 +0000
Message-ID:
Bug ID
105382
Summary
segfault in nouveau_scratch_data when using 2 nouveau cards
Product
Mesa
Version
17.0
Hardware
Other
OS
All
Status
NEW
Severity
normal
Priority
medium
Component
Drivers/DRI/nouveau
Assignee
nouveau@lists.freedesktop.org
Reporter
vliaskovitis@suse.com
QA Contact
nouveau@lists.freedesktop.org
Using:
Mesa-dri-nouveau 17.0.5
kernel 4.15.0
gnome-shell 3.20
with 2 dri-cards (one monitor attached to each card)
03:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K620]
(rev a2)
0b:00.0 VGA compatible controller: NVIDIA Corporation GK208 [GeForce GT 710]
(rev a1)
I am not sure if this is expected to work. I think these cards use a differ=
ent
mesa driver (nv108 vs nv117), so should they work seamlessly together?
Mesa segfaults very often with:
(gdb) bt
#0 0x00007f5bf2c37af5 in __memcpy_avx_unaligned () at
../sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S:114
#1 0x00007f5be066d28d in memcpy (__len=3D48, __src=3D<optimized out>,
__dest=3D<optimized out>) at /usr/include/bits/string3.h:53
#2 0x00007f5be066d28d in nouveau_scratch_data (nv=3Dnv@entry=3D0x1dc08=
00,
data=3D<optimized out>, base=3Dbase@entry=3D0, size=3Dsize@en=
try=3D48,
bo=3Dbo@entry=3D0x7ffc23880868) at nouveau_buffer.c:1004
#3 0x00007f5be078bba9 in nvc0_update_user_vbufs_shared (nvc0=3D0x1dc0800) =
at
nvc0/nvc0_vbo.c:292
#4 0x00007f5be078121d in nvc0_state_validate (nvc0=3Dnvc0@entry=3D0x1d=
c0800,
mask=3Dmask@entry=3D4294967295, validate_list=3Dvalidate_list@entry=
=3D0x7f5be0d78fe0
<validate_list_3d>, size=3Dsize@entry=3D33, dirty=3Ddirty@ent=
ry=3D0x1dc0c10,
bufctx=3D0x1dc3fc0) at nvc0/nvc0_state_validate.c:902
#5 0x00007f5be07813f7 in nvc0_state_validate_3d (nvc0=3Dnvc0@entry=3D0=
x1dc0800,
mask=3Dmask@entry=3D4294967295) at nvc0/nvc0_state_validate.c:920
#6 0x00007f5be078cb57 in nvc0_draw_vbo (pipe=3D0x1dc0800, info=3D<optim=
ized out>)
at nvc0/nvc0_vbo.c:977
#7 0x00007f5be0554dc4 in cso_draw_arrays (cso=3D<optimized out>,
mode=3Dmode@entry=3D6, start=3Dstart@entry=3D0, count=3Dcount@e=
ntry=3D4) at
cso_cache/cso_context.c:1745
#8 0x00007f5be03c8a21 in st_draw_quad (st=3Dst@entry=3D0x1e8c340, x0=
=3Dx0@entry=3D-1,
y0=3Dy0@entry=3D-1, x1=3Dx1@entry=3D0.00885415077, y1=3Dy1@entr=
y=3D1, z=3D1, s0=3Ds0@entry=3D0,
t0=3Dt0@entry=3D0, s1=3Ds1@entry=3D0, t1=3Dt1@entry=3D0, color=
=3Dcolor@entry=3D0x1dc781c,
num_instances=3Dnum_instances@entry=3D1) at state_tracker/st_draw.c:489
#9 0x00007f5be03b2087 in clear_with_quad (clear_buffers=3D<optimized ou=
t>,
ctx=3D0x1dc5d60) at state_tracker/st_cb_clear.c:297
#10 0x00007f5be03b2087 in st_Clear (ctx=3D0x1dc5d60, mask=3D16) at
state_tracker/st_cb_clear.c:475
#11 0x00007f5bf0310811 in _cogl_framebuffer_gl_clear (framebuffer=3D0x1ee30=
00,
buffers=3D<optimized out>, red=3D<optimized out>, green=3D<o=
ptimized out>,
blue=3D<optimized out>, alpha=3D<optimized out>)
at driver/gl/cogl-framebuffer-gl.c:1022
#12 0x00007f5bf0355fe2 in cogl_framebuffer_clear4f (framebuffer=3D0x1ee3000,
buffers=3D2, red=3D1, green=3D1, green@entry=3D0, blue=3D1, blue@en=
try=3D1.40129846e-45,
alpha=3D1, alpha@entry=3D0) at cogl-framebuffer.c:388
#13 0x00007f5bf03561f8 in cogl_framebuffer_clear (framebuffer=3D<optimiz=
ed out>,
buffers=3D<optimized out>, color=3D<optimized out>) at cogl-fra=
mebuffer.c:457
#14 0x00007f5bf3e5f694 in clutter_root_node_pre_draw (node=3D<optimized =
out>) at
clutter-paint-nodes.c:116
#15 0x00007f5bf3e61d64 in _clutter_paint_node_paint (node=3D0x3988720
[ClutterRootNode]) at clutter-paint-node.c:955
#16 0x00007f5bf3e61d80 in _clutter_paint_node_paint (node=3D0x7f5b8cf3e300
[ClutterDummyNode]) at clutter-paint-node.c:966
#17 0x00007f5bf3e1a2a9 in clutter_actor_paint_node (root=3D0x7f5b8cf3e300
[ClutterDummyNode], actor=3D0x1edff80 [MetaStage]) at clutter-actor.c:3725
#18 0x00007f5bf3e1a2a9 in clutter_actor_continue_paint
(self=3Dself@entry=3D0x1edff80 [MetaStage]) at clutter-actor.c:4014
#19 0x00007f5bf3e1fcf4 in clutter_actor_paint (self=3Dself@entry=3D0x1e=
dff80
[MetaStage]) at clutter-actor.c:3938
#20 0x00007f5bf3e75384 in _clutter_stage_do_paint (stage=3Dstage@entry=
=3D0x1edff80
[MetaStage], clip=3Dclip@entry=3D0x1ee2104) at clutter-stage.c:687
#21 0x00007f5bf3e0f7bf in clutter_stage_cogl_redraw (stage_window=3D0x1ee20=
b0) at
cogl/clutter-stage-cogl.c:531
#22 0x00007f5bf3e73c97 in clutter_stage_do_redraw (stage=3D0x1edff80 [MetaS=
tage])
at clutter-stage.c:1130
#23 0x00007f5bf3e73c97 in _clutter_stage_do_update (stage=3D0x1edff80
[MetaStage]) at clutter-stage.c:1186
#24 0x00007f5bf3e5d818 in master_clock_update_stages (master_clock=3D0x235b=
d00
[ClutterMasterClockDefault], stages=3D0x7f5b78001360 =3D {...}) at
clutter-master-clock-default.c:443
#25 0x00007f5bf3e5d818 in clutter_clock_dispatch (source=3D<optimized ou=
t>,
callback=3D<optimized out>, user_data=3D<optimized out>) at
clutter-master-clock-default.c:567
#26 0x00007f5bf3119134 in g_main_dispatch (context=3D0x1d99ad0) at gmain.c:=
3154
#27 0x00007f5bf3119134 in g_main_context_dispatch
(context=3Dcontext@entry=3D0x1d99ad0) at gmain.c:3769
#28 0x00007f5bf3119388 in g_main_context_iterate (context=3D0x1d99ad0,
block=3Dblock@entry=3D1, dispatch=3Ddispatch@entry=3D1, self=3D<=
optimized out>) at
gmain.c:3840
#29 0x00007f5bf311964a in g_main_loop_run (loop=3D0x1da05e0) at gmain.c:4034
#30 0x00007f5bf4a63d3c in meta_run () at core/main.c:537
#31 0x0000000000402367 in main (argc=3D1, argv=3D0x7ffc238812c8) at main.c:=
471
I 'll try to have a test that can cause the crash outside of gnome.