From josh@hewbert.com  Tue Jan 11 18:20:16 2005
Return-Path: <josh@hewbert.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7039916A4CF
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 Jan 2005 18:20:16 +0000 (GMT)
Received: from hewbert.com (hewbert.com [209.159.224.51])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 382CE43D39
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 Jan 2005 18:20:14 +0000 (GMT)
	(envelope-from josh@hewbert.com)
Received: from banana.hewbert.com (unknown [67.158.8.175])
	by hewbert.com (smtpd) with ESMTP id 2C94D40E8
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 Jan 2005 11:22:26 -0700 (MST)
Received: by banana.hewbert.com (Postfix, from userid 1001)
	id 396016127; Tue, 11 Jan 2005 11:20:11 -0700 (MST)
Message-Id: <20050111182011.396016127@banana.hewbert.com>
Date: Tue, 11 Jan 2005 11:20:11 -0700 (MST)
From: Joshua Beard <josh@hewbert.com>
Reply-To: Joshua Beard <josh@hewbert.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: xorg-libraries-6.8.1: apps crashing on large images (BadAlloc)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         76115
>Category:       ports
>Synopsis:       xorg-libraries-6.8.1: apps crashing on large images (BadAlloc)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-x11
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 11 18:30:32 GMT 2005
>Closed-Date:    Wed Jan 12 23:46:53 GMT 2005
>Last-Modified:  Wed Jan 12 23:46:53 GMT 2005
>Originator:     Joshua Beard
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD banana 5.3-RELEASE FreeBSD 5.3-RELEASE #10: Thu Dec 2 10:45:07 MST 2004 josh@banana:/usr/obj/usr/src/sys/BANANA i386

Video: Matrox MGA G400 & nVidia MX400 (Xinerama)
CFLAGS: -O -pipe
Memory: 512 MB, 512 Swap
>Description:
Apps that link against libX11.so.6 => /usr/X11R6/lib/libX11.so.6 crash when you attempt to view a large image (at least that's how I interpret it). Examples are Gimp and Mozilla/Firefox:

The program 'firefox-bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 151467 error_code 11 request_code 53 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

.. as if something isn't being "freed-up"
>How-To-Repeat:
Run app that links to libX11.so.6 and view large image. With Gecko, you might try the following URL:
http://www.nasa.gov/images/content/104948main_image_feature_246_ajhfull.jpg
>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-x11 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Jan 12 05:22:41 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76115 

From: Eric Anholt <eta@lclark.edu>
To: gnats <freebsd-gnats-submit@FreeBSD.ORG>
Cc:  
Subject: Re: ports/76115
Date: Wed, 12 Jan 2005 15:39:58 -0800

 I and another developer have failed to reproduce this on the sample
 image you provided in firefox or the gimp.  This suggests that those
 programs are simply failing when they meet an unexpected resource
 shortage that we aren't experiencing, which would be just what a
 BadAlloc would be returned for on a very large image.  Given that these
 errors are rare under normal circumstances, it's understandable that
 applications tend to fail when they occur, but that doesn't change that
 it is the application's fault for not handling them.  Thus, these errors
 should be taken up with the upstream of those applications, unless it
 can be shown that this clearly doesn't occur with different versions of
 X and is a new regression (but again, WORKSFORME).
 
 -- 
 Eric Anholt                                eta@lclark.edu          
 http://people.freebsd.org/~anholt/         anholt@FreeBSD.org
State-Changed-From-To: open->closed 
State-Changed-By: anholt 
State-Changed-When: Wed Jan 12 23:46:20 GMT 2005 
State-Changed-Why:  
Closed, as this is a PR for two application bugs (afaict) which should be 
pursued in upstream bugtrackers. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76115 
>Unformatted:
