open-watcom / open-watcom-v2

Open Watcom V2.0 - Source code repository, Wiki, Latest Binary build, Archived builds including all installers for download.
Other
986 stars 160 forks source link

16 bit windowed console crash on very simple app. (Version 2.0 - 2nd February 2022) #826

Open tsupplis opened 2 years ago

tsupplis commented 2 years ago

Compiling the following code base.c

#include <stdio.h>

int main() {
    printf("hello\n");
    return 0;
}

Using the following command line

 wcl -q -os -d3 -0 -bw -bt=windows -l=windows -fe=test16.exe base.c

The version used is: Open Watcom C/C++ x86 16-bit Compile and Link Utility Version 2.0 beta Feb 2 2022 01:01:17 (32-bit) Copyright (c) 2002-2022 The Open Watcom Contributors. All Rights Reserved. Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved. Source code is available under the Sybase Open Watcom Public License. See http://www.openwatcom.org/ for details.

Both binaries crash on windows 3.11 or windows me with the same issue:

For 16 bit:

image image

As a comparison, I also compiled it in wi386 mode and it works well:

wcl386 -q -os -d3 -3 -bw -bt=windows -l=win386 -fe=test32.rex base.c
wbind -q -n test32.rex
image
jmalak commented 2 years ago

Thanks for your bug report. I am able to reproduce your problem. It looks like mouse processing problem in C run-time library.

tsupplis commented 2 years ago

Extra little nugget in info: This is a regression from 1.9.

jmalak commented 2 years ago

Yes, I checked it on OW1.9 too, it works without problem.