Using i965 Program received signal SIGSEGV, Segmentation fault. choose_emit_func (ctx=0x1680b60, count=22, dest=0x1c638e0 "") at tnl/t_vertex.c:121 121 tnl/t_vertex.c: No such file or directory. in tnl/t_vertex.c (gdb) bt full #0 choose_emit_func (ctx=0x1680b60, count=22, dest=0x1c638e0 "") at tnl/t_vertex.c:121 vptr = <optimized out> VB = 0x1b07cc0 vtx = 0x1b07e30 a = 0x1b07e48 attr_count = 4 j = <optimized out> #1 0x00007ffff79562fb in run_render (ctx=0x1680b60, stage=<optimized out>) at tnl/t_vb_render.c:291 tnl = 0x1b07550 VB = 0x1b07cc0 tab = <optimized out> pass = 0 __PRETTY_FUNCTION__ = "run_render" #2 0x00007ffff794c569 in _tnl_run_pipeline (ctx=0x1680b60) at tnl/t_pipeline.c:163 s = <optimized out> tnl = 0x1b07550 i = <optimized out> #3 0x00007ffff794cf0f in _tnl_draw_prims (ctx=<optimized out>, arrays=0x1af5d90, prim=0x2a06730, nr_prims=1, ib=0x0, min_index=<optimized out>, max_index=21) at tnl/t_draw.c:538 this_nr_prims = <optimized out> bo = {0x285d350, 0x1af26f8, 0x7ffff75d7000, 0x7ffff79cd24b, 0x0, 0x168c288, 0x2100, 0x7fffffffb3a0, 0x7fffffffb470, 0x801de2980, 0x2ac56c0, 0x16, 0x1680b60, 0x7fffffffb470, 0x0, 0x81fa01010006, 0x100610101, 0x29290b0b0014020b, 0x29292b20, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x16a05c0, 0x0, 0x1680b60, 0x0, 0x5} nr_bo = 1 inst = <optimized out> tnl = 0x1b07550 max = <optimized out> max_basevertex = <optimized out> i = <optimized out> #4 0x00007ffff783be58 in brw_draw_prims (ctx=0x1680b60, arrays=0x1af5d90, prim=0x2a06730, nr_prims=1, ib=0x0, index_bounds_valid=<optimized out>, min_index=0, max_index=21) at brw_draw.c:440 retval = 0 '\000' #5 0x00007ffff794badb in vbo_save_playback_vertex_list (ctx=0x1680b60, data=0x2aa85c8) at vbo/vbo_save_draw.c:293 node = 0x2aa85c8 save = 0x1af4e80 #6 0x00007ffff78af0e2 in ext_opcode_execute (node=0x2aa85c0, ctx=0x1680b60) at main/dlist.c:597 i = <optimized out> #7 execute_list (ctx=0x1680b60, list=<optimized out>) at main/dlist.c:7510 opcode = <optimized out> dlist = 0x2aa85c0 n = 0x2aa85c0 ---Type <return> to continue, or q <return> to quit--- done = <optimized out> #8 0x00007ffff78b2d92 in _mesa_CallList (list=13) at main/dlist.c:8927 save_compile_flag = 0 '\000' ctx = 0x1680b60 #9 0x00007ffff50e3b96 in Avogadro::Cylinder::draw (this=0x284bbb0, end1=..., end2=<optimized out>, radius=<optimized out>) at /var/tmp/portage/sci-chemistry/avogadro-9999/work/avogadro-9999/libavogadro/src/cylinder_p.cpp:176 matrix = {<Eigen::MatrixBase<Eigen::Matrix<double, 4, 4, 2, 4, 4> >> = {<No data fields>}, m_storage = {m_data = {array = {0.14952533739309709, -0.011923652019431201, 0, 0, 0.0068009355970484247, 0.085285295820457879, 0.12320781465402995, 0, -0.086999999999999966, -1.091, 0.76000000000000001, 0, -1.3129999999999999, 0.029999999999999999, 0.084000000000000005, 1}}}} axisNormalized = {<Eigen::MatrixBase<Eigen::Matrix<double, 3, 1, 2, 3, 1> >> = {<No data fields>}, m_storage = {m_data = {array = {-0.065292760355965734, -0.8187862246937776, 0.57037353874176988}}}} #10 0x00007ffff50f0fa8 in drawCylinder (radius=0.15000000000000002, end2=..., end1=..., this=0x1de4da0) at /var/tmp/portage/sci-chemistry/avogadro-9999/work/avogadro-9999/libavogadro/src/glpainter_p.cpp:376 detailLevel = <optimized out> #11 Avogadro::GLPainter::drawCylinder (this=0x1de4da0, end1=..., end2=..., radius=0.15000000000000002) at /var/tmp/portage/sci-chemistry/avogadro-9999/work/avogadro-9999/libavogadro/src/glpainter_p.cpp:354 No locals. #12 0x00007ffff5168e31 in Avogadro::BSDYEngine::renderPick (this=0x2700bb0, pd=0x1de7830) at /var/tmp/portage/sci-chemistry/avogadro-9999/work/avogadro-9999/libavogadro/src/engines/bsdyengine.cpp:337 b = 0x27d7260 _container_ = {c = {{p = {static shared_null = {ref = {_q_value = 1}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x27d8460}, d = 0x27d8460}}, brk = 0, i = {i = 0x27d8620}, e = {i = 0x27d8708}} #13 0x00007ffff51001dc in Avogadro::GLWidget::hits (this=0x1671390, x=530, y=<optimized out>, w=5, h=<optimized out>) at /var/tmp/portage/sci-chemistry/avogadro-9999/work/avogadro-9999/libavogadro/src/glwidget.cpp:2201 engine = <optimized out> _container_ = {c = {{p = {static shared_null = {ref = {_q_value = 1}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x2701bc0}, d = 0x2701bc0}}, brk = 0, i = {i = 0x2701c30}, e = {i = 0x2701c68}} hits = {{p = {static shared_null = {ref = {_q_value = 1}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0x6a7b40}, d = 0x6a7b40}} viewport = {0, 0, 1064, 546} hit_count = <optimized out> cy = <optimized out> requiredSelectBufSize = <optimized out> cx = 532 #14 0x00007fffd46a7db2 in Avogadro::ClickMeasureTool::mousePressEvent (this=0x26fff40, widget=0x1671390, event=0x7fffffffc990) at /var/tmp/portage/sci-chemistry/avogadro-9999/work/avogadro-9999/libavogadro/src/tools/clickmeasuretool.cpp:80 molecule = 0x26f5bb0 #15 0x00007ffff50f792f in Avogadro::GLWidget::mousePressEvent (this=0x1671390, event=0x7fffffffc990) at /var/tmp/portage/sci-chemistry/avogadro-9999/work/avogadro-9999/libavogadro/src/glwidget.cpp:1746 command = 0x0
Created attachment 51961 [details] [review] allocate all result arrays instead of just those corresponding to program outputs Here's a patch to try. Does it help?
Yes, with this patch the crash doesn't occur anymore.
Fixed with commit 793d29d6d3fd0df72aabe4648bf6814ec2d4aecd
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.