Re: Crashes if running WordPerfect 5.1

2004-06-19 Thread Stas Sergeev
Hello. Bart Oldeman wrote: don't need IPC SHM, and pagemalloc perhaps doesn't really hurt? I think I would personnally like it best if there wasn't a pagealloc either, but just multiple fd's. After all I changed my mind again and think it is not a good idea any more. By using the kernel's

Re: Crashes if running WordPerfect 5.1

2004-05-31 Thread Stas Sergeev
Hello. Lars_Bjrndal wrote: $_mapping = mapfile Yes, it worked! What happens when you spesify that? Internal thing. Temporary file is being used for the shared backing-store (for storing the DOS memory), instead of a shared mem. Since the file is being created in /dev/shm, it will not be slower

Re: Crashes if running WordPerfect 5.1

2004-05-31 Thread Bart Oldeman
On Sun, 30 May 2004, Stas Sergeev wrote: What I mean is: You have a 4K-region aliased like this: 0x4002 - 0xe Then you resize it to 8K. With mremap() the above alias should still be valid (I think), and with memcpy() you'll have to update the mapping explicitly. Yes that's right. The

Re: Crashes if running WordPerfect 5.1

2004-05-31 Thread Stas Sergeev
Hello. Bart Oldeman wrote: mremap is behaving consistently (i.e. if you mmap bytes 4096-8191 of a file with size 4000 you can't expect that file to be extended to 8192 bytes, the same is true for shm virtual files. I just think kernel must hide that things from userspace and resolve them

Re: Crashes if running WordPerfect 5.1

2004-05-30 Thread Bart Oldeman
It smells a bit like a kernel bug: the program below gives a bus error... #define _GNU_SOURCE 1 #include unistd.h #include sys/mman.h #include stdio.h int main(void) { char *p = mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_SHARED|MAP_ANONYMOUS, -1, 0); p[0] = '1'; printf(p = %p, p[0]

Crashes if running WordPerfect 5.1

2004-05-29 Thread Lars Bjørndal
I've upgraded my Red Hat Fedora to Core 2. Then, I also had to upgrade Dosemu, and I picked the latest CVS (yesterday evening). Now, I can not run WordPerfect 5.1 any more, Dosemu crashes. It's very important for me to be able to run wp. What can I do to this? Lars - To unsubscribe from this

Re: Crashes if running WordPerfect 5.1

2004-05-29 Thread Bart Oldeman
On Sat, 29 May 2004, Lars Bjørndal wrote: I've upgraded my Red Hat Fedora to Core 2. Then, I also had to upgrade Dosemu, and I picked the latest CVS (yesterday evening). Now, I can not run WordPerfect 5.1 any more, Dosemu crashes. It's very important for me to be able to run wp. What can I do

Re: Crashes if running WordPerfect 5.1

2004-05-29 Thread Bart Oldeman
Hi, Lars_BjÛrndal wrote: Dosemu, and I picked the latest CVS (yesterday evening). Now, I can not run WordPerfect 5.1 any more, Dosemu crashes. It's very important for me to be able to run wp. What can I do to this? You can set $_mapping = mapfile in your dosemu.conf. The patch below

Re: Crashes if running WordPerfect 5.1

2004-05-29 Thread Stas Sergeev
Hello. Bart Oldeman wrote: The patch below also does the job. Why didn't the mremap() do the trick? As far as I could see DPMI no longer calls this function But it still uses mremap(), although not with a shared mem. + /* expanded new memory is apparently not shared so can't be aliased.