Skip to content

Build Failure: CL.exe Crash (0xC0000005) in validate_ids.c #3

@prasad-sawantdesai

Description

@prasad-sawantdesai

While compiling the IMAS-Matlab project on Windows (VS 2022), the compiler crashes during the generation of code for mex-ids_put, mex-ids_put_slice, and mex-ids_validate.

Environment:

Compiler: MSVC v170 (Visual Studio 2022)
File: build\src\ids\validate_ids.c (Line 228250+)
Error Code: MSB6006: "CL.exe" exited with code -1073741676

Error logs

\imas_workspace\IMAS-Matlab\build\src\ids\validate_ids.c(228250,21): warning C4477: 'sprintf' : format string '%d' requires an argument of type 'int', but variadic argument 3 has type 'mwSize
' [\imas_workspace\IMAS-Matlab\build\mex-ids_validate.vcxproj]
     \imas_workspace\IMAS-Matlab\build\src\ids\validate_ids.c(228250,21):
      consider using '%zd' in the format string

  Generating Code...
    CL!CloseTypeServerPDB()+0xdc037
    CL!CloseTypeServerPDB()+0xdc037
    CL!CloseTypeServerPDB()+0xdc004
    CL!CloseTypeServerPDB()+0xdbf0f
    CL!CloseTypeServerPDB()+0xdbad1
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(787,5): error MSB6006: "CL.exe" exited with code -1073741676. [C:\Users\sawantp1\imas_workspace\IM
AS-Matlab\build\mex-ids_validate.vcxproj]


\imas_workspace\IMAS-Matlab\build\src\ids\validate_ids.c(228250,21): warning C4477: 'sprintf' : format string '%d' requires an argument of type 'int', but variadic argument 3 has type 'mwSize
' [\imas_workspace\IMAS-Matlab\build\mex-ids_put_slice.vcxproj]
      \imas_workspace\IMAS-Matlab\build\src\ids\validate_ids.c(228250,21):
      consider using '%zd' in the format string

  Generating Code...
    CL!CloseTypeServerPDB()+0xdc037
    CL!CloseTypeServerPDB()+0xdc037
    CL!CloseTypeServerPDB()+0xdc004
    CL!CloseTypeServerPDB()+0xdbf0f
    CL!CloseTypeServerPDB()+0xdbad1
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(787,5): error MSB6006: "CL.exe" exited with code -1073741676. [C:\Users\sawantp1\imas_workspace\IM
AS-Matlab\build\mex-ids_put_slice.vcxproj]

\imas_workspace\IMAS-Matlab\build\src\ids\validate_ids.c(228250,21): warning C4477: 'sprintf' : format string '%d' requires an argument of type 'int', but variadic argument 3 has type 'mwSize
' [\imas_workspace\IMAS-Matlab\build\mex-ids_put.vcxproj]
      \imas_workspace\IMAS-Matlab\build\src\ids\validate_ids.c(228250,21):
      consider using '%zd' in the format string

  Generating Code...
    CL!CloseTypeServerPDB()+0xdc037
    CL!CloseTypeServerPDB()+0xdc037
    CL!CloseTypeServerPDB()+0xdc004
    CL!CloseTypeServerPDB()+0xdbf0f
    CL!CloseTypeServerPDB()+0xdbad1
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(787,5): error MSB6006: "CL.exe" exited with code -1073741676. [C:\Users\sawantp1\imas_workspace\IM
AS-Matlab\build\mex-ids_put.vcxproj]

It seems validate.c file need to optimize in size?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions