Re: Question about mmap issues on FreeBSD/NetBSD

2004-08-01 Thread Yorick Hardy
Try the patch below, I am not yet sure why this would be necessary. Perhaps it helps. >I've got some cross platform issues i cannot resolve. There are some >obvious issues like the assumption that round() is in the math library >and not linking in the math library itself. i've worked passed thos

Re: Question about mmap issues on FreeBSD/NetBSD

2004-07-31 Thread Yorick Hardy
On Fri, Jul 30, 2004 at 02:30:14PM +0100, Mike Hearn wrote: > > I must be doing something wrong, since wine-kthread gave the same error. > > Anything I may have missed? I copied wine-kthread from loader/wine-kthread. > > In that case I guess it's the code which reserves the top 2gig which is > bai

Re: Question about mmap issues on FreeBSD/NetBSD

2004-07-30 Thread Alexandre Julliard
Yorick Hardy <[EMAIL PROTECTED]> writes: > Also in libs/wine/mmap.c line 119 the result of mincore is never tested, > should it not be > > if ( (mincore( (caddr_t)addr + i, pagesize, &vec ) != -1) && (vec&1) ) No, the goal is to check if something is mapped there, we don't actually care whethe

Re: Question about mmap issues on FreeBSD/NetBSD

2004-07-30 Thread Yorick Hardy
Thanks for the response. I must be doing something wrong, since wine-kthread gave the same error. Anything I may have missed? I copied wine-kthread from loader/wine-kthread. It does not appear to be correct, but is there any chance madvise(..., MADV_DONTNEED) could help? Also in libs/wine/mmap.c

Re: Question about mmap issues on FreeBSD/NetBSD

2004-07-30 Thread Mike Hearn
On Fri, 2004-07-30 at 09:36 +0200, Yorick Hardy wrote: > Thanks for the response. > > I must be doing something wrong, since wine-kthread gave the same error. > Anything I may have missed? I copied wine-kthread from loader/wine-kthread. In that case I guess it's the code which reserves the top 2g

Re: Question about mmap issues on FreeBSD/NetBSD

2004-07-29 Thread Mike Hearn
You need MAP_NORESERVE support otherwise we can't control the address space correctly (unless you have a ton of virtual memory): if you run wine-kthread directly it should still work though unless you have execshield type address space randomisation active. On Thu, 29 Jul 2004 09:13:25 +0200, Yori

Question about mmap issues on FreeBSD/NetBSD

2004-07-29 Thread Yorick Hardy
Just a question about the mmap issues experienced on FreeBSD, i.e. http://www.winehq.org/?issue=230#Wine%20on%20FreeBSD I encountered the same on NetBSD. It seems the error message is set from ld.elf_so in NetBSD and ld-elf.so.1 in FreeBSD, when the address space is mapped for the run time linkin