https://bugs.winehq.org/show_bug.cgi?id=52577
Bug ID: 52577 Summary: ScioSense UFC Assembler: Crashes when trying to assemble Product: Wine Version: 7.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: nathanmerkley@gmail.com Distribution: ---
Created attachment 71903 --> https://bugs.winehq.org/attachment.cgi?id=71903 Console log including backtrace
The proprietary assembler for ScioSense Ultrasonic chips crashes when I give it any file to assemble, but exits successfully when launched with no arguments or with --help.
Fedora 35 x86_64
Downloadable here: https://downloads.sciosense.com/Files/Productinfo/AS6031/UfcEvaluationSoftwa... The program is called UFC_Assembler.exe Version 1.6.1 SHA1: 1cda71d76b5cad12464eda6243115131f971c518
That zip also contains an example program to assemble which is what I am using in the attached log. The program works as expected in a Windows VM
https://bugs.winehq.org/show_bug.cgi?id=52577
nathanmerkley@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=52577
nathanmerkley@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Fedora
https://bugs.winehq.org/show_bug.cgi?id=52577
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@orange.fr
--- Comment #1 from Eric Pouech eric.pouech@orange.fr --- thanks for reporting
a quick look may indicate that the program can't handle filename with forward slashes
from your example, WINEPREFIX=~/.wine32 WINEARCH=win32 wine ../UFC_Assembler.exe AS6031_AS6040_A1.C1.00.01.asm
it would be possible that this works instead WINEPREFIX=~/.wine32 WINEARCH=win32 wine ..\UFC_Assembler.exe AS6031_AS6040_A1.C1.00.01.asm
(at least it works here using different path settings)
https://bugs.winehq.org/show_bug.cgi?id=52577
--- Comment #2 from nathanmerkley@gmail.com --- That doesn't seem to change anything for me, I have also moved the assembler directly into the examples folder and ran it from there so no slashes were involved at all and that also doesn't work.
When you say you have different path settings, what does that mean?
https://bugs.winehq.org/show_bug.cgi?id=52577
--- Comment #3 from Eric Pouech eric.pouech@orange.fr --- Hi,
I meant running from slightly different directories than what you did
-------------- [eric]$ ../../wine UfcEvaluationSoftware_v1.1.0/UFC_Assembler.exe Examples/AS6031_AS6040_A1.C1.00.01.asm --- UFC Assembler, ScioSense B.V. --- wine: Unhandled page fault on write access to 00000000 at address 0040E9CF (thread 0024), starting debugger... -------------- (this fails as you described)
-------------- [eric]$ ../../wine UfcEvaluationSoftware_v1.1.0/UFC_Assembler.exe Examples\AS6031_AS6040_A1.C1.00.01.asm --- UFC Assembler, ScioSense B.V. --- INFO: Examples\AS6031_AS6040_A1.C1.00.01.asm: Processing was successful
[eric]$ LC_ALL=C ll Examples/ total 316 -rw-rw-rw-. 1 eric eric 12005 Nov 12 15:04 AS6031_AS6040_A1.C1.00.01.asm -rw-r--r--. 1 eric eric 4272 Mar 2 17:20 AS6031_AS6040_A1.C1.00.01.dbg -rw-r--r--. 1 eric eric 4862 Mar 2 17:20 AS6031_AS6040_A1.C1.00.01.hex -rw-r--r--. 1 eric eric 379 Mar 2 17:20 AS6031_AS6040_A1.C1.00.01.obj --------------
(this works as expected)
but running from inside the Examples directory seems to fail also
-------------- [eric]$ ../../../wine ../UfcEvaluationSoftware_v1.1.0/UFC_Assembler.exe AS6031_AS6040_A1.C1.00.01.asm --- UFC Assembler, ScioSense B.V. --- wine: Unhandled page fault on write access to 00000000 at address 0040E9CF (thread 0024), starting debugger... -------------- (again !!)
-------------- [eric]$ ../../../wine ../UfcEvaluationSoftware_v1.1.0/UFC_Assembler.exe .\AS6031_AS6040_A1.C1.00.01.asm --- UFC Assembler, ScioSense B.V. --- INFO: .\AS6031_AS6040_A1.C1.00.01.asm: Processing was successful --------------
so that's a bug in the program (confirmed by the relay trace) that it crashes if the filename doesn't contain a directory (and with a backslash)
from relay trace (Ascii 0x5C = '\'): [snip] 0024:Call msvcrt.strrchr(004176c0 "AS6031_AS6040_A1.C1.00.01.asm",0000005c) ret=0040e9cf 0024:Ret msvcrt.strrchr() retval=00000000 ret=0040e9cf [snip] wine: Unhandled page fault on write access to 00000000 at address 0040E9CF (thread 0024), starting debugger...
HTH so I'll likely close this bug with NOTOURBUG mention
https://bugs.winehq.org/show_bug.cgi?id=52577
--- Comment #4 from nathanmerkley@gmail.com --- Gotcha, that does seem to work. Thanks for the help, seems fine to close this now
https://bugs.winehq.org/show_bug.cgi?id=52577
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |NOTOURBUG
--- Comment #5 from Eric Pouech eric.pouech@orange.fr --- closing with not our bug