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

Bug#545085: marked as done ([libgl1-mesa-dri] sigsegv when readpixels from frontbuffer with i915)



Your message dated Tue, 29 Sep 2009 12:03:16 +0000
with message-id <E1MsbQK-0004Cv-OE@ries.debian.org>
and subject line Bug#545085: fixed in mesa 7.6-1
has caused the Debian Bug report #545085,
regarding [libgl1-mesa-dri] sigsegv when readpixels from frontbuffer with i915
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
545085: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=545085
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libgl1-mesa-dri
Version: 7.5.1-1
Severity: normal

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
  500 unstable        ftp.debian.org 
  500 unstable        eeepc.debian.net 
    1 experimental    ftp.debian.org 

--- Package information. ---
Depends               (Version) | Installed
===============================-+-==============
libc6             (>= 2.3.6-6~) | 2.9-26
libdrm-intel1        (>= 2.4.9) | 2.4.12-1
libdrm2              (>= 2.3.1) | 2.4.12-1
libexpat1           (>= 1.95.8) | 2.0.1-4


Package's Recommends field is empty.

Suggests       (Version) | Installed
========================-+-===========
libglide3                | 
#include <iostream>
#include <GL/gl.h>
#include <GL/glu.h>
#include "SDL.h"

using namespace std;

const unsigned int WIDTH = 100;
const unsigned int HEIGHT = 100;
const unsigned int BPP = 16;

SDL_Surface *surface;

bool Test_glReadPixels()
{
	unsigned char pixels[WIDTH*HEIGHT*3];

	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	glBegin(GL_TRIANGLES);
	glVertex3f(-0.0f,  1.0f, -6.0f);
	glVertex3f(-1.0f, -1.0f, -6.0f);
	glVertex3f(1.0f, -1.0f, -6.0f);
	glEnd();
	SDL_GL_SwapBuffers();

	// Full Read -> all pixel at the same time
	glReadBuffer( GL_FRONT );
	glReadPixels(0, 0, WIDTH, HEIGHT, GL_RGB, GL_UNSIGNED_BYTE, static_cast<void*>(pixels));

	return true;
}

int main()
{
	int videoFlags;
	const SDL_VideoInfo *videoInfo;

	if (SDL_Init(SDL_INIT_VIDEO) < 0) {
		cerr << "Video initialization failed: " << SDL_GetError() << endl;
		SDL_Quit();
		exit(1);
	}

	videoInfo = SDL_GetVideoInfo();
	if (!videoInfo) {
		cerr << "Video query failed: " << SDL_GetError() << endl;
		SDL_Quit();
		exit(1);
	}

	videoFlags  = SDL_OPENGL | SDL_GL_DOUBLEBUFFER | SDL_HWPALETTE;
	if (videoInfo->hw_available)
		videoFlags |= SDL_HWSURFACE;
	else
		videoFlags |= SDL_SWSURFACE;

	if (videoInfo->blit_hw)
		videoFlags |= SDL_HWACCEL;

	SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
	surface = SDL_SetVideoMode(WIDTH, HEIGHT, BPP, videoFlags);

	if (!surface) {
		cerr << "Video mode set failed: " << SDL_GetError() << endl;
		SDL_Quit();
		exit(1);
	}

	glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
	glClearDepth(1.0f);
	glEnable(GL_DEPTH_TEST);
	glDepthFunc(GL_LEQUAL);

	const GLfloat ratio = static_cast<GLfloat>(WIDTH) / static_cast<GLfloat>(HEIGHT);
	glViewport(0, 0, WIDTH, HEIGHT);

	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();
	gluPerspective(45.0f, ratio, 0.25f, 100.0f);
	glMatrixMode(GL_MODELVIEW);
	glLoadIdentity();

	if (Test_glReadPixels() != true) {
		SDL_Quit();
		return 1;
	}

	SDL_Quit();
	return 0;
}

--- End Message ---
--- Begin Message ---
Source: mesa
Source-Version: 7.6-1

We believe that the bug you reported is fixed in the latest version of
mesa, which is due to be installed in the Debian FTP archive:

libgl1-mesa-dev_7.6-1_i386.deb
  to pool/main/m/mesa/libgl1-mesa-dev_7.6-1_i386.deb
libgl1-mesa-dri-dbg_7.6-1_i386.deb
  to pool/main/m/mesa/libgl1-mesa-dri-dbg_7.6-1_i386.deb
libgl1-mesa-dri_7.6-1_i386.deb
  to pool/main/m/mesa/libgl1-mesa-dri_7.6-1_i386.deb
libgl1-mesa-glx-dbg_7.6-1_i386.deb
  to pool/main/m/mesa/libgl1-mesa-glx-dbg_7.6-1_i386.deb
