libxml2-win-build icon indicating copy to clipboard operation
libxml2-win-build copied to clipboard

build in X64 debug in my project and read xml file got bug and crash “xmlInitXPathInternal”

Open Sancaros opened this issue 7 months ago • 7 comments

[2025年05月10日 23:28:48:767] 崩溃(pso_crash_handle.c0108): 由于发生异常程序崩溃了 [2025年05月10日 23:28:48:768] 崩溃(pso_crash_handle.c0115): 异常码: 0xC000001D [2025年05月10日 23:28:48:778] 崩溃(pso_crash_handle.c0116): 异常内存地址: 0x00007FFAEC65D9E2 [2025年05月10日 23:28:49:100] 崩溃(pso_crash_handle.c0126): 异常发生位置: [2025年05月10日 23:28:49:100] 崩溃(pso_crash_handle.c0127): 文件: E:\PSOBB\PSOSERVER\PSOSERVER\通用库\libxml2-win-build\xpath.c [2025年05月10日 23:28:49:108] 崩溃(pso_crash_handle.c0128): 第 227 行 [2025年05月10日 23:28:49:117] 崩溃(pso_crash_handle.c0133): 调用堆栈: [2025年05月10日 23:28:49:156] 崩溃(pso_crash_handle.c0150): 函数[0]: crash_handler [2025年05月10日 23:28:49:162] 崩溃(pso_crash_handle.c0150): 函数[1]: psocn_read_ship_config$filt$0 [2025年05月10日 23:28:49:166] 崩溃(pso_crash_handle.c0150): 函数[2]: __C_specific_handler [2025年05月10日 23:28:49:173] 崩溃(pso_crash_handle.c0150): 函数[3]: _chkstk [2025年05月10日 23:28:49:182] 崩溃(pso_crash_handle.c0150): 函数[4]: RtlWalkFrameChain [2025年05月10日 23:28:49:188] 崩溃(pso_crash_handle.c0150): 函数[5]: KiUserExceptionDispatcher [2025年05月10日 23:28:49:212] 崩溃(pso_crash_handle.c0150): 函数[6]: xmlInitXPathInternal [2025年05月10日 23:28:49:212] 崩溃(pso_crash_handle.c0150): 函数[7]: xmlInitParserInternal [2025年05月10日 23:28:49:230] 崩溃(pso_crash_handle.c0150): 函数[8]: xmlInitParserWinWrapper [2025年05月10日 23:28:49:236] 崩溃(pso_crash_handle.c0150): 函数[9]: RtlRunOnceExecuteOnce [2025年05月10日 23:28:49:245] 崩溃(pso_crash_handle.c0150): 函数[10]: InitOnceExecuteOnce [2025年05月10日 23:28:49:255] 崩溃(pso_crash_handle.c0150): 函数[11]: xmlInitParser [2025年05月10日 23:28:49:263] 崩溃(pso_crash_handle.c0150): 函数[12]: psocn_read_ship_config [2025年05月10日 23:28:49:271] 崩溃(pso_crash_handle.c0150): 函数[13]: main [2025年05月10日 23:28:49:280] 崩溃(pso_crash_handle.c0150): 函数[14]: invoke_main [2025年05月10日 23:28:49:286] 崩溃(pso_crash_handle.c0150): 函数[15]: __scrt_common_main_seh [2025年05月10日 23:28:49:292] 崩溃(pso_crash_handle.c0150): 函数[16]: __scrt_common_main [2025年05月10日 23:28:49:299] 崩溃(pso_crash_handle.c0150): 函数[17]: mainCRTStartup [2025年05月10日 23:28:49:309] 崩溃(pso_crash_handle.c0150): 函数[18]: BaseThreadInitThunk [2025年05月10日 23:28:49:317] 崩溃(pso_crash_handle.c0150): 函数[19]: RtlUserThreadStart [2025年05月10日 23:28:49:334] 崩溃(psoconfig_ship.c1766): 出现错误, 程序将退出.

build in X64 debug in my project and read xml file got bug and crash “xmlInitParser”


System Information

  Time of this report: 5/10/2025, 23:34:53
         Machine name: WIN-5SA6M4M96FR
           Machine Id: {88AED6A2-4DE5-412E-A284-96A027A14E39}
     Operating System: Windows Server 2019 Datacenter 64-bit (10.0, Build 17763) (17763.rs5_release.180914-1434)
             Language: Chinese (Simplified) (Regional Setting: Chinese (Simplified))
  System Manufacturer: HP
         System Model: ProLiant DL380 G7
                 BIOS: Default System BIOS (type: BIOS)
            Processor: Intel(R) Xeon(R) CPU           E5649  @ 2.53GHz (24 CPUs), ~2.5GHz
               Memory: 294912MB RAM
  Available OS Memory: 294902MB RAM
            Page File: 12891MB used, 320922MB available
          Windows Dir: C:\Windows
      DirectX Version: DirectX 12
  DX Setup Parameters: Not found
     User DPI Setting: 96 DPI (100 percent)
   System DPI Setting: 96 DPI (100 percent)
      DWM DPI Scaling: Disabled
             Miracast: Not Available

Microsoft Graphics Hybrid: Not Supported DxDiag Version: 10.00.17763.3113 64bit Unicode

Sancaros avatar May 10 '25 15:05 Sancaros

Any sample code and xml files to reproduce the problem? Which version are you using? Can you try some older versions?

kiyolee avatar May 11 '25 09:05 kiyolee

2.14.2 I will try older version later

Sancaros avatar May 11 '25 11:05 Sancaros

[2025年05月11日 19:56:45:762] 崩溃(pso_crash_handle.c0108): 由于发生异常程序崩溃了 [2025年05月11日 19:56:45:764] 崩溃(pso_crash_handle.c0115): 异常码: 0xC000001D [2025年05月11日 19:56:45:774] 崩溃(pso_crash_handle.c0116): 异常内存地址: 0x00007FFA6E13C2F2 [2025年05月11日 19:56:46:091] 崩溃(pso_crash_handle.c0126): 异常发生位置: [2025年05月11日 19:56:46:091] 崩溃(pso_crash_handle.c0127): 文件: F:\PSO\PSOSERVER\通用库\libxml2-win-build-2.12.10\xpath.c [2025年05月11日 19:56:46:098] 崩溃(pso_crash_handle.c0128): 第 175 行 [2025年05月11日 19:56:46:107] 崩溃(pso_crash_handle.c0133): 调用堆栈: [2025年05月11日 19:56:46:151] 崩溃(pso_crash_handle.c0150): 函数[0]: crash_handler [2025年05月11日 19:56:46:156] 崩溃(pso_crash_handle.c0150): 函数[1]: psocn_read_ship_config$filt$0 [2025年05月11日 19:56:46:160] 崩溃(pso_crash_handle.c0150): 函数[2]: __C_specific_handler [2025年05月11日 19:56:46:167] 崩溃(pso_crash_handle.c0150): 函数[3]: _chkstk [2025年05月11日 19:56:46:174] 崩溃(pso_crash_handle.c0150): 函数[4]: RtlWalkFrameChain [2025年05月11日 19:56:46:179] 崩溃(pso_crash_handle.c0150): 函数[5]: KiUserExceptionDispatcher [2025年05月11日 19:56:46:200] 崩溃(pso_crash_handle.c0150): 函数[6]: xmlInitXPathInternal [2025年05月11日 19:56:46:200] 崩溃(pso_crash_handle.c0150): 函数[7]: xmlInitParser [2025年05月11日 19:56:46:208] 崩溃(pso_crash_handle.c0150): 函数[8]: psocn_read_ship_config [2025年05月11日 19:56:46:214] 崩溃(pso_crash_handle.c0150): 函数[9]: load_config [2025年05月11日 19:56:46:222] 崩溃(pso_crash_handle.c0150): 函数[10]: main [2025年05月11日 19:56:46:228] 崩溃(pso_crash_handle.c0150): 函数[11]: invoke_main [2025年05月11日 19:56:46:234] 崩溃(pso_crash_handle.c0150): 函数[12]: __scrt_common_main_seh [2025年05月11日 19:56:46:241] 崩溃(pso_crash_handle.c0150): 函数[13]: __scrt_common_main [2025年05月11日 19:56:46:251] 崩溃(pso_crash_handle.c0150): 函数[14]: mainCRTStartup [2025年05月11日 19:56:46:258] 崩溃(pso_crash_handle.c0150): 函数[15]: BaseThreadInitThunk [2025年05月11日 19:56:46:265] 崩溃(pso_crash_handle.c0150): 函数[16]: RtlUserThreadStart [2025年05月11日 19:56:46:282] 崩溃(psoconfig_ship.c1766): 出现错误, 程序将退出.

