DenVdmj / xdelta

Automatically exported from code.google.com/p/xdelta (actual: https://github.com/jmacd/xdelta-devel/)
0 stars 0 forks source link

xdelta 3.0.6 (32bit Win compile) memory allocation problem #157

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
OS: Windows XP x64 SP2
RAM: 16 GB
I have a pair of files with size of 1 877 041 133 bytes. I tried to run xdelta 
on them with the following command line:
-0 -A= -B 2147483648 -W 16777216 -I 0 -P 16777216
xdelta refused to run so I started to lowering the value of -B with step of 128 
MiB. Its appeared that xdelta 3.0.6 (32bit) is able to run at -B 1073741824 
maximum value. Its quite strange because 3.0z (32bit) version successfully runs 
at -B 1610612736.
Furthermore if I set -9 option, then 3.0.6 runs at -B 536870912 maximum value, 
while 3.0z with -9 runs at -B 671088640.
I suspect that its a hardcoded limitation, cause even 1 byte increasing of -B 
value is not accepted. I mean that I can run xdelta -B 1073741824 but not -B 
1073741825.
Also previously (in 3.0z at least) there were messages when its not possible to 
allocate required memory. Something like
xdelta3: malloc: The access code is invalid.
xdelta3: out of memory: The access code is invalid.
3.0.6 version just silently quits without any debug messages, even with -v 
switch.

Original issue reported on code.google.com by skymmer...@gmail.com on 21 Apr 2013 at 9:25

GoogleCodeExporter commented 9 years ago
Interesting.

There have been some changes in this area, yes. I'll investigate.

Original comment by josh.mac...@gmail.com on 15 May 2013 at 6:26