libgl1-mesa-glx_7.6-1_i386.deb
  to pool/main/m/mesa/libgl1-mesa-glx_7.6-1_i386.deb
libgl1-mesa-swx11-dbg_7.6-1_i386.deb
  to pool/main/m/mesa/libgl1-mesa-swx11-dbg_7.6-1_i386.deb
libgl1-mesa-swx11-dev_7.6-1_i386.deb
  to pool/main/m/mesa/libgl1-mesa-swx11-dev_7.6-1_i386.deb
libgl1-mesa-swx11-i686_7.6-1_i386.deb
  to pool/main/m/mesa/libgl1-mesa-swx11-i686_7.6-1_i386.deb
libgl1-mesa-swx11_7.6-1_i386.deb
  to pool/main/m/mesa/libgl1-mesa-swx11_7.6-1_i386.deb
libglu1-mesa-dev_7.6-1_i386.deb
  to pool/main/m/mesa/libglu1-mesa-dev_7.6-1_i386.deb
libglu1-mesa_7.6-1_i386.deb
  to pool/main/m/mesa/libglu1-mesa_7.6-1_i386.deb
libglw1-mesa-dev_7.6-1_i386.deb
  to pool/main/m/mesa/libglw1-mesa-dev_7.6-1_i386.deb
libglw1-mesa_7.6-1_i386.deb
  to pool/main/m/mesa/libglw1-mesa_7.6-1_i386.deb
libosmesa6-dev_7.6-1_i386.deb
  to pool/main/m/mesa/libosmesa6-dev_7.6-1_i386.deb
libosmesa6_7.6-1_i386.deb
  to pool/main/m/mesa/libosmesa6_7.6-1_i386.deb
mesa-common-dev_7.6-1_i386.deb
  to pool/main/m/mesa/mesa-common-dev_7.6-1_i386.deb
mesa-utils_7.6-1_i386.deb
  to pool/main/m/mesa/mesa-utils_7.6-1_i386.deb
mesa_7.6-1.diff.gz
  to pool/main/m/mesa/mesa_7.6-1.diff.gz
mesa_7.6-1.dsc
  to pool/main/m/mesa/mesa_7.6-1.dsc
mesa_7.6.orig.tar.gz
  to pool/main/m/mesa/mesa_7.6.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 545085@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Brice Goglin <bgoglin@debian.org> (supplier of updated mesa package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Tue, 29 Sep 2009 11:51:58 +0200
Source: mesa
Binary: libgl1-mesa-swx11 libgl1-mesa-swx11-dbg libgl1-mesa-swx11-i686 libgl1-mesa-swx11-dev libgl1-mesa-glx libgl1-mesa-glx-dbg libgl1-mesa-dri libgl1-mesa-dri-dbg libgl1-mesa-dev mesa-common-dev libosmesa6 libosmesa6-dev libglu1-mesa libglu1-mesa-dev libglw1-mesa libglw1-mesa-dev mesa-utils
Architecture: source i386
Version: 7.6-1
Distribution: unstable
Urgency: low
Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
Changed-By: Brice Goglin <bgoglin@debian.org>
Description: 
 libgl1-mesa-dev - A free implementation of the OpenGL API -- GLX development files
 libgl1-mesa-dri - A free implementation of the OpenGL API -- DRI modules
 libgl1-mesa-dri-dbg - Debugging symbols for the Mesa DRI modules
 libgl1-mesa-glx - A free implementation of the OpenGL API -- GLX runtime
 libgl1-mesa-glx-dbg - Debugging symbols for the Mesa GLX runtime
 libgl1-mesa-swx11 - A free implementation of the OpenGL API -- runtime
 libgl1-mesa-swx11-dbg - A free implementation of the OpenGL API -- debugging symbols
 libgl1-mesa-swx11-dev - A free implementation of the OpenGL API -- development files
 libgl1-mesa-swx11-i686 - Mesa OpenGL runtime [i686 optimized]
 libglu1-mesa - The OpenGL utility library (GLU)
 libglu1-mesa-dev - The OpenGL utility library -- development files
 libglw1-mesa - A free implementation of the OpenGL API -- runtime
 libglw1-mesa-dev - A free implementation of the OpenGL API -- development files
 libosmesa6 - Mesa Off-screen rendering extension
 libosmesa6-dev - Mesa Off-screen rendering extension -- development files
 mesa-common-dev - Developer documentation for Mesa
 mesa-utils - Miscellaneous Mesa GL utilities
Closes: 539162 545085
Changes: 
 mesa (7.6-1) unstable; urgency=low
 .
   [ Brice Goglin ]
   * New upstream release.
     + Fix software fallback assertion on RS480, closes: #539162.
     + Fix segfault in _swrast_ReadPixels on i915, closes: #545085.
 .
   [ Julien Cristau ]
   * Don't run install from the various configs in parallel, hopefully fixing a
     bug in the previous debian/rules.  Thanks to Bernhard R. Link for the
     suggestions.
Checksums-Sha1: 
 bd1db100208d598ad343c001de183c4c248c00d9 1892 mesa_7.6-1.dsc
 6f4577ebf2bc7e0d22dbf75b334cb99373fff478 8691502 mesa_7.6.orig.tar.gz
 0e251fab56e87bce5290977a070f65ded8f6c6d2 2243133 mesa_7.6-1.diff.gz
 f2e68c3162593881c049cff5292944dee7f85252 977666 libgl1-mesa-swx11_7.6-1_i386.deb
 58870d8d2a532fdfd5971d6d01d075e9a56cc9ad 4340968 libgl1-mesa-swx11-dbg_7.6-1_i386.deb
 a157576426bd05acb5718e8e81fd9da25873a791 974016 libgl1-mesa-swx11-i686_7.6-1_i386.deb
 6064c40adbc057fc625957083db9f2907e8fa3b9 1120752 libgl1-mesa-swx11-dev_7.6-1_i386.deb
 93fba1e896256cabda7e42d0ee858823fb48ddea 150486 libgl1-mesa-glx_7.6-1_i386.deb
 1aafeb0dda07ca37e97c708caab69a9417e4fd4a 597668 libgl1-mesa-glx-dbg_7.6-1_i386.deb
 59351747bc0c188558434b9ede06536c8f4078b0 14588936 libgl1-mesa-dri_7.6-1_i386.deb
 2ea9e951118e6d300abf94525c33da537c632135 72455664 libgl1-mesa-dri-dbg_7.6-1_i386.deb
 28ac7ba0330817923e230d1761809c9ddfef7b47 23202 libgl1-mesa-dev_7.6-1_i386.deb
 2d0497da3ad999092371d67cec0ed33bb7b90d27 2121730 mesa-common-dev_7.6-1_i386.deb
 56076cef15ed3c8e378d0c32f09f0dbcf2024aa4 2599042 libosmesa6_7.6-1_i386.deb
 ab593f2b5fe51bc27abcecde8ad15d591d6da19c 3012526 libosmesa6-dev_7.6-1_i386.deb
 90c366f928f008b6c471e73541942c3e9a5f2e4a 210266 libglu1-mesa_7.6-1_i386.deb
 1126902a1f0b8859d623b35173e70ef121f4cd08 258974 libglu1-mesa-dev_7.6-1_i386.deb
 19ce140496155ee1ad71dd76fcf3233f9e716b4e 30432 libglw1-mesa_7.6-1_i386.deb
 4c1ee850ac412b29e5ac96580a0ae7f7a56876e0 31390 libglw1-mesa-dev_7.6-1_i386.deb
 6b24afbe994b8c98dc6a8b612466e14915d54108 45682 mesa-utils_7.6-1_i386.deb
Checksums-Sha256: 
 a0b604f5d189e656056844695032bc5d627c0300505c11801de15fca7d0392f0 1892 mesa_7.6-1.dsc
 9547f5b2bf61bd754ce2a003591f4660449cbfb76c90d0153df5900e52de99d0 8691502 mesa_7.6.orig.tar.gz
 347682079dc02456044a5bc569c20f99adfd370c8a3213adc1ca005235cefa89 2243133 mesa_7.6-1.diff.gz
 732019f61f3522e9bfff0a2cc706d48ec5d41afeb7ae76a54e390c6a7f6411ea 977666 libgl1-mesa-swx11_7.6-1_i386.deb
 2bdfee532fe05e339e5537fedf82ea3f6b5534b971c67c1e3f7f7b53c02420b9 4340968 libgl1-mesa-swx11-dbg_7.6-1_i386.deb
 1833139c3e72d3ea2dbf6f9a98fe42097f5922cd48f5304484a11cf52a594817 974016 libgl1-mesa-swx11-i686_7.6-1_i386.deb
 ffbb9da9482c71f5d4fd77f967e44b6d1f4d269d93a1539c8deac70defb1f7ef 1120752 libgl1-mesa-swx11-dev_7.6-1_i386.deb
 adf29a60f0f837ac61d8a4a5c89c57d03833dd984b5c56477613b90852884ce2 150486 libgl1-mesa-glx_7.6-1_i386.deb
 a4a87bc6e2c26aaf818b16c0071bac5b9d9149e9794b3576a22365390de12e1d 597668 libgl1-mesa-glx-dbg_7.6-1_i386.deb
 1b0049c8899dfb514bdbfb32a5d6115e9c1befa189a6e614f7d27dcee1d5ac71 14588936 libgl1-mesa-dri_7.6-1_i386.deb
 f24ecfebff9ca12f2c12abe76c6ffd871bec5cb70ee50e3f1c4fe5d004c41c33 72455664 libgl1-mesa-dri-dbg_7.6-1_i386.deb
 420bd1d927269e50754129e18f517ebb6494963ce93b6a12cfc0cd73eac70a72 23202 libgl1-mesa-dev_7.6-1_i386.deb
 831320a9ba3ea4760b7227e6ed238c1a4077501eccbcdc72ab4b35e2f1583aa5 2121730 mesa-common-dev_7.6-1_i386.deb
 a16d9ccb270ab5f71008d9d5f2330a337d8380c40ccd588ff41f240cfde2b14b 2599042 libosmesa6_7.6-1_i386.deb
 94c6b03d892e1bee8a4c9be1e3950dfeee16a21a403c00eb003ae8d4d895393f 3012526 libosmesa6-dev_7.6-1_i386.deb
 f584e4cc674cc6c1dde0677a66be88cc1a6e3c7fa2fd9edea6bfa24e9ee6c0a9 210266 libglu1-mesa_7.6-1_i386.deb
 ed03992e669abae2a2fbaf06140aa493873f5cd465b81c56434ec42b589678d3 258974 libglu1-mesa-dev_7.6-1_i386.deb
 8cdd6702ea71de9d1522c4cefc5a07a12e05f5c0cfafc8c806fde6f6ea4db288 30432 libglw1-mesa_7.6-1_i386.deb
 bcbfdff05df84ce3709a9c05e6ab748eef19ea76d589afc1f4715e53659a0b32 31390 libglw1-mesa-dev_7.6-1_i386.deb
 ff09531fbe9105c54ce14457e49dc7984524e2650972804e4d8fd7f6fdc349b3 45682 mesa-utils_7.6-1_i386.deb
Files: 
 761e679f79884f868a5fb3844716dc04 1892 graphics optional mesa_7.6-1.dsc
 31f3a5fdd4f71e25c2b8514dc0eaebb4 8691502 graphics optional mesa_7.6.orig.tar.gz
 0e06c712ae44f5d72b30744009a3f59c 2243133 graphics optional mesa_7.6-1.diff.gz
 1714f77488d9be3caf29d7deb012b59e 977666 libs extra libgl1-mesa-swx11_7.6-1_i386.deb
 b8ccf6ee6b18f59861132a4d5cb2529a 4340968 debug extra libgl1-mesa-swx11-dbg_7.6-1_i386.deb
 0093c48346346c885ee2f44f583c5392 974016 libs extra libgl1-mesa-swx11-i686_7.6-1_i386.deb
 027692d046ef20cbfa649275ff0b20ed 1120752 libdevel extra libgl1-mesa-swx11-dev_7.6-1_i386.deb
 c913701274ee0e47e9fde32fd12e341c 150486 libs optional libgl1-mesa-glx_7.6-1_i386.deb
 65e6f17de867f266855047143425c162 597668 debug extra libgl1-mesa-glx-dbg_7.6-1_i386.deb
 cd5f607e9e0ff8eb3477963b67786518 14588936 libs optional libgl1-mesa-dri_7.6-1_i386.deb
 eaaa34ec8b02544b7fe393577c44a487 72455664 debug extra libgl1-mesa-dri-dbg_7.6-1_i386.deb
 73a5a3268c52936e9dac29ff3dd0f69a 23202 libdevel optional libgl1-mesa-dev_7.6-1_i386.deb
 e3b69e0d6ba11c3c2c84ff2bbffbf38d 2121730 libdevel optional mesa-common-dev_7.6-1_i386.deb
 905a2140acbe8ec59b333ddddc508280 2599042 libs optional libosmesa6_7.6-1_i386.deb
 7038d1df05fd64c3983e42605875518a 3012526 libdevel optional libosmesa6-dev_7.6-1_i386.deb
 df53a3a4d680404e575d954684d9d6f3 210266 libs optional libglu1-mesa_7.6-1_i386.deb
 6782a9d332a47735df410406aff4c7b6 258974 libdevel optional libglu1-mesa-dev_7.6-1_i386.deb
 833de73fde883ec14d104b4e957a2e66 30432 libs optional libglw1-mesa_7.6-1_i386.deb
 469075da7f34014438b6ace15982169d 31390 libdevel optional libglw1-mesa-dev_7.6-1_i386.deb
 195c6826af80f3a66d057ab91465b5ee 45682 x11 optional mesa-utils_7.6-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkrB6m0ACgkQRh88F8PcWfoBFACdGlpPO/KKg0MnLpvk7A+xEzQe
wC4An1MAmaSt2Q4A5fee12rb98asOMh8
=eYwc
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: