[Bug 648885] New: exiftran crashes while rotating JPEG image
https://bugzilla.novell.com/show_bug.cgi?id=648885 https://bugzilla.novell.com/show_bug.cgi?id=648885#c0 Summary: exiftran crashes while rotating JPEG image Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: axel@hiq2.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.14) Gecko/20101013 SUSE/2.0.9-2.1 SeaMonkey/2.0.9 I tried to roate a JEPG image with exiftran -9 -i -p image.jpeg which causes a segmentation fault. Reproducible: Always Steps to Reproduce: 1. Try to rotate an image with exiftran -9 -i -p file.jepg I think any JPEG image would do, if not, I can provide a sample image which caused the crash. Actual Results: Segmantation fault. For analysis I compiled exiftran from source, which yields the same result as using the installed version. Some GDB output: Core was generated by `/home/schwank/Dokumente/Ablage/Pakete/fbida-2.07/exiftran -9 -i -p IMGA0003.jpeg'. Program terminated with signal 11, Segmentation fault. #0 0x0000000000405ba4 in transpose_critical_parameters (dstinfo=0x7fffdb834a00) at jpeg/transupp.c:656 656 itemp = compptr->h_samp_factor; (gdb) p compptr $1 = (jpeg_component_info *) 0x300000008 (gdb) p compptr->h_samp_factor Cannot access memory at address 0x300000010 (gdb) p *compptr Cannot access memory at address 0x300000008 (gdb) p dstinfo->comp_info $2 = (jpeg_component_info *) 0x300000008 (gdb) bt #0 0x0000000000405ba4 in transpose_critical_parameters (dstinfo=0x7fffdb834a00) at jpeg/transupp.c:656 #1 0x0000000000405f13 in jtransform_adjust_parameters (srcinfo=0x7fffdb834770, dstinfo=0x7fffdb834a00, src_coef_arrays=0x61da08, info=0x7fffdb834700) at jpeg/transupp.c:785 #2 0x000000000040397f in do_transform (src=0x7fffdb834770, dst=0x7fffdb834a00, transform=JXFORM_ROT_90, comment=0x0, thumbnail=0x0, tsize=0, flags=1) at jpegtools.c:442 #3 0x000000000040341e in do_thumbnail (ed=0x617720, transform=JXFORM_ROT_90) at jpegtools.c:297 #4 0x000000000040367e in do_exif (src=0x7fffdb835370, transform=0x7fffdb834e5c, thumbnail=0x0, tsize=0, flags=547) at jpegtools.c:362 #5 0x00000000004038c0 in do_transform (src=0x7fffdb835370, dst=0x7fffdb835120, transform=JXFORM_ROT_90, comment=0x0, thumbnail=0x0, tsize=0, flags=547) at jpegtools.c:423 #6 0x0000000000403b1a in jpeg_transform_fp (in=0x60d010, out=0x60d270, transform=JXFORM_ROT_90, comment=0x0, thumbnail=0x0, tsize=0, flags=547) at jpegtools.c:491 #7 0x0000000000403f85 in jpeg_transform_inplace (file=0x7fffdb836284 "IMGA0003.jpeg", transform=JXFORM_ROT_90, comment=0x0, thumbnail=0x0, tsize=0, flags=547) at jpegtools.c:588 #8 0x0000000000402640 in main (argc=5, argv=0x7fffdb8358a8) at exiftran.c:263 Expected Results: The image sould have been rotated. It could be a compatibility issue of libjpeg. openSuSE 11.3 only comes with libjpeg-devel from libjpeg8, so exiftran is probably built with that version. But fbida has an own copy of jpeglib.h from version 6.2 which might cause trouble. Just a guess. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=648885 https://bugzilla.novell.com/show_bug.cgi?id=648885#c1 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |meissner@novell.com InfoProvider| |axel@hiq2.com --- Comment #1 from Marcus Meissner <meissner@novell.com> 2010-10-26 07:27:18 UTC --- where did you get "exiftran" from, it is not in the distribution. (jpegtran is, but you probably dont mean it) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=648885 https://bugzilla.novell.com/show_bug.cgi?id=648885#c2 Axel Schwank <axel@hiq2.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|axel@hiq2.com | --- Comment #2 from Axel Schwank <axel@hiq2.com> 2010-10-26 20:01:52 UTC --- Oh yes, shame on me. It is not part of the distribution, but installed from the "Main Reposiory (Contrib)" of OBS. Should the problem better be reported to the author of exiftran? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=648885 https://bugzilla.novell.com/show_bug.cgi?id=648885#c3 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |opensuse-contrib@opensuse.o |ovo.novell.com |rg Summary|exiftran crashes while |[Contrib] fbi/exiftran |rotating JPEG image |crashes while rotating JPEG | |image --- Comment #3 from Marcus Meissner <meissner@novell.com> 2010-10-27 07:49:18 UTC --- you can report upstream, I will also assign this bug to the COntrib bugowners. from source package "fbi" (there is no direct maintainer of the "fbi" package assigned?!?) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=648885 https://bugzilla.novell.com/show_bug.cgi?id=648885#c4 Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED CC| |puzel@novell.com AssignedTo|opensuse-contrib@opensuse.o |bnc-team-screening@forge.pr |rg |ovo.novell.com Status Whiteboard| |contrib fbi --- Comment #4 from Petr Uzel <puzel@novell.com> 2010-10-27 08:34:34 UTC --- (In reply to comment #3)
you can report upstream, I will also assign this bug to the COntrib bugowners.
from source package "fbi"
(there is no direct maintainer of the "fbi" package assigned?!?)
There is: $ osc maintainer openSUSE:Factory:Contrib fbi bugowner of openSUSE:Factory:Contrib/fbi : puzel maintainer of openSUSE:Factory:Contrib/fbi : puzel So I will take it. But still, please report it upstream, Alex. Thank you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=648885 https://bugzilla.novell.com/show_bug.cgi?id=648885#c Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |puzel@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=648885 https://bugzilla.novell.com/show_bug.cgi?id=648885#c5 --- Comment #5 from Petr Uzel <puzel@novell.com> 2010-11-11 10:28:27 UTC --- *** Bug 648887 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=648887 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=648885 https://bugzilla.novell.com/show_bug.cgi?id=648885#c6 Petr Gajdos <pgajdos@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |axel@hiq2.com --- Comment #6 from Petr Gajdos <pgajdos@novell.com> 2010-11-23 14:04:08 UTC --- (In reply to comment #0)
I tried to roate a JEPG image with exiftran -9 -i -p image.jpeg which causes a segmentation fault.
New package is in openSUSE:Factory:Contrib, please test.
Just a guess.
Good guess. I have used needed *.h and transupp.c from current jpeg. Question is, if it is really to be upstreamable. And we will probably change to libjpeg-turbo, which can introduce similar problem in the near future. I suggest close this bug as soon as you confirm, that package works for you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=648885 https://bugzilla.novell.com/show_bug.cgi?id=648885#c7 Petr Uzel <puzel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |CLOSED InfoProvider|axel@hiq2.com | Resolution| |FIXED --- Comment #7 from Petr Uzel <puzel@novell.com> 2010-11-25 09:03:50 UTC --- (In reply to comment #6)
New package is in openSUSE:Factory:Contrib, please test.
Thanks, Petr!
I suggest close this bug as soon as you confirm, that package works for you.
Closing now. @Axel: Please reopen if it doesn't work. Thanks BTW fixed package for built for 11.3 is here: http://download.opensuse.org/repositories/openSUSE:/Factory:/Contrib/openSUS... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=648885 https://bugzilla.novell.com/show_bug.cgi?id=648885#c8 --- Comment #8 from Axel Schwank <axel@hiq2.com> 2010-11-28 21:29:52 UTC --- Works for me, too, thank you all. Regarding upstreamability: I wonder how you fixed it, just took the files that are in fbi/jpeg from current libjpeg? On the one hand, if I understand it right, LSB 4.0 requires that libjpeg has to be version 6.2, so if a distro wants to be LSB compliant, it has to use this version, hasn't it? On the other hand, as stated above, fbi copies files from libjpeg 6.2 which include jpeglib.h locally but also include it from system directories. So code which uses a function inlcudes the definition of a data structure of that function from another location than the definition of that function. This is bad design and should never be done. I don't understand why transupp.c is copied anyway. I'll try to discuss that with the author of fbi. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=648885 https://bugzilla.novell.com/show_bug.cgi?id=648885#c9 Christopher Hofmann <cwh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED CC| |cwh@novell.com Resolution|FIXED | --- Comment #9 from Christopher Hofmann <cwh@novell.com> 2011-02-16 15:17:00 UTC --- For me this seems to be not really fixed. Program received signal SIGSEGV, Segmentation fault. transpose_critical_parameters (dstinfo=0x7fffffffcfc0) at jpeg/transupp.c:656 exiftran-2.07-5.4.x86_64 from openSUSE:Factory:Contrib -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=648885 https://bugzilla.novell.com/show_bug.cgi?id=648885#c10 Petr Gajdos <pgajdos@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |axel@hiq2.com --- Comment #10 from Petr Gajdos <pgajdos@novell.com> 2011-02-17 08:55:13 UTC --- Christopher, could you please try exiftran as soon as it is built? Does it work for you now? http://download.opensuse.org/repositories/openSUSE:/Factory:/Contrib/openSUS... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=648885 https://bugzilla.novell.com/show_bug.cgi?id=648885#c11 Petr Gajdos <pgajdos@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|axel@hiq2.com |cwh@novell.com --- Comment #11 from Petr Gajdos <pgajdos@novell.com> 2011-02-17 08:55:54 UTC --- Fixed wrong needinfo. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=648885 https://bugzilla.novell.com/show_bug.cgi?id=648885#c12 Christopher Hofmann <cwh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|cwh@novell.com | --- Comment #12 from Christopher Hofmann <cwh@novell.com> 2011-02-17 16:07:21 UTC --- Works great with the set of photos I tried. Thanks a lot. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=648885 https://bugzilla.novell.com/show_bug.cgi?id=648885#c13 Petr Gajdos <pgajdos@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #13 from Petr Gajdos <pgajdos@novell.com> 2011-02-18 07:23:35 UTC --- Welcome and thanks too. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com