On Wed, Jan 15, 2020 at 03:01:29PM +0100, Solene Rapenne wrote:

> > > When I save a picture in png file, from gdb I get the following
> > > backtrace. This seems to only happen with png, I tried a few others
> > > format (xmp, gif, ico, bmp) and they work fine.
> > > 
> > > Tried on amd64, current
> > > 
> > > Program received signal SIGSEGV, Segmentation fault.
> > > Save_PNG_Sub (context=0x7f7ffffd53a8, file=<optimized out>, buffer=0x0, 
> > > buffer_size=0x0) at fileformats.c:6965
> > > 6965    fileformats.c: No such file or directory.
> > > (gdb) bt
> > > #0  Save_PNG_Sub (context=0x7f7ffffd53a8, file=<optimized out>, 
> > > buffer=0x0, buffer_size=0x0) at fileformats.c:6965
> > > #1  0x00000e642c27bd42 in Save_PNG (context=0x7f7ffffd53a8) at 
> > > fileformats.c:6981
> > > #2  0x00000e642c219716 in Save_image (context=0x7f7ffffd53a8) at 
> > > loadsave.c:1121
> > > #3  0x00000e642c1f5739 in Save_picture (type=CONTEXT_MAIN_IMAGE) at 
> > > buttons.c:3562
> > > #4  0x00000e642c220dfa in Main_handler () at engine.c:1584
> > > #5  0x00000e642c1d1300 in main (argc=<optimized out>, argv=<optimized 
> > > out>) at main.c:1378
> > 
> > This issue has been addressed upstream, and a patch is available. Tested
> > on amd64.
> > 
> > Lets see what fcambus@ thinks of the diff below.
> 
> it fixes the issue for me :)

Works for me as well, thanks!

OK fcambus@

Reply via email to