From spoerlein@informatik.uni-wuerzburg.de  Fri Sep 16 09:59:34 2005
Return-Path: <spoerlein@informatik.uni-wuerzburg.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3A30D16A41F;
	Fri, 16 Sep 2005 09:59:34 +0000 (GMT)
	(envelope-from spoerlein@informatik.uni-wuerzburg.de)
Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6CB9943D45;
	Fri, 16 Sep 2005 09:59:33 +0000 (GMT)
	(envelope-from spoerlein@informatik.uni-wuerzburg.de)
Received: from wrzx30.rz.uni-wuerzburg.de (wrzx30.rz.uni-wuerzburg.de [132.187.1.30])
	by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP
	id E4F68E2642; Fri, 16 Sep 2005 11:59:31 +0200 (CEST)
Received: from virusscan (localhost [127.0.0.1])
	by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP
	id C88469D706; Fri, 16 Sep 2005 11:59:31 +0200 (CEST)
Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28])
	by wrzx30.rz.uni-wuerzburg.de (Postfix) with ESMTP
	id B216690966; Fri, 16 Sep 2005 11:59:31 +0200 (CEST)
Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14])
	by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP
	id A3EABE2642; Fri, 16 Sep 2005 11:59:31 +0200 (CEST)
Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237])
	by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j8G9xU2D094799;
	Fri, 16 Sep 2005 11:59:30 +0200 (CEST)
	(envelope-from spoerlein@informatik.uni-wuerzburg.de)
Received: from roadrunner.q.local (roadrunner.q.local [192.168.0.148])
	by coyote.q.local (8.13.3/8.13.1) with ESMTP id j8G9xUhP090230;
	Fri, 16 Sep 2005 11:59:30 +0200 (CEST)
	(envelope-from q@roadrunner.q.local)
Received: from roadrunner.q.local (localhost [127.0.0.1])
	by roadrunner.q.local (8.13.4/8.13.4) with ESMTP id j8G9xTc8001140;
	Fri, 16 Sep 2005 11:59:29 +0200 (CEST)
	(envelope-from q@roadrunner.q.local)
Received: (from q@localhost)
	by roadrunner.q.local (8.13.4/8.13.4/Submit) id j8G9xTZS001139;
	Fri, 16 Sep 2005 11:59:29 +0200 (CEST)
	(envelope-from q)
Message-Id: <200509160959.j8G9xTZS001139@roadrunner.q.local>
Date: Fri, 16 Sep 2005 11:59:29 +0200 (CEST)
From: Ulrich Spoerlein <q@galgenberg.net>
Reply-To: Ulrich Spoerlein <q@galgenberg.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: gerald@freebsd.org
Subject: WINE + Datasize of more than 0x50000000
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         86207
>Category:       kern
>Synopsis:       WINE + Datasize of more than 0x50000000
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 16 10:00:32 GMT 2005
>Closed-Date:    Tue Feb 05 15:48:50 UTC 2008
>Last-Modified:  Tue Feb 05 15:48:50 UTC 2008
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 6.0-BETA2 i386
>Organization:
>Environment:
>Description:
When the max. Data Size exceeds more than 1GB (1GB is still fine), then
sys/kern/imgact_elf.c has trouble exec()'ing Wine. This also manifests
itself in ldd(1) crashing on the Wine binary.
>How-To-Repeat:
Set kern.maxdsiz="1342177280" in /boot/loader.conf, run wine or
ldd /usr/local/bin/wine. 

% ldd `which wine`
/usr/local/bin/wine:
ELF interpreter /libexec/ld-elf.so.1 not found
/usr/local/bin/wine: signal 6

A maxdsiz of 1073741824 will work just fine, but YMMV.
% ldd `which wine`
/usr/local/bin/wine:
        libwine.so.1 => /usr/local/lib/libwine.so.1 (0xbbf37000)
        libc.so.6 => /lib/libc.so.6 (0xbbf4f000)

Note that using plain limit won't do. You have to reboot.

Now, I initially had a dsize of 2GB and since Wine tries something
funky with it's heap at 0x80000000 I thought this was it. But just
setting dsize somewhat above 1GB will trigger this too. Rather odd.
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gerald 
Responsible-Changed-By: barner 
Responsible-Changed-When: Fri Sep 16 10:06:01 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86207 
Responsible-Changed-From-To: gerald-> 
Responsible-Changed-By: gerald 
Responsible-Changed-When: Sat Sep 17 10:01:45 GMT 2005 
Responsible-Changed-Why:  
I believe this is a kernel issue, not an issue of the emulators/wine port? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86207 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Tue Feb 5 15:48:17 UTC 2008 
State-Changed-Why:  
Believed to be fixed; see kern/94413 for comments. 

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