[GH-ISSUE #313] Firejail and libpng / setjmp(png_jmpbuf) (cannot save PNG) #221

Closed
opened 2026-05-05 05:20:54 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @Sidnioulz on GitHub (Feb 21, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/313

I cannot save PNG files from within a Firejail sandbox. Tested with xfce4-screenshooter, and with GIMP. The issue appears to be that the setjmp(png_jmpbuf) system call fails, inside gdk-pixbuf's implementation of PNG file saving (see io-png.c::real_save_png for the implementation).

Originally created by @Sidnioulz on GitHub (Feb 21, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/313 I cannot save PNG files from within a Firejail sandbox. Tested with xfce4-screenshooter, and with GIMP. The issue appears to be that the setjmp(png_jmpbuf) system call fails, inside gdk-pixbuf's implementation of PNG file saving (see io-png.c::real_save_png for the implementation).
gitea-mirror 2026-05-05 05:20:54 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@netblue30 commented on GitHub (Feb 21, 2016):

How do you run it? Are you starting GIMP/xfce4-screenshooter from Firefox?

<!-- gh-comment-id:186821346 --> @netblue30 commented on GitHub (Feb 21, 2016): How do you run it? Are you starting GIMP/xfce4-screenshooter from Firefox?
Author
Owner

@Sidnioulz commented on GitHub (Feb 21, 2016):

I usually just firejail into a Bash session and work from there. The problem occurs with or without the generic profile, and regardless of whether I spawn a bash and work from the Bash or call the apps directly (e.g. firejail gimp).

<!-- gh-comment-id:186862194 --> @Sidnioulz commented on GitHub (Feb 21, 2016): I usually just firejail into a Bash session and work from there. The problem occurs with or without the generic profile, and regardless of whether I spawn a bash and work from the Bash or call the apps directly (e.g. firejail gimp).
Author
Owner

@netblue30 commented on GitHub (Feb 22, 2016):

What distro are you running? I doesn't happen on on Debian 8. Also, what project is io-png.c::real_save_png coming from, I'd like to take a look. Thanks!

<!-- gh-comment-id:187153067 --> @netblue30 commented on GitHub (Feb 22, 2016): What distro are you running? I doesn't happen on on Debian 8. Also, what project is io-png.c::real_save_png coming from, I'd like to take a look. Thanks!
Author
Owner

@Sidnioulz commented on GitHub (Feb 22, 2016):

I'm running ArchLinux,4.3.3-2-ARCH #1 SMP PREEMPT Wed Dec 23 20:09:18 CET 2015 x86_64 GNU/Linux.

https://git.gnome.org/browse/gdk-pixbuf/tree/gdk-pixbuf/io-png.c would contain said code. If you can't reproduce I can try and identify the faulty code lines in GIMP's xcf/jpg saving routines too, albeit not immediately.

<!-- gh-comment-id:187405064 --> @Sidnioulz commented on GitHub (Feb 22, 2016): I'm running ArchLinux,4.3.3-2-ARCH #1 SMP PREEMPT Wed Dec 23 20:09:18 CET 2015 x86_64 GNU/Linux. https://git.gnome.org/browse/gdk-pixbuf/tree/gdk-pixbuf/io-png.c would contain said code. If you can't reproduce I can try and identify the faulty code lines in GIMP's xcf/jpg saving routines too, albeit not immediately.
Author
Owner

@netblue30 commented on GitHub (Feb 24, 2016):

I'll look into it, thanks!

<!-- gh-comment-id:188246161 --> @netblue30 commented on GitHub (Feb 24, 2016): I'll look into it, thanks!
Author
Owner

@Fred-Barclay commented on GitHub (Oct 7, 2017):

I can create/save .png images with Gimp or mate-screenshot, using the gimp and default profiles, on 64-bit Arch running the 4.13 kernel. Let's close for now. 😄

<!-- gh-comment-id:334953277 --> @Fred-Barclay commented on GitHub (Oct 7, 2017): I can create/save .png images with Gimp or mate-screenshot, using the gimp and default profiles, on 64-bit Arch running the 4.13 kernel. Let's close for now. 😄
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#221
No description provided.