[Bug 50845] New: jscript crashes on internal assert(0) in PE build with clang

WineHQ Bugzilla wine-bugs at winehq.org
Mon Mar 22 11:29:58 CDT 2021


https://bugs.winehq.org/show_bug.cgi?id=50845

            Bug ID: 50845
           Summary: jscript crashes on internal assert(0) in PE build with
                    clang
           Product: Wine
           Version: 6.4
          Hardware: x86-64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: jscript
          Assignee: wine-bugs at winehq.org
          Reporter: dmitry at baikal.ru
                CC: jacek at codeweavers.com
      Distribution: ---

Jacek, adding you to cc:, you might be interested.

This doesn't happen in an ELF build.

In order to reproduce build Wine in PE with clang, and run 'make test' in
dlls/jscript/tests:

Assertion failed: 0, file ../wine/dlls/jscript/jsutils.c, line 245

This the result of the call
hres = jsdisp_define_data_property(ctx->global, L"NaN", const_flags,
jsval_number(NAN));
https://source.winehq.org/git/wine.git/blob/HEAD:/dlls/jscript/global.c#l1112
during initialization, no user provided script is even gets started being
interpreted.

It seems that the reason is difference in 'struct _jsval_t' layout
https://source.winehq.org/git/wine.git/blob/HEAD:/dlls/jscript/jsval.h#l54
between gcc and clang.

$ clang --version
clang version 11.0.0
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list