https://bugs.winehq.org/show_bug.cgi?id=46643
Bug ID: 46643 Summary: BelarcAdvisor.exe crashes as first run on Wine and fresh install of Linux Mint 19v1 Tessa x86 AMD64 Product: Wine Version: 4.0 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: arclite7@gmail.com Distribution: ---
Created attachment 63563 --> https://bugs.winehq.org/attachment.cgi?id=63563 Backtrace.txt
No duplicate bug reports: Belarc Advisor crashes at 9% of checking security fixes settings of this computer (as first run application in Wine) See Backtrace.txt attached file below.
Linux Mint Cinnamon 19v1 Tessa x86 AMD64
https://bugs.winehq.org/show_bug.cgi?id=46643
Alexandra Crawford arclite7@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |arclite7@gmail.com
--- Comment #1 from Alexandra Crawford arclite7@gmail.com --- This is my first bug report using Bugzilla with intent! Please assist, if I have made functional errors in my report, so that I may improve, thank you.
https://bugs.winehq.org/show_bug.cgi?id=46643
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox.xerox2000x@gmail.com
--- Comment #2 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Alexandra Crawford from comment #1)
This is my first bug report using Bugzilla with intent! Please assist, if I have made functional errors in my report, so that I may improve, thank you.
Hi Alexandra,
Assist 1: Please add downloadlink if the program is free (which apparently it is)
Assist 2: Please add a bit more info on what the program is supposed to do. It took me a while to find out that it`s supposed to open a webbrowser with the results of a kind of benchmark, right?\
As far as i got it from google the benchmarks are in html file in ~/.wine/drive_c/Program Files (x86)/Belarc/BelarcAdvisor/System/tmp
the crash you got i can confirm, seems to come from missing spec entry and function advapi32.AuditQuerySystemPolicy, see debuglog below***
With a stub added for that, i can see that some html files are generated in System/tmp but they are not opened automatically which is i guess another bug. I get a call to unimplemented function wsnmp32.SnmpCreateSession, maybe that function is supposed to handle this automatic opening of html file? No clue.
Anyway, I`ll send a patch that prevents the crash, as said, the results of ``benchmark`` can than be viewed by opening html file manually in firefox in System/tmp...(hey it`s linux, don`t expect it all works automagically ;) )
0009:Call KERNEL32.GetProcAddress(7d2d0000,10230984 "CoTaskMemFree") ret=1013dbef 0009:Ret KERNEL32.GetProcAddress() retval=7d2dce90 ret=1013dbef 0009:Call ole32.CoTaskMemFree(001d2e60) ret=1002ecf5 0009:Ret ole32.CoTaskMemFree() retval=00000000 ret=1002ecf5 0009:Call KERNEL32.GetProcAddress(7e640000,1023039a "AuditQuerySystemPolicy") ret=1013dbef 0009:Ret KERNEL32.GetProcAddress() retval=00000000 ret=1013dbef 0009:Call KERNEL32.GetLastError() ret=1013dbfb 0009:Ret KERNEL32.GetLastError() retval=0000007f ret=1013dbfb 0009:Call KERNEL32.RaiseException(c06d007f,00000000,00000001,0032e0b8) ret=1013dc2e 0009:trace:seh:raise_exception code=c06d007f flags=0 addr=0x7b448af3 ip=7b448af3 tid=0009 . . . 0009:trace:seh:call_stack_handlers handler at 0x40f3cb returned 1 0009:trace:seh:call_stack_handlers calling handler at 0x404900 code=c06d007f flags=0 0009:Call KERNEL32.GetLastError() ret=0040404d 0009:Ret KERNEL32.GetLastError() retval=0000007f ret=0040404d 0009:Call KERNEL32.SetLastError(0000007f) ret=004040af 0009:Ret KERNEL32.SetLastError() retval=0000007f ret=004040af 0009:trace:seh:call_stack_handlers handler at 0x404900 returned 1 0009:trace:seh:call_stack_handlers calling handler at 0x7b49285e code=c06d007f flags=0 wine: Unhandled exception 0xc06d007f in thread 9 at address 0x7b448af3 (thread 0009), starting debugger...
https://bugs.winehq.org/show_bug.cgi?id=46643
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Ever confirmed|0 |1 Component|-unknown |advapi32 URL| |https://downloads.belarc.co | |m/advisor/advisorinstaller. | |exe Status|UNCONFIRMED |NEW
--- Comment #3 from Louis Lenders xerox.xerox2000x@gmail.com --- confirming + add some info
sha1sum ~/Desktop/troep/advisorinstaller.exe 9bda6c482f17685d3d4440a113dea81cf846c6c5 /home/louis/Desktop/troep/advisorinstaller.exe
https://bugs.winehq.org/show_bug.cgi?id=46643
--- Comment #4 from Alexandra Crawford arclite7@gmail.com --- Hello Louis Lenders, I thank you for your clarification. I hope I can provide some help in response to your questions and yes the Automagic was not expected, thank you, it is surprising it got so far considering the following functions, not benchmarking but a complete system audit, including windows internal system references to a complete, optionally downloaded to date, index of hierarchical (ntdw Canonical) patches and updates (what a surprise!).
So with the above download of the complete index to a Windows native internal index of applied patches and updates before checking the Windows registers of all equipment and software including license numbers, this audit is sufficient to recover all license keys and numbers effectively before re-installing "Windows" after the dreaded blue screen of permanent hive retirement.
I think Belarc(tm) represents the most thorough check of Windows own registers of hardware and software such that Wine will need to correspond with a complete emulation of a "present Windows, XP, 2000, NT, Vista, 7, 8, 10 view of itself, its underlying hardware system as well as all correctly registered and licensed applications" in order for Belarc to populate a complete set of indexed HTML pages into and about that system, its hardware, software and its resources, i.e. links to Microsoft, software houses and hardware manufacturers web pages.
I do suggest you try out the free version on a Windows system with at least some patches installed! I like Belarc since I am able to use this free resource to effectively document all my system details. If on the other hand I am responsible for company IT infrastructure, this was and perhaps still is when equipped with licensed networking tools, the fastest method of knowing what your desktops and laptops are comprised of and that your Windows are not damaged, broken or currently insecure? Better to know than to rely on the concept of what a machine is from past invoices? I worked within a large corporate where I observed machines being delivered without AV. A network worm became established shortly afterwards and my desperate emails to IT had been ignored? The worm apparently had the resources to discover all the unprotected machines connected to the internal corporate network. It took a Microsoft task force to clear the corporation with several million £UK in lost business revenues. The reliance on an unverified paper view, i.e. supplier invoice description, of what was going on lead to the departure of a key executive member. Worms aka rootkits are now well established security issues just as a lack of understanding of how they become established and what to do to prevent code from being introduced either at boot time or during system use. All stuff you already know.
Is there anything else you need from me?
Wishing you well and looking forward to being able to Belarc(tm) audit my (Linux) system, virtual Windows view only and or actual Linux system too? Personally I would look for an interim cooperative deal to realise your result! But to push the Belarc authors to recognise and produce a Linux audit too and how? Otherwise you would choose to capture this corner of the marketplace? I mean you have to pull a couple of levers, and NDA's. Its down to honest hard work after all? What is the equity at stake, would they bite to get it???
Till then!
https://bugs.winehq.org/show_bug.cgi?id=46643
--- Comment #5 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 63871 --> https://bugs.winehq.org/attachment.cgi?id=63871 patch with stub for AuditQuerySystemPolicy
Attached patch, will send to wine devel.
Note; The crash seems not to be present when you change version to xp
regards
https://bugs.winehq.org/show_bug.cgi?id=46643
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://downloads.belarc.co |https://web.archive.org/web |m/advisor/advisorinstaller. |/20190313232441/https://dow |exe |nloads.belarc.com/advisor/a | |dvisorinstaller.exe Summary|BelarcAdvisor.exe crashes |Belarc Advisor Computer |as first run on Wine and |Inventory 9.0 crashes on |fresh install of Linux Mint |unimplemented function |19v1 Tessa x86 AMD64 |advapi32.dll.AuditQuerySyst | |emPolicy with WinVer >= | |Windows Vista CC| |focht@gmx.net
--- Comment #6 from Anastasius Focht focht@gmx.net --- Hello folks,
refining some fields and adding a stable download for reproduce (snapshot via Internet archive).
$ sha1sum advisorinstaller.exe 67c31cf5fa0265db76aa7ea3f66d88cb179ad3e5 advisorinstaller.exe
$ du -sh advisorinstaller.exe 15M advisorinstaller.exe
$ wine --version wine-4.3-338-gf34f13825f
Regards
https://bugs.winehq.org/show_bug.cgi?id=46643
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED Fixed by SHA1| |642d6c695a8d0a22abbfe7910c7 | |96b4591ad38ca
--- Comment #7 from Anastasius Focht focht@gmx.net --- Hello folks,
this is fixed by commit https://source.winehq.org/git/wine.git/commitdiff/642d6c695a8d0a22abbfe7910c...
Thanks Louis
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files (x86)/Belarc/BelarcAdvisor
$ WINEDEBUG=+seh,+relay wine ./BelarcAdvisor.exe >>log.txt 2>&1 ... 002b:Call KERNEL32.GetProcAddress(7e650000,1023039a "AuditQuerySystemPolicy") ret=1013dbef 002b:Ret KERNEL32.GetProcAddress() retval=7e65b52c ret=1013dbef 002b:Call advapi32.AuditQuerySystemPolicy(0033e0fc,00000001,0033e0f8) ret=1002ed14 002b:fixme:advapi:AuditQuerySystemPolicy (0x33e0fc, 1, 0x33e0f8) 002b:Ret advapi32.AuditQuerySystemPolicy() retval=00000000 ret=1002ed14 ... --- snip ---
$ wine --version wine-4.4-90-g42683dd159
Regards
https://bugs.winehq.org/show_bug.cgi?id=46643
--- Comment #8 from Alexandra Crawford arclite7@gmail.com --- Thank you.
https://bugs.winehq.org/show_bug.cgi?id=46643
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.5.