View Issue Details

IDProjectCategoryView StatusLast Update
0002353Double CommanderFile operationspublic2020-01-07 01:51
Reportertex Assigned ToAlexx2000  
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
ProjectionnoneETAnone 
Platformx86_64OSLinuxOS VersionArch
Product Version0.9.6Product Build9018 
Target Version0.9.7Fixed in Version0.9.7 
Summary0002353: Unhandled exception: EAccessViolation: Access violation (when comparing same file in zip archive)
DescriptionI compared 3 files in 2 similar zip archives (difference was in 1 file) which were created by TV (backup of TV channel list). I opened one archive in panel in left side and second archive in right side panel. Then compare files one by one (files which have same filename between archives) by command cm_CompareContents (I created shortcut Ctrl+, for this action), and when I compare second or third times file "sat" double commander crashed with error "Access violation" and give 2 options: Ignore or close program and inform to report this as bug.

I include this 2 archives and doublecmd.err file.
Steps To Reproduce1. Open archive (but not extract!) Channel_list_T-MSLDEUC-1040.4.zip in one panel.
2. Open second archive Channel_list_T-MSLDEUC-1040.4_.zip (or extract somewhere if you want) in second panel.
3. Compare "sat" files from this archives by command cm_CompareContents few times until crash (for me second or third time was enough).
Additional InformationSo it's comparing two same files when at least one is compressed.
When both are decompressed everything is good.

I tried to create other archive with same file(s) to crash double commander, but had no luck - it didn't crash.
TagsNo tags attached.
Attached Files
Fixed in Revision9217, 9230
Operating systemLinux
WidgetsetGTK2
Architecture64-bit

Activities

tex

2019-09-07 19:47

reporter   ~0003260

Looks like it may have something to do with file dates in archives; they are all below 1980 which may be not legal in zip archive (don't know specification):
1979.12.31 23:00:00

Comparing binary file "sat" in that archive with the same file but unpacked (wich has different date than original) produce error (from doublecmd.err file):
DC v0.9.6 beta Rev. 9018 -- x86_64-Linux-gtk2
| Arch Linux \r (\l) -- GTK 2.24.32 | PID 3355
Unhandled exception: EAccessViolation: Access violation
  Stack trace:
  $0000000002FD47F0 in
  $0000000000A85140 line 335, column 3 of ushowform.pas in /usr/lib/doublecmd/doublecmd
  $00000000004E8076 line 398, column 3 of include/application.inc in /usr/lib/doublecmd/doublecmd
  $00000000004EA56A line 1283, column 10 of include/application.inc in /usr/lib/doublecmd/doublecmd
  $00000000004EAACD line 1419, column 9 of include/application.inc in /usr/lib/doublecmd/doublecmd
  $0000000000646208 line 54, column 6 of include/interfacebase.inc in /usr/lib/doublecmd/doublecmd
  $00000000004EAA74 line 1407, column 21 of include/application.inc in /usr/lib/doublecmd/doublecmd

Alexx2000

2019-09-07 20:49

administrator   ~0003261

Last edited: 2019-09-07 20:50

You can upload a .zip archive to https://uploadfiles.io or https://filebin.net and give a link.

tex

2019-09-09 01:33

reporter   ~0003262

Last edited: 2019-09-09 01:53

I managed to upload file here (there was a problem from my side), but you don't need it.

I do some tests and there is simple way to reproduce this error with any binary file compressed as zip, 7z or maybe any format that doublecmd can extract.

New steps to reproduce crash:
1. Open zip/7z/any archive with any binary file in one panel.
2. Extract that file to other panel.
3. Compare this files (file extracted with the same file in archive) with command cm_CompareContents.

Compared files have to be the same to recreate the crash.

Skif_off

2019-09-09 02:39

reporter   ~0003263

Last edited: 2019-09-09 02:41

Is https://doublecmd.sourceforge.io/forum/viewtopic.php?p=27934#p27934 the same problem?
Is building with Lazarus 1.8.x not supported?

tex

2019-09-09 16:44

reporter   ~0003264

It looks similar as in your link, but doublecmd was build with Lazarus 2.0.4.0

Issue History

Date Modified Username Field Change
2019-09-06 19:48 tex New Issue
2019-09-06 19:48 tex File Added: err.zip
2019-09-07 13:26 tex File Added: err_.zip
2019-09-07 13:30 tex Status new => closed
2019-09-07 19:47 tex Note Added: 0003260
2019-09-07 19:47 tex Status closed => assigned
2019-09-07 19:47 tex Resolution open => reopened
2019-09-07 20:49 Alexx2000 Note Added: 0003261
2019-09-07 20:49 Alexx2000 Status assigned => feedback
2019-09-07 20:49 Alexx2000 Note Edited: 0003261
2019-09-07 20:50 Alexx2000 Note Edited: 0003261
2019-09-09 00:56 tex File Added: Channel_list_T-MSLDEUC-1040.4_.zip
2019-09-09 01:33 tex Note Added: 0003262
2019-09-09 01:33 tex Status feedback => new
2019-09-09 01:38 tex Note Edited: 0003262
2019-09-09 01:53 tex Note Edited: 0003262
2019-09-09 02:39 Skif_off Note Added: 0003263
2019-09-09 02:41 Skif_off Note Edited: 0003263
2019-09-09 16:44 tex Note Added: 0003264
2019-09-09 23:37 Alexx2000 Status new => confirmed
2019-09-09 23:37 Alexx2000 Target Version => 0.9.7
2019-09-09 23:37 Alexx2000 File Deleted: err_.zip
2019-09-09 23:37 Alexx2000 File Deleted: err.zip
2020-01-02 23:06 Alexx2000 Fixed in Revision => 9217
2020-01-02 23:06 Alexx2000 Assigned To => Alexx2000
2020-01-02 23:06 Alexx2000 Status confirmed => resolved
2020-01-02 23:06 Alexx2000 Resolution reopened => fixed
2020-01-07 01:51 Alexx2000 Fixed in Revision 9217 => 9217, 9230
2020-01-07 01:51 Alexx2000 Fixed in Version => 0.9.7