Subject: pkg/30997: pgadmin3 crashes on too many env variables
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <erh@swapsimple.com>
List: pkgsrc-bugs
Date: 08/16/2005 00:22:00
>Number:         30997
>Category:       pkg
>Synopsis:       pgadmin3 crashes on too many env variables
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 16 00:22:00 +0000 2005
>Originator:     Eric Haszlakiewicz
>Release:        NetBSD 3.99.7
>Organization:
>Environment:
See PR 30996 for details of packages installed.

System: NetBSD poe.swapsimple.com 3.99.7 NetBSD 3.99.7 (POE) #12: Sun Jul 24 12:28:42 CDT 2005 erh@poe.swapsimple.com:/usr/build/POE i386
Architecture: i386
Machine: i386
>Description:
	When there are more than 30 environment variables defined, pgadmin3
crashes right after displaying a splash screen.

>How-To-Repeat:
	Assuming the bug in PR#30996 is fixed or worked around, do something like
so:
env -i /bin/sh
export DISPLAY=:0.0
pgadmin3
# notice that it works.
# exit
for f in 1 2 3 ; do
	for g in 1 2 3 4 5 6 7 8 9 10; do
		eval export X$f$g=x
	done
done
pgadmin3
# notice that it crashes.

>Fix: