AV inside wimlib_add_tree

Comments, questions, bug reports, etc.
Post Reply
Dec
Posts: 3
Joined: Fri Oct 14, 2016 6:57 am

AV inside wimlib_add_tree

Post by Dec »

I have some code that works fine with dll version 1.13.5. I'm trying to upgrade to version 1.14.1 and now I can see the AV inside wimlib_add_tree. Nothing has changed in my code. I just replaced the dll with the newest version. My code is logging all calls and callbacks, and the logs show the following sequence of calls:

WimLibCreateNewWim
WimLibAddEmptyImage
WimLibGetWimInfo
WimLibRegisterProgressFunction
WimLibAddTree
Callback.OnProgressCallback
Access violation at address 66A08E21 in module 'libwim-15.32.dll'. Read address FFFFFFFF

What can I check to try to get rid of the problem? Detailed logs in attachment.
Attachments
Logs.zip
(1.86 KiB) Downloaded 3029 times
synchronicity
Site Admin
Posts: 474
Joined: Sun Aug 02, 2015 10:31 pm

Re: AV inside wimlib_add_tree

Post by synchronicity »

Hi, thanks for reporting this.

I expect that https://wimlib.net/git/?p=wimlib;a=comm ... 99cce11f77 fixes the problem.

Can you check if the attached binary works?

Please note: if my theory is correct, then this problem only occurred in the 32-bit builds. Regardless of whether my fix worked or not, please consider using the 64-bit build instead. It is 2023, after all!
Attachments
windows-MINGW32-bin.zip
(410.74 KiB) Downloaded 3023 times
Dec
Posts: 3
Joined: Fri Oct 14, 2016 6:57 am

Re: AV inside wimlib_add_tree

Post by Dec »

synchronicity wrote: Mon Jun 26, 2023 1:31 amCan you check if the attached binary works?
Yes, this solves the problem. Are you planning to create an official update or should I use this version?
synchronicity wrote: Mon Jun 26, 2023 1:31 amif my theory is correct, then this problem only occurred in the 32-bit builds.
You are right, x64 works fine.
synchronicity wrote: Mon Jun 26, 2023 1:31 amplease consider using the 64-bit build instead.
I use both variant.
synchronicity
Site Admin
Posts: 474
Joined: Sun Aug 02, 2015 10:31 pm

Re: AV inside wimlib_add_tree

Post by synchronicity »

It probably will be a month or two before I release v1.14.2. I might post a BETA sooner. You can also just use the binary I attached above (which was built from git commit 4cdfe1f65507, using the GitHub Actions workflow), or do a build yourself using the instructions in README.WINDOWS.
synchronicity
Site Admin
Posts: 474
Joined: Sun Aug 02, 2015 10:31 pm

Re: AV inside wimlib_add_tree

Post by synchronicity »

I've uploaded wimlib v1.14.2-BETA1 which includes the fix for this.
synchronicity
Site Admin
Posts: 474
Joined: Sun Aug 02, 2015 10:31 pm

Re: AV inside wimlib_add_tree

Post by synchronicity »

This fix was released in wimlib v1.14.2.
Post Reply