https://bugs.freedesktop.org/show_bug.cgi?id=42297 Bug #: 42297 Summary: [r600g] Segfaults and failed assertions with piglit test fbo-generatemipmap-formats Classification: Unclassified Product: Mesa Version: git Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/r600 AssignedTo: dri-devel@xxxxxxxxxxxxxxxxxxxxx ReportedBy: tdroste@xxxxxx Below are backtraces from segfaults and failed assertions while running the piglit test fbo-generatemipmap-formats. I tried it with and without R600_TILING=on. piglit: from git and updated+rebuilt today. Mesa: 2.1 Mesa 7.12-devel (git-4fc9a98) Driver: r600g Kernel: 3.0 Hardware: Evergreen (Juniper) ---------------------------------------- $ R600_TILING=on gdb ./bin/fbo-generatemipmap-formats Using test set: GL_EXT_texture_compression_rgtc Testing GL_COMPRESSED_RED Program received signal SIGSEGV, Segmentation fault. #0 0x0000000000694990 in ?? () #1 0x00007ffff3dfe0b4 in pb_destroy (csc=0x7ffff7fe7da0) at ../../../../../src/gallium/auxiliary/pipebuffer/pb_buffer.h:232 #2 pb_reference (csc=0x7ffff7fe7da0) at ../../../../../src/gallium/auxiliary/pipebuffer/pb_buffer.h:242 #3 radeon_bo_reference (csc=0x7ffff7fe7da0) at radeon_drm_bo.h:82 #4 radeon_cs_context_cleanup (csc=0x7ffff7fe7da0) at radeon_drm_cs.c:114 #5 radeon_drm_cs_emit_ioctl_oneshot (csc=0x7ffff7fe7da0) at radeon_drm_cs.c:380 #6 0x00007ffff3dff4d7 in radeon_drm_cs_flush (rcs=0x7ffff7fd7010, flags=<value optimized out>) at radeon_drm_cs.c:435 #7 0x00007ffff3deb08e in r600_context_flush (ctx=0x6a6480, flags=0) at r600_hw_context.c:1508 #8 0x00007ffff3dd455b in r600_texture_get_transfer (ctx=0x6a6150, texture=<value optimized out>, level=0, usage=<value optimized out>, box=0x7ffffffed590) at r600_texture.c:719 #9 0x00007ffff40138eb in pipe_get_transfer (ctx=0x7b0150, x=258, y=171, width=1, height=128, format=6407, type=5126, pack=0x7bf8c8, dest=<value optimized out>) at ../../src/gallium/auxiliary/util/u_inlines.h:380 #10 st_readpixels (ctx=0x7b0150, x=258, y=171, width=1, height=128, format=6407, type=5126, pack=0x7bf8c8, dest=<value optimized out>) at state_tracker/st_cb_readpixels.c:472 #11 0x00007ffff3e9b8af in _mesa_ReadnPixelsARB (x=258, y=1, width=1, height=128, format=6407, type=5126, pixels=0xa27fa0) at main/readpix.c:269 #12 _mesa_ReadPixels (x=258, y=1, width=1, height=128, format=6407, type=5126, pixels=0xa27fa0) at main/readpix.c:277 #13 0x0000000000455035 in piglit_probe_rect_rgb () #14 0x000000000042d828 in test_mipmap_drawing () #15 0x000000000042e052 in test_format () #16 0x000000000042e269 in piglit_display () #17 0x000000000042e8f5 in display () #18 0x00007ffff76d1860 in ?? () from /usr/lib64/libglut.so.3 #19 0x00007ffff76d4f69 in fgEnumWindows () from /usr/lib64/libglut.so.3 #20 0x00007ffff76d1bba in glutMainLoopEvent () from /usr/lib64/libglut.so.3 #21 0x00007ffff76d2545 in glutMainLoop () from /usr/lib64/libglut.so.3 #22 0x000000000042efd2 in main () Using test set: GL_EXT_texture_compression_rgtc Testing GL_COMPRESSED_RED *** glibc detected *** ./bin/fbo-generatemipmap-formats: malloc(): smallbin double linked list corrupted: 0x00000000009e6850 *** #17 0x00007ffff6df2ede in calloc () from /lib64/libc.so.6 #18 0x00007ffff3dfceff in radeon_bomgr_create_bo (_mgr=0x694b00, size=32768, desc=0x7fffffffd140) at radeon_drm_bo.c:360 #19 0x00007ffff3dfcd30 in radeon_winsys_bo_create (rws=<value optimized out>, size=<value optimized out>, alignment=<value optimized out>, bind=<value optimized out>, usage=<value optimized out>) at radeon_drm_bo.c:560 #20 0x00007ffff3de7d03 in r600_init_resource (rscreen=0x694be0, res=0x9d9760, size=<value optimized out>, alignment=<value optimized out>, bind=<value optimized out>, usage=<value optimized out>) at r600_buffer.c:154 #21 0x00007ffff3dd53dc in r600_texture_create_object (screen=0x694be0, base=0x7fffffffd250, array_mode=2, pitch_in_bytes_override=<value optimized out>, buf=0x0, alloc_bo=1 '\001', max_buffer_size=0) at r600_texture.c:463 #22 0x00007ffff3f1a676 in st_texture_create (st=<value optimized out>, target=PIPE_TEXTURE_2D, format=PIPE_FORMAT_RGTC1_UNORM, last_level=0, width0=256, height0=256, depth0=1, layers=1, bind=8) at state_tracker/st_texture.c:94 #23 0x00007ffff3f0d6dc in guess_and_alloc_texture (st=0x814420, stObj=0xa269b0, stImage=<value optimized out>) at state_tracker/st_cb_texture.c:446 #24 0x00007ffff3f0fe3b in st_TexImage (ctx=0x7b0150, dims=2, target=3553, level=0, internalFormat=33317, width=256, height=256, depth=1, border=0, format=6408, type=5126, pixels=0xa40460, unpack=0x7bf8f0, texObj=0xa269b0, texImage=0xa26ec0, imageSize=0, compressed_src=0 '\000') at state_tracker/st_cb_texture.c:628 #25 0x00007ffff3f100b3 in st_TexImage2D (ctx=<value optimized out>, target=<value optimized out>, level=<value optimized out>, internalFormat=<value optimized out>, width=<value optimized out>, height=<value optimized out>, border=0, format=6408, type=5126, pixels=0xa40460, unpack=0x7bf8f0, texObj=0xa269b0, texImage=0xa26ec0) at state_tracker/st_cb_texture.c:812 #26 0x00007ffff3ec2fa2 in teximage (ctx=0x7b0150, dims=2, target=3553, level=0, internalFormat=33317, width=256, height=256, depth=1, border=0, format=6408, type=5126, pixels=0xa40460) at main/teximage.c:2412 #27 0x00007ffff3ec3c14 in _mesa_TexImage2D (target=<value optimized out>, level=<value optimized out>, internalFormat=<value optimized out>, width=<value optimized out>, height=<value optimized out>, border=<value optimized out>, format=6408, type=5126, pixels=0xa40460) at main/teximage.c:2466 #28 0x0000000000456bbe in piglit_rgbw_texture () #29 0x000000000042cd64 in create_tex () #30 0x000000000042dfb7 in test_format () #31 0x000000000042e269 in piglit_display () #32 0x000000000042e8f5 in display () #33 0x00007ffff76d1860 in ?? () from /usr/lib64/libglut.so.3 #34 0x00007ffff76d4f69 in fgEnumWindows () from /usr/lib64/libglut.so.3 #35 0x00007ffff76d1bba in glutMainLoopEvent () from /usr/lib64/libglut.so.3 #36 0x00007ffff76d2545 in glutMainLoop () from /usr/lib64/libglut.so.3 #37 0x000000000042efd2 in main () Using test set: GL_ARB_depth_buffer_float Testing GL_DEPTH_COMPONENT32F Program received signal SIGSEGV, Segmentation fault. #0 0x0000000000694990 in ?? () #1 0x00007ffff3dfe0b4 in pb_destroy (csc=0x7ffff7fe7da0) at ../../../../../src/gallium/auxiliary/pipebuffer/pb_buffer.h:232 #2 pb_reference (csc=0x7ffff7fe7da0) at ../../../../../src/gallium/auxiliary/pipebuffer/pb_buffer.h:242 #3 radeon_bo_reference (csc=0x7ffff7fe7da0) at radeon_drm_bo.h:82 #4 radeon_cs_context_cleanup (csc=0x7ffff7fe7da0) at radeon_drm_cs.c:114 #5 radeon_drm_cs_emit_ioctl_oneshot (csc=0x7ffff7fe7da0) at radeon_drm_cs.c:380 #6 0x00007ffff3dff4d7 in radeon_drm_cs_flush (rcs=0x7ffff7fd7010, flags=<value optimized out>) at radeon_drm_cs.c:435 #7 0x00007ffff3deb08e in r600_context_flush (ctx=0x6a6480, flags=0) at r600_hw_context.c:1508 #8 0x00007ffff3dd455b in r600_texture_get_transfer (ctx=0x6a6150, texture=<value optimized out>, level=0, usage=<value optimized out>, box=0x7ffffffed590) at r600_texture.c:719 #9 0x00007ffff40138eb in pipe_get_transfer (ctx=0x7b0150, x=258, y=171, width=1, height=128, format=6407, type=5126, pack=0x7bf8c8, dest=<value optimized out>) at ../../src/gallium/auxiliary/util/u_inlines.h:380 #10 st_readpixels (ctx=0x7b0150, x=258, y=171, width=1, height=128, format=6407, type=5126, pack=0x7bf8c8, dest=<value optimized out>) at state_tracker/st_cb_readpixels.c:472 #11 0x00007ffff3e9b8af in _mesa_ReadnPixelsARB (x=258, y=1, width=1, height=128, format=6407, type=5126, pixels=0xa27ff0) at main/readpix.c:269 #12 _mesa_ReadPixels (x=258, y=1, width=1, height=128, format=6407, type=5126, pixels=0xa27ff0) at main/readpix.c:277 #13 0x0000000000455035 in piglit_probe_rect_rgb () #14 0x000000000042d828 in test_mipmap_drawing () #15 0x000000000042e052 in test_format () #16 0x000000000042e269 in piglit_display () #17 0x000000000042e8f5 in display () #18 0x00007ffff76d1860 in ?? () from /usr/lib64/libglut.so.3 #19 0x00007ffff76d4f69 in fgEnumWindows () from /usr/lib64/libglut.so.3 #20 0x00007ffff76d1bba in glutMainLoopEvent () from /usr/lib64/libglut.so.3 #21 0x00007ffff76d2545 in glutMainLoop () from /usr/lib64/libglut.so.3 #22 0x000000000042efd2 in main () -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- $ gdb ./bin/fbo-generatemipmap-formats Using test set: GL_EXT_texture_compression_rgtc Testing GL_COMPRESSED_RED ../../../../../src/gallium/auxiliary/util/u_inlines.h:81:pipe_reference_described: Assertion `pipe_is_referenced(reference)' failed. Program received signal SIGSEGV, Segmentation fault. #0 0x0000000000694990 in ?? () #1 0x00007ffff3dfe0b4 in pb_destroy (csc=0x7ffff7fd7020) at ../../../../../src/gallium/auxiliary/pipebuffer/pb_buffer.h:232 #2 pb_reference (csc=0x7ffff7fd7020) at ../../../../../src/gallium/auxiliary/pipebuffer/pb_buffer.h:242 #3 radeon_bo_reference (csc=0x7ffff7fd7020) at radeon_drm_bo.h:82 #4 radeon_cs_context_cleanup (csc=0x7ffff7fd7020) at radeon_drm_cs.c:114 #5 radeon_drm_cs_emit_ioctl_oneshot (csc=0x7ffff7fd7020) at radeon_drm_cs.c:380 #6 0x00007ffff3dfe2f0 in radeon_drm_cs_emit_ioctl (param=0x7ffff7fd7010) at radeon_drm_cs.c:391 #7 0x00007ffff5eebf05 in start_thread () from /lib64/libpthread.so.0 #8 0x00007ffff6e5253d in clone () from /lib64/libc.so.6 Using test set: GL_ARB_depth_buffer_float Testing GL_DEPTH_COMPONENT32F Program received signal SIGSEGV, Segmentation fault. #0 0x0000000000694990 in ?? () #1 0x00007ffff3dfe0b4 in pb_destroy (csc=0x7ffff7fe7da0) at ../../../../../src/gallium/auxiliary/pipebuffer/pb_buffer.h:232 #2 pb_reference (csc=0x7ffff7fe7da0) at ../../../../../src/gallium/auxiliary/pipebuffer/pb_buffer.h:242 #3 radeon_bo_reference (csc=0x7ffff7fe7da0) at radeon_drm_bo.h:82 #4 radeon_cs_context_cleanup (csc=0x7ffff7fe7da0) at radeon_drm_cs.c:114 #5 radeon_drm_cs_emit_ioctl_oneshot (csc=0x7ffff7fe7da0) at radeon_drm_cs.c:380 #6 0x00007ffff3dff4d7 in radeon_drm_cs_flush (rcs=0x7ffff7fd7010, flags=<value optimized out>) at radeon_drm_cs.c:435 #7 0x00007ffff3deb08e in r600_context_flush (ctx=0x6a6480, flags=0) at r600_hw_context.c:1508 #8 0x00007ffff3dd455b in r600_texture_get_transfer (ctx=0x6a6150, texture=<value optimized out>, level=0, usage=<value optimized out>, box=0x7ffffffed5b0) at r600_texture.c:719 #9 0x00007ffff40138eb in pipe_get_transfer (ctx=0x7b0150, x=258, y=171, width=1, height=128, format=6407, type=5126, pack=0x7bf8c8, dest=<value optimized out>) at ../../src/gallium/auxiliary/util/u_inlines.h:380 #10 st_readpixels (ctx=0x7b0150, x=258, y=171, width=1, height=128, format=6407, type=5126, pack=0x7bf8c8, dest=<value optimized out>) at state_tracker/st_cb_readpixels.c:472 #11 0x00007ffff3e9b8af in _mesa_ReadnPixelsARB (x=258, y=1, width=1, height=128, format=6407, type=5126, pixels=0xa27fa0) at main/readpix.c:269 #12 _mesa_ReadPixels (x=258, y=1, width=1, height=128, format=6407, type=5126, pixels=0xa27fa0) at main/readpix.c:277 #13 0x0000000000455035 in piglit_probe_rect_rgb () #14 0x000000000042d828 in test_mipmap_drawing () #15 0x000000000042e052 in test_format () #16 0x000000000042e269 in piglit_display () #17 0x000000000042e8f5 in display () #18 0x00007ffff76d1860 in ?? () from /usr/lib64/libglut.so.3 #19 0x00007ffff76d4f69 in fgEnumWindows () from /usr/lib64/libglut.so.3 #20 0x00007ffff76d1bba in glutMainLoopEvent () from /usr/lib64/libglut.so.3 #21 0x00007ffff76d2545 in glutMainLoop () from /usr/lib64/libglut.so.3 #22 0x000000000042efd2 in main () -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel