[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#934252: libgl1-mesa-dri: SegFPE in ../src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c



Package: libgl1-mesa-dri
Version: 19.1.4-1
Severity: important

Dear Maintainer,

https://bugs.launchpad.net/ubuntu/+source/asymptote/+bug/1470662

I try to process a sample file using asymptote. The binary crashes,
generating a core dump. A backtrace (attached) shows that the
crash happens in the mesa code.

   * What outcome did you expect instead?

Not crashing asymptote binary.

Hilmar

-- Package-specific info:
glxinfo:
--------
glxinfo is not available (missing mesa-utils package).

/usr/share/bug/xserver-xorg-core/script not available

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1,
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/1 CPU core)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libgl1-mesa-dri depends on:
ii  libc6            2.28-10
ii  libdrm-amdgpu1   2.4.97-1
ii  libdrm-intel1    2.4.97-1
ii  libdrm-nouveau2  2.4.97-1
ii  libdrm-radeon1   2.4.97-1
ii  libdrm2          2.4.97-1
ii  libelf1          0.176-1.1
ii  libexpat1        2.2.7-1
ii  libgcc1          1:9.1.0-10
ii  libglapi-mesa    19.1.4-1
ii  libllvm8         1:8.0.1-2
ii  libsensors5      1:3.5.0-3
ii  libstdc++6       9.1.0-10
ii  zlib1g           1:1.2.11.dfsg-1+b1

libgl1-mesa-dri recommends no packages.

libgl1-mesa-dri suggests no packages.

hille@debian-amd64-sid:~$ gdb asy core_asy
GNU gdb (Debian 8.3-1) 8.3
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from asy...
Reading symbols from /usr/lib/debug/.build-id/d8/b817de14e33310af3d975659f0d0759eab39fc.debug...
[New LWP 8718]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `asy -vvv /usr/share/doc/asymptote/examples/RiemannSurface.asy'.
Program terminated with signal SIGFPE, Arithmetic exception.
#0  0x00007f35b30955c0 in lp_build_tgsi_info (tokens=<optimized out>,
    info=info@entry=0x55e3fe21cae8)
    at ../src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c:582
582     ../src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c: No such file or directory.
(gdb) bt
#0  0x00007f35b30955c0 in lp_build_tgsi_info (tokens=<optimized out>,
    info=info@entry=0x55e3fe21cae8)
    at ../src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c:582
#1  0x00007f35b289502f in llvmpipe_create_fs_state (pipe=0x55e3fe157b50,
    templ=0x7ffcb28b8740) at ../src/gallium/drivers/llvmpipe/lp_state_fs.c:2927
#2  0x00007f35b2864108 in ureg_create_shader (ureg=ureg@entry=0x55e3fe1f6350,
    pipe=pipe@entry=0x55e3fe157b50, so=so@entry=0x0)
    at ../src/gallium/auxiliary/tgsi/tgsi_ureg.c:2155
#3  0x00007f35b2836940 in ureg_create_shader_with_so_and_destroy (so=0x0,
    pipe=0x55e3fe157b50, p=0x55e3fe1f6350)
    at ../src/gallium/auxiliary/tgsi/tgsi_ureg.h:156
#4  ureg_create_shader_and_destroy (pipe=0x55e3fe157b50, p=0x55e3fe1f6350)
    at ../src/gallium/auxiliary/tgsi/tgsi_ureg.h:156
#5  util_make_fragment_tex_shader_writemask (pipe=pipe@entry=0x55e3fe157b50,
    tex_target=tex_target@entry=TGSI_TEXTURE_1D,
    interp_mode=interp_mode@entry=TGSI_INTERPOLATE_LINEAR,
    writemask=writemask@entry=15, stype=<optimized out>,
    dtype=<optimized out>, load_level_zero=false, use_txf=false)
    at ../src/gallium/auxiliary/util/u_simple_shaders.c:354
#6  0x00007f35b2836b60 in util_make_fragment_tex_shader (
    pipe=pipe@entry=0x55e3fe157b50,
    tex_target=tex_target@entry=TGSI_TEXTURE_1D,
    interp_mode=interp_mode@entry=TGSI_INTERPOLATE_LINEAR,
    stype=<optimized out>, dtype=<optimized out>,
    load_level_zero=<optimized out>, use_txf=false)
    at ../src/gallium/auxiliary/util/u_simple_shaders.c:372
#7  0x00007f35b3063bf6 in blitter_get_fs_texfetch_col (
    ctx=ctx@entry=0x55e3fe1f1170,
    src_format=src_format@entry=PIPE_FORMAT_R32_UINT,
    dst_format=dst_format@entry=PIPE_FORMAT_R32_SINT,
    target=target@entry=PIPE_TEXTURE_1D,
    src_nr_samples=src_nr_samples@entry=1,
    dst_nr_samples=dst_nr_samples@entry=1, filter=0, use_txf=false)
    at ../src/gallium/auxiliary/util/u_blitter.c:975
#8  0x00007f35b3064cc8 in util_blitter_cache_all_shaders (
    blitter=0x55e3fe1f1170) at ../src/gallium/auxiliary/util/u_blitter.c:1172
#9  0x00007f35b28804c9 in llvmpipe_create_context (screen=0x55e3fe19ae30,
    priv=<optimized out>, flags=<optimized out>)
    at ../src/gallium/drivers/llvmpipe/lp_context.c:213
#10 0x00007f35b2c2f166 in st_api_create_context (stapi=<optimized out>,
    smapi=0x55e3fe198e30, attribs=0x7ffcb28b8c50, error=0x7ffcb28b8c4c,
    shared_stctxi=0x0) at ../src/mesa/state_tracker/st_manager.c:923
#11 0x00007f35b27e1044 in dri_create_context (api=<optimized out>,
    visual=0x55e3fe1ab300, cPriv=0x55e3fe156580, ctx_config=<optimized out>,
    error=0x7ffcb28b8da4, sharedContextPrivate=<optimized out>)
    at ../src/gallium/state_trackers/dri/dri_context.c:161
#12 0x00007f35b27dbbd7 in driCreateContextAttribs (screen=0x55e3fe196d50,
    api=api@entry=0, config=0x55e3fe1ab300, shared=<optimized out>,
    num_attribs=num_attribs@entry=0, attribs=attribs@entry=0x0,
    error=0x7ffcb28b8da4, data=0x55e3fe1563e0)
    at ../src/mesa/drivers/dri/common/dri_util.c:473
#13 0x00007f35b27dbe9e in driCreateNewContextForAPI (data=<optimized out>,
    shared=<optimized out>, config=<optimized out>, api=0,
    screen=<optimized out>) at ../src/mesa/drivers/dri/common/dri_util.c:511
#14 driCreateNewContext (screen=<optimized out>, config=<optimized out>,
    shared=<optimized out>, data=<optimized out>)
    at ../src/mesa/drivers/dri/common/dri_util.c:511
#15 0x00007f35b3d5ec8e in ?? ()
   from /usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0
#16 0x00007f35b3d4dd4a in ?? ()
   from /usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0
#17 0x00007f35b3d4e061 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libGLX_indirect.so.0
#18 0x00007f35b45add54 in glXCreateNewContext ()
   from /usr/lib/x86_64-linux-gnu/libGLX.so.0
#19 0x00007f35b5bfb54f in ?? () from /usr/lib/x86_64-linux-gnu/libglut.so.3
#20 0x00007f35b5bfbedb in fgOpenWindow ()
   from /usr/lib/x86_64-linux-gnu/libglut.so.3
#21 0x00007f35b5bfa6bc in fgCreateWindow ()
   from /usr/lib/x86_64-linux-gnu/libglut.so.3
#22 0x00007f35b5bfc18b in glutCreateWindow ()
   from /usr/lib/x86_64-linux-gnu/libglut.so.3
#23 0x000055e3f9e47522 in gl::glrender (
    prefix=<error reading variable: Cannot access memory at address 0x8>,
    pic=0x55e3fe21e740,
    format=<error reading variable: Cannot access memory at address 0xc>,
    width=1.0609978949885705e-314, height=0, angle=1.8043277386122324e-320,
    zoom=4.9582056701527465e-318, m=..., M=..., shift=..., t=0x7ffcb28b9380,
    background=0x7ffffffffffffffe, nlightsin=1, lights=0x55e3fc540c98,
    diffuse=0x55e3fc540c60, specular=0x55e3fc540c30, view=false, oldpid=0)
    at glrender.cc:1630
#24 0x000055e3f9bdca60 in camp::picture::shipout3 (this=0x7ffcb28b9510,
    prefix="",
    format=<error reading variable: Cannot access memory at address 0xc>,
    width=1.0609978949885705e-314, height=0, angle=1.8043277386122324e-320,
    zoom=4.9582056701527465e-318, m=..., M=..., shift=..., t=0x55e3fb8e99f0,
    background=0x55e3fb8ef450, nlights=1, lights=0x55e3fc540c98,
    diffuse=0x55e3fc540c60, specular=0x55e3fc540c30, view=true)
    at picture.cc:1344
#25 0x000055e3f9d2ed91 in run::gen_runpicture43 (Stack=0x55e3fb8ef450)
    at runpicture.in:484
#26 0x000055e3f9dd20dd in vm::stack::runWithOrWithoutClosure (
    this=0x7ffcb28ba0d0, l=0x28c, vars=0x4, parent=0xfffffffd) at stack.cc:461
#27 0x000055e3f9dd2315 in vm::stack::runWithOrWithoutClosure (
    this=0x7ffcb28ba0d0, l=0x66, vars=0x4, parent=0xfffffffd) at stack.cc:519
#28 0x000055e3f9dd2315 in vm::stack::runWithOrWithoutClosure (
    this=0x7ffcb28ba0d0, l=0x19, vars=0x4, parent=0xfffffffd) at stack.cc:519
#29 0x000055e3f9dd2315 in vm::stack::runWithOrWithoutClosure (
    this=0x7ffcb28ba0d0, l=0x46, vars=0x4, parent=0xfffffffd) at stack.cc:519
#30 0x000055e3f9dd2315 in vm::stack::runWithOrWithoutClosure (
    this=0x7ffcb28ba0d0, l=0x13, vars=0x4, parent=0xfffffffd) at stack.cc:519
#31 0x000055e3f9dd2315 in vm::stack::runWithOrWithoutClosure (
    this=0x7ffcb28ba0d0, l=0x4d, vars=0x4, parent=0xfffffffd) at stack.cc:519
#32 0x000055e3f9dd2315 in vm::stack::runWithOrWithoutClosure (
    this=0x7ffcb28ba0d0, l=0xc6, vars=0x4, parent=0xfffffffd) at stack.cc:519
#33 0x000055e3f9dd2315 in vm::stack::runWithOrWithoutClosure (
    this=0x7ffcb28ba0d0, l=0x16, vars=0x4, parent=0xfffffffd) at stack.cc:519
#34 0x000055e3f9dd2315 in vm::stack::runWithOrWithoutClosure (
    this=0x7ffcb28ba0d0, l=0x7, vars=0x4, parent=0xfffffffd) at stack.cc:519
#35 0x000055e3f9e08f28 in icore::postRun (s=..., this=<optimized out>)
    at process.cc:383
#36 ifile::postRun (this=0x7ffcb28c29c0, e=..., s=...) at process.cc:383
#37 0x000055e3f9e0ac8f in icore::doRun (this=0x7ffcb28c29c0, purge=64,
    tm=(unknown: 4)) at process.cc:238
#38 0x000055e3f9e08d7f in icore::process (purge=<optimized out>,
    this=<optimized out>) at process.cc:259
#39 icore::process (this=0x7ffcb28c29c0, purge=64) at process.cc:253
#40 0x000055e3f9e03626 in ifile::process (purge=<optimized out>,
    this=<optimized out>) at process.cc:399
#41 processFile (
    filename=<error reading variable: Cannot access memory at address 0x8>,
    purge=64) at process.cc:900
#42 0x000055e3f9e5036a in asymain (A=0x7ffcb28c2b30)
    at /usr/include/c++/8/bits/char_traits.h:322
#43 0x000055e3f9bb6be5 in main (argc=3, argv=0x7ffcb28c2b30) at main.cc:242
(gdb) quit
hille@debian-amd64-sid:~$

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: