Crash while copying and pasting a range of cells, possibly involving conditional formating and formula
Hi
i encountered a crash while trying to duplicate a sheet from a large document. I managed to reproduce it to a minimal one - enclosed.
The steps to reproduce are simple :
- select the column A
- copy it : Ctrl-C
- open a new file : Ctrl-N
- paste it to the new file : Ctrl-V The behaviour is the same if the paste is in another sheet of the original file.
Some investigations i made :
- there are some conditional formatting in column A. They are dependent on a formula
<gnm:Expression0>date(year(now()),month(now()),1)</gnm:Expression0>
if i remove the conditional formatting gnumeric no longer crash with the above steps
-
There are several StyleRegion in the gnumeric file and only one conditional format display in gnumeric file. Selecting only one cell dont cause a crash. I don't know if it's relevant to the issue.
-
when run under gdb, i get the following results after the crash
0x00007f002e5e2083 in gnm_style_conditions_set_pos (sc=<optimized out>, pos=0xcc61fa0) at style-conditions.c:1140
1140 for (ui = 0; ui < (ga ? ga->len : 0u); ui++) {
I am using a gnumeric version compiled from current sources but i reproduced it with an official one provided by my distrib :
$ cat /etc/release
Mageia release 9 (Cauldron) for x86_64
$ rpm -q -f /usr/bin/gnumeric
gnumeric-1.12.50-1.mga9
thanks