[2025年05月11日 20:03:52:376] 崩溃(pso_crash_handle.c0108): 由于发生异常程序崩溃了 [2025年05月11日 20:03:52:378] 崩溃(pso_crash_handle.c0115): 异常码: 0xC000001D [2025年05月11日 20:03:52:387] 崩溃(pso_crash_handle.c0116): 异常内存地址: 0x00007FFA6FA3EE62 [2025年05月11日 20:03:52:699] 崩溃(pso_crash_handle.c0126): 异常发生位置: [2025年05月11日 20:03:52:699] 崩溃(pso_crash_handle.c0127): 文件: F:\PSO\PSOSERVER\通用库\libxml2-win-build-2.14.0\xpath.c [2025年05月11日 20:03:52:707] 崩溃(pso_crash_handle.c0128): 第 222 行 [2025年05月11日 20:03:52:716] 崩溃(pso_crash_handle.c0133): 调用堆栈: [2025年05月11日 20:03:52:755] 崩溃(pso_crash_handle.c0150): 函数[0]: crash_handler [2025年05月11日 20:03:52:759] 崩溃(pso_crash_handle.c0150): 函数[1]: psocn_read_ship_config$filt$0 [2025年05月11日 20:03:52:762] 崩溃(pso_crash_handle.c0150): 函数[2]: __C_specific_handler [2025年05月11日 20:03:52:769] 崩溃(pso_crash_handle.c0150): 函数[3]: _chkstk [2025年05月11日 20:03:52:775] 崩溃(pso_crash_handle.c0150): 函数[4]: RtlWalkFrameChain [2025年05月11日 20:03:52:781] 崩溃(pso_crash_handle.c0150): 函数[5]: KiUserExceptionDispatcher [2025年05月11日 20:03:52:802] 崩溃(pso_crash_handle.c0150): 函数[6]: xmlInitXPathInternal [2025年05月11日 20:03:52:802] 崩溃(pso_crash_handle.c0150): 函数[7]: xmlInitParserInternal [2025年05月11日 20:03:52:811] 崩溃(pso_crash_handle.c0150): 函数[8]: xmlInitParserWinWrapper [2025年05月11日 20:03:52:820] 崩溃(pso_crash_handle.c0150): 函数[9]: RtlRunOnceExecuteOnce [2025年05月11日 20:03:52:828] 崩溃(pso_crash_handle.c0150): 函数[10]: InitOnceExecuteOnce [2025年05月11日 20:03:52:840] 崩溃(pso_crash_handle.c0150): 函数[11]: xmlInitParser [2025年05月11日 20:03:52:847] 崩溃(pso_crash_handle.c0150): 函数[12]: psocn_read_ship_config [2025年05月11日 20:03:52:855] 崩溃(pso_crash_handle.c0150): 函数[13]: load_config [2025年05月11日 20:03:52:863] 崩溃(pso_crash_handle.c0150): 函数[14]: main [2025年05月11日 20:03:52:871] 崩溃(pso_crash_handle.c0150): 函数[15]: invoke_main [2025年05月11日 20:03:52:879] 崩溃(pso_crash_handle.c0150): 函数[16]: __scrt_common_main_seh [2025年05月11日 20:03:52:887] 崩溃(pso_crash_handle.c0150): 函数[17]: __scrt_common_main [2025年05月11日 20:03:52:897] 崩溃(pso_crash_handle.c0150): 函数[18]: mainCRTStartup [2025年05月11日 20:03:52:906] 崩溃(pso_crash_handle.c0150): 函数[19]: BaseThreadInitThunk [2025年05月11日 20:03:52:915] 崩溃(pso_crash_handle.c0150): 函数[20]: RtlUserThreadStart [2025年05月11日 20:03:52:932] 崩溃(psoconfig_ship.c1766): 出现错误, 程序将退出.

Sancaros avatar May 11 '25 12:05 Sancaros

version 2.11.0 worked

Sancaros avatar May 11 '25 12:05 Sancaros

xmllint also calls xmlInitParser() and that does not cause problem. Are you sure you have no other libxml2.dll accessible via PATH environment variable? (Pretty common problem) If you are using dll, you can use macro LIBXML_TEST_VERSION to ensure the loaded libxml2.dll is truly the right version that you compiled against. Alternatively, you can link to libxml2-static.lib instead and that would avoid the dll problem.

kiyolee avatar May 12 '25 09:05 kiyolee

okay i will try on static lib for that

Sancaros avatar May 12 '25 13:05 Sancaros

While static lib may fix your problem, being aware of any existing libxml2.dll around would be helpful in general.

kiyolee avatar May 12 '25 21:05 kiyolee