Memory problem in winelib apps?

Walt Ogburn reuben at ugcs.caltech.edu
Tue Jun 21 20:29:44 CDT 2005


Hi developers,

I'm trying to understand why the following simple program crashes.  I
think this is the same problem that prevents jack_fst from running with
the current version of wine.  (Jack_fst allows a lot of programs called
VSTs to be run, for audio work).

I compiled this with:
> winemaker .
> make

and ran it with:
> wine membug.exe.so

If BUFSIZE is 1044097, there's an error like this:
err:seh:setup_exception stack overflow 12 bytes in thread 0009 eip 4057426f esp 40580ff4 stack 0x40580000-0x40680000

If BUFSIZE is 1044096 or lower, there's no error.  If BUFSIZE is much
higher (like 2000000), there's a segfault.

All the program does is define a character array of size BUFSIZE and
scribble in it to make sure it really gets allocated.  Maybe this simple
example will show how to make jack_fst work.

Thanks,
Walter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: membug.c
Type: text/x-csrc
Size: 294 bytes
Desc: 
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20050621/87a247e2/membug.c


More information about the wine-devel mailing list