https://bugs.winehq.org/show_bug.cgi?id=39107
Bug ID: 39107 Summary: 7z.exe crashes while trying to list file contents Product: Wine Version: 1.7.49 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: ismail@i10z.com Distribution: ---
Created attachment 52106 --> https://bugs.winehq.org/attachment.cgi?id=52106 wine crash log
How to reproduce;
1. Install 7-zip 15.06 beta from http://7-zip.org/a/7z1506-x64.exe 2. Try wine 7z.exe somefile.zip
Expected Result:
7zip lists file contents
What happens instead wine throws an unhandled exception and crash.
https://bugs.winehq.org/show_bug.cgi?id=39107
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source URL| |http://7-zip.org/a/7z1506-x | |64.exe
--- Comment #1 from Austin English austinenglish@gmail.com --- Can you try with the 32-bit version of 7-zip to see if this is 64-bit specific?
https://bugs.winehq.org/show_bug.cgi?id=39107
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |win64 Status|UNCONFIRMED |RESOLVED CC| |focht@gmx.net Component|-unknown |msvcrt Resolution|--- |DUPLICATE Summary|7z.exe crashes while trying |64-bit 7-Zip 15.x crashes |to list file contents |when encountering invalid | |command line (needs | |__CxxFrameHandler | |implementation)
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello folks,
dupe of bug 35092
--- snip --- $ WINEDEBUG=+tid,+seh,+relay wine ./7z.exe foo.zip >>log.txt 2>&1
0029:Call msvcrt.fputs(00452870 "\n7-Zip [64] 15.06 beta : Copyright (c) 1999-2015 Igor Pavlov : 2015-08-09\n\n",7f97cb9dac90) ret=004459e9 ... 0029:Call KERNEL32.MultiByteToWideChar(00000000,00000000,00233450 "Unsupported command:",00000014,002334b0,00000014) ret=00403bea 0029:Ret KERNEL32.MultiByteToWideChar() retval=00000014 ret=00403bea ... 0029:Call msvcrt._CxxThrowException(0022f3b0,00465b78) ret=0041176b 0029:Call KERNEL32.RaiseException(e06d7363,00000001,00000003,0022f2b0) ret=7f97cb72d6ee 0029:trace:seh:raise_exception code=e06d7363 flags=1 addr=0x7b88c67c ip=7b88c67c tid=0029 0029:trace:seh:raise_exception info[0]=0000000019930520 0029:trace:seh:raise_exception info[1]=000000000022f3b0 0029:trace:seh:raise_exception info[2]=0000000000465b78 0029:trace:seh:raise_exception rax=000000007b870678 rbx=00000000004679f8 rcx=000000000022f0b0 rdx=0000000000000018 0029:trace:seh:raise_exception rsi=000000000022f2b0 rdi=000000000022f0d0 rbp=000000000022f200 rsp=000000000022f090 0029:trace:seh:raise_exception r8=0000000000000003 r9=000000000022f2b0 r10=0000000000000000 r11=0000003cb618dad0 0029:trace:seh:raise_exception r12=0000000000000000 r13=0000000000000000 r14=0000000000000000 r15=0000000000000001 ... 0029:fixme:seh:__CxxFrameHandler 0x22f0b0 22fc00 0x22e330 0x22e800: not implemented ... 0029:trace:seh:call_handler calling handler 0x44ae80 (rec=0x22f0b0, frame=0x22fc90 context=0x22e330, dispatch=0x22e800) 0029:Call ntdll.__C_specific_handler(0022f0b0,0022fc90,0022e330,0022e800) ret=7f97d3cb7170 0029:trace:seh:__C_specific_handler 0x22f0b0 22fc90 0x22e330 0x22e800 0029:trace:seh:dump_scope_table scope table at 0x4659a4 0029:trace:seh:dump_scope_table 0: 44af2d-44b01b handler 44b050 target 44b01b 0029:trace:seh:__C_specific_handler calling filter 0x44b050 ptrs 0x22dbe0 frame 22fc90 0029:Call msvcrt._XcptFilter(e06d7363,0022dbe0) ret=0044b066 0029:trace:seh:_XcptFilter (e06d7363,0x22dbe0) 0029:Ret msvcrt._XcptFilter() retval=00000000 ret=0044b066 0029:Ret ntdll.__C_specific_handler() retval=00000001 ret=7f97d3cb7170 ... 0029:trace:seh:call_teb_handler calling TEB handler 0x7f97d3ce5793 (rec=0x22f0b0, frame=0x22fe80 context=0x22e330, dispatcher=0x22ddb8) 0029:Call KERNEL32.UnhandledExceptionFilter(0022dd40) ret=7f97d3ce57e9 wine: Unhandled exception 0xe06d7363 in thread 29 at address 0x7b88c67c (thread 0029), starting debugger... --- snip ---
--- quote --- ...
2. Try wine 7z.exe somefile.zip
Expected Result:
7zip lists file contents --- quote ---
Not sure where you got the idea that running 'wine 7z.exe foo.zip' would produce useful output. It causes an error being thrown - by design.
You might want to check the command line reference by running 'wine 7z.exe'.
It clearly states:
--- snip --- ... 7-Zip [64] 15.06 beta : Copyright (c) 1999-2015 Igor Pavlov : 2015-08-09
Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...] [<@listfiles...>]
<Commands> a : Add files to archive b : Benchmark d : Delete files from archive e : Extract files from archive (without using directory names) h : Calculate hash values for files i : Show information about supported formats l : List contents of archive ... --- snip ---
--- snip --- $ wine64 ./7z.exe l foo.zip
7-Zip [64] 15.06 beta : Copyright (c) 1999-2015 Igor Pavlov : 2015-08-09
Scanning the drive for archives: 1 file, 29206 bytes (29 KiB)
Listing archive: foo.zip ...
--- snip ---
which works as expected.
$ sha1sum 7z1506-x64.exe 2e0b9f757de5d2f63b432a76a98755f7e871f2dc 7z1506-x64.exe
$ du -sh 7z1506-x64.exe 1.3M 7z1506-x64.exe
$ wine --version wine-1.7.49-143-gcfbc37c
Regards
*** This bug has been marked as a duplicate of bug 35092 ***
https://bugs.winehq.org/show_bug.cgi?id=39107
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Austin English austinenglish@gmail.com --- Closing.
https://bugs.winehq.org/show_bug.cgi?id=39107
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://7-zip.org/a/7z1506-x |https://web.archive.org/web |64.exe |/20150905094706/http://d.7- | |zip.org/a/7z1506-x64.exe