Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Sep 2005 11:59:29 +0200 (CEST)
From:      Ulrich Spoerlein <q@galgenberg.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        gerald@FreeBSD.org
Subject:   ports/86207: WINE + Datasize of more than 0x50000000
Message-ID:  <200509160959.j8G9xTZS001139@roadrunner.q.local>
Resent-Message-ID: <200509161000.j8GA0WBv085078@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         86207
>Category:       ports
>Synopsis:       WINE + Datasize of more than 0x50000000
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 16 10:00:32 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509160959.j8G9xTZS001139>