Bug 23724 - sigsegv when readpixels from frontbuffer with i915
Summary: sigsegv when readpixels from frontbuffer with i915
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i915 (show other bugs)
Version: 7.5
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL: http://bugs.debian.org/545085
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-04 17:16 UTC by Robert Wohlrab
Modified: 2009-09-04 17:40 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Test program (1.87 KB, text/x-c++src)
2009-09-04 17:16 UTC, Robert Wohlrab
Details

Description Robert Wohlrab 2009-09-04 17:16:50 UTC
Created attachment 29242 [details]
Test program

I've here a bigger program which worked in previous (cannot tell which) version of this package, but currently it seems to crash when it calls glReadPixels. I tried to create a similar testcase for the bug report and noticed that it only(?) happened when I tried to read from frontbuffer. The simple test is attached to this mail. It can be compiled with:

g++ -o readpixels_z readpixels_z.cpp `sdl-config --cflags` `sdl-config --libs` -lGL -lGLU

Backtrace:
#0  0x00000000 in ?? ()
#1  0xb7729dba in _swrast_ReadPixels (ctx=0x64, x=0, y=0, width=100, height=100, format=6407, type=5121, packing=0x809a40c, pixels=0xbfff7b98)
    at swrast/s_readpix.c:605
#2  0xb7604c49 in intelReadPixels (ctx=0x808d530, x=0, y=0, width=100, height=100, format=6407, type=5121, pack=0x809a40c, pixels=0xbfff7b98)
	    at intel_pixel_read.c:305
#3  0xb7794ec6 in _mesa_ReadPixels (x=0, y=0, width=100, height=100, format=6407, type=5121, pixels=0xbfff7b98) at main/readpix.c:191
#4  0x08048e42 in Test_glReadPixels() ()
#5  0x0804908b in main ()

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.31-rc5

Debian Release: squeeze/sid

libc6  2.9-26
libdrm-intel1  2.4.12-1
libdrm2  2.4.12-1
libexpat1  2.0.1-4

Hardware is a EeePC  1000h
Comment 1 Robert Wohlrab 2009-09-04 17:40:43 UTC
Fixed in

04081a164ca6160404d87dccbfc641bfd46428e0
2855ee82c6d74066e8d9e44b17b2ce3b5782110e
cf820a045f0626718ec147ebb26e31f82ec0b4fb
b2cba25f9eecf2063c3b98d66ade59cd9e50990e


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.