Closed grosgood closed 2 months ago
Thanks. I've been able to reproduce the bug. Investigating....
Crash case reduced to:
bug :
str={`vector64(_'A')`} # Work with 63 instead of 64
eval "set('out','"$str"')"
Confirm reduced test case crashes here as well.
OK: Looks good...
CImg: 07edcbac6656
Sat Jun 15 17:49:16 2024 +0200
gmic: e27fbba81d21
Sat Jun 15 17:46:33 2024 +0200
debug build of gmic, as before.
$ cat ralloc.gmic
ralloc : -skip ${1=1024},${2=1},${3=2048}
tc,min,max=${1-3}
-repeat $tc
sz:=v($min,$max,1,1)
str={`vector$sz(_'A')`} # Try lots of allocations
-eval "set('out','"$str"')"
-echo $sz" worked..."
-done
$ gmic -m ralloc.gmic ralloc 2048,1,2048
[gmic]./ Start G'MIC interpreter (v.3.4.0).
[gmic]./ Import commands from file 'ralloc.gmic', with debug info (1 new, total: 4788).
949 worked...
451 worked...
1212 worked...
… (2,041 times)
71 worked...
411 worked...
347 worked...
130 worked...
[gmic]./ End G'MIC interpreter.
$ cd cheats
$ gmic -run 'f=affine_cheat it $f.gmd gmd2html. 2 ot $f.html'
[gmic]./ Start G'MIC interpreter (v.3.4.0).
[gmic]./run/__run/ Set local variable 'f=affine_cheat'.
[gmic]./run/__run/ Input text-data file 'affine_cheat.gmd'.
[gmic]./run/__run/ Output image [0] as text-data file 'affine_cheat.html'.
[gmic]./ End G'MIC interpreter.
$
Think you can put paid to this.
@dtschump overflow.zip To reproduce:
someplace convenient
.some place convenient/cheats
../cheats $ gmic -run 'f=affine_cheat it $f.gmd gmd2html. 2 ot. $f.html'
See Gory Details below.Environment Build (in
gmic/src
):$ make -j debug
CImg:2f627c85fa20
Fri Jun 14 17:36:40 2024 +0200 gmic:68dd0725eee6
Sat Jun 15 12:37:38 2024 +0200$ uname -a Linux bertha 6.6.30-gentoo-bertha #1 SMP PREEMPT_DYNAMIC Sun May 26 08:04:58 EDT 2024 x86_64 AMD Ryzen 9 7950X3D 16-Core Processor AuthenticAMD GNU/Linux
Gory Details