Re: New SHM server broken?

Matthijs Kooijman <[email protected]>
Newsgroups gmane.comp.emulators.winex.devel
Message-ID <[email protected]>
> most likely there's a memory leak in there somewhere. A 4MB data 
> segement, while not huge, ought to be big enough as an average game 
> seems to require something on the order of 500KB. Although as you note, 
> it does store the whole registry in that shared memory so it's possible 
> that a large registry will blow it out of the water. The other 
> possibility is that memory fragmentation is causing problems. I'd guess 
> that it's a memory leak though.
Well, it appears to run out of memory while initializing wine (just
`wine calc' won't even work), during the loading of the default registry
keys (even before loading my .reg files). So even if it is a mem leak,
it is somewhere within wine, since no program will run.

> To increase the size of the shm segment just increase the define for 
> initial_size in shm.c and recompile. Let me know if it still runs out of 
> memory. To be able to look at the shm mallocs/frees if you recompile 
> libwineserver with PH_TRACE you should be able to have a closer look.
Yeah, I tried that... But, 4M is the maximum Shared Segment Size on
Linux (so said some man page on the inet. When I increased the size, the
function that allocates the segment [don't remember the name] gave an
illegal argument error...)

> What application is the you're seeing this problem with?
I've tried regedit, calc, diablo2 and then concluded that it will
probably break for all applications...

Gr.

Matthijs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.