http://bugs.winehq.org/show_bug.cgi?id=30161
Bug #: 30161 Summary: GdipImageRotateFlip core dumps Product: Wine Version: 1.4 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdiplus AssignedTo: wine-bugs@winehq.org ReportedBy: atanvardo@gmail.com Classification: Unclassified
Created attachment 39348 --> http://bugs.winehq.org/attachment.cgi?id=39348 WINE generated backtrace
While loading thumbnails, SIGMA Photo Pro 5 segfaults in GdipImageRotateFlip
http://bugs.winehq.org/show_bug.cgi?id=30161
Alessandro Morelli atanvardo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|x86 |x86-64
http://bugs.winehq.org/show_bug.cgi?id=30161
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|GdipImageRotateFlip core |SIGMA Photo Pro 5 crashes |dumps |in GdipImageRotateFlip Severity|normal |minor
--- Comment #1 from Dmitry Timoshkov dmitry@baikal.ru 2012-03-14 03:49:47 CDT --- Please install debug symbols or compile Wine from source and attach backtrace with debug info.
http://bugs.winehq.org/show_bug.cgi?id=30161
Alessandro Morelli atanvardo@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #39348|0 |1 is obsolete| |
--- Comment #2 from Alessandro Morelli atanvardo@gmail.com 2012-03-14 03:52:42 CDT --- Created attachment 39350 --> http://bugs.winehq.org/attachment.cgi?id=39350 Backtrace with debug symbols
http://bugs.winehq.org/show_bug.cgi?id=30161
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://www.sigma-sd.com/SD1 | |/photopro.html
--- Comment #3 from Austin English austinenglish@gmail.com 2012-03-14 05:32:32 CDT --- Is this a regression? A relay,seh,tid,gdiplus trace would probably be helpful.
Also, how do you reproduce it? I got the application from: http://www.sigma-sd.com/SD1/photopro.html
austin@aw21 ~ $ sha1sum SPP_5.2.1_setup.exe 604f7b99b2bf67774bd668b77e4c9f4e11e9ddbf SPP_5.2.1_setup.exe
installed and ran it in wine-1.4-205-g104e319, was able to load several hundred images with thumbnails, no crash. Also tried in 1.3.37, no crash.
http://bugs.winehq.org/show_bug.cgi?id=30161
--- Comment #4 from Vincent Povirk madewokherd@gmail.com 2012-03-14 10:56:45 CDT --- I don't think we need more information just yet. From the backtrace it looks like the problem is we're not validating arguments in that function.
http://bugs.winehq.org/show_bug.cgi?id=30161
--- Comment #5 from Dmitry Timoshkov dmitry@baikal.ru 2012-03-14 11:34:27 CDT --- (In reply to comment #4)
I don't think we need more information just yet. From the backtrace it looks like the problem is we're not validating arguments in that function.
The problem may be that NULL comes from some other gdiplus call, and GdipImageRotateFlip is not supposed to check for it, needs the tests though.
http://bugs.winehq.org/show_bug.cgi?id=30161
--- Comment #6 from Alessandro Morelli atanvardo@gmail.com 2012-03-14 12:25:55 CDT --- (In reply to comment #3)
Is this a regression? A relay,seh,tid,gdiplus trace would probably be helpful.
Also, how do you reproduce it? I got the application from: http://www.sigma-sd.com/SD1/photopro.html
austin@aw21 ~ $ sha1sum SPP_5.2.1_setup.exe 604f7b99b2bf67774bd668b77e4c9f4e11e9ddbf SPP_5.2.1_setup.exe
installed and ran it in wine-1.4-205-g104e319, was able to load several hundred images with thumbnails, no crash. Also tried in 1.3.37, no crash.
The application crashes when it tries to load a thumbnail from a sigma raw file (an X3F file) which has been marked as rotated.
After I installed the gdiplus with winetricks, the crash disappeared.
If it's useful, I'll try to pinpoint the exact file and I'll host it somewhere (it's largish), otherwise I'll be happy to test any patch related to gdiplus stuff.
I'm using the deb packages made by Mr. Wasserbäch, so I can grab the source package, recompile and reinstall quite easily.
http://bugs.winehq.org/show_bug.cgi?id=30161
--- Comment #7 from Vincent Povirk madewokherd@gmail.com 2013-10-30 10:34:18 CDT --- Please retest in recent Wine.
http://bugs.winehq.org/show_bug.cgi?id=30161
hanska2@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hanska2@luukku.com
--- Comment #8 from hanska2@luukku.com --- Well I was about to test this but found out that you need some certain filetype...
please retest.
https://bugs.winehq.org/show_bug.cgi?id=30161
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
https://bugs.winehq.org/show_bug.cgi?id=30161
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEEDINFO Summary|SIGMA Photo Pro 5 crashes |SIGMA Photo Pro 5 crashes |in GdipImageRotateFlip |in GdipImageRotateFlip when | |trying to show thumbnail | |from X3F (Sigma) RAW file Ever confirmed|0 |1
--- Comment #9 from Anastasius Focht focht@gmx.net --- Hello folks,
I found a website with various example X3F RAW files here:
http://www.photographyblog.com/reviews/sigma_dp2_merrill_review/sample_image...
No problems displaying those (thumbnail and full).
The problem is that OP talks about rotated X3F images:
--- quote --- load a thumbnail from a sigma raw file (an X3F file) which has been marked as rotated. --- quote ---
The bug reporter (OP) has to *obligation* to provide *all* means to be able to reproduce the problem and to occasionally re-test (in case OP is no longer active/doesn't bother anymore). Do you think people here are going to waste their spare time, manufacturing such a rotated X3F file?
Last call: Provide the file (link) or re-test on your own using recent Wine version. If there is no response after certain time, the bug will be closed without further notice (abandon).
--- snip --- -=[ ProtectionID v0.6.6.7 DECEMBER]=- (c) 2003-2015 CDKiLLER & TippeX Build 24/12/14-22:48:13 Ready... Scanning -> Z:\home\focht\Downloads\SPP_5.5.3_setup.exe File Type : 32-Bit Exe (Subsystem : Win GUI / 2), Size : 69269424 (0420F7B0h) Byte(s) Compilation TimeStamp : 0x428A0A59 -> Tue 17th May 2005 15:14:33 (GMT) [TimeStamp] 0x428A0A59 -> Tue 17th May 2005 15:14:33 (GMT) | PE Header | - | Offset: 0x00000108 | VA: 0x00400108 | - -> File Appears to be Digitally Signed @ Offset 0420DDF0h, size : 019C0h / 06592 byte(s) -> File has 69008880 (041CFDF0h) bytes of appended data starting at offset 03E000h [File Heuristics] -> Flag #1 : 00000000000000000000000000000100 (0x00000004) [Entrypoint Section Entropy] : 6.59 (section #0) ".text " | Size : 0x27DBA (163258) byte(s) [DllCharacteristics] -> Flag : (0x0000) -> NONE [SectionCount] 4 (0x4) | ImageSize 0x43000 (274432) byte(s) [VersionInfo] Company Name : SIGMA [VersionInfo] Product Name : SIGMA Photo Pro 5 [VersionInfo] Product Version : 5.5.3 [VersionInfo] File Description : Setup Launcher [VersionInfo] File Version : 5.5.3 [VersionInfo] Original FileName : Setup.exe [VersionInfo] Internal Name : Setup [VersionInfo] Legal Copyrights : Copyright (C) 2005 Macrovision Corporation [-= Installer =-] InstallShield v8.x Setup Module [CompilerDetect] -> Visual C++ 6.0 - Scan Took : 0.209 Second(s) [0000000D1h (209) tick(s)] [558 of 573 scan(s) done]
Scanning -> C:\Program Files\SIGMA\SIGMA Photo Pro 5\SIGMA PhotoPro5.exe File Type : 32-Bit Exe (Subsystem : Win GUI / 2), Size : 6131136 (05D8DC0h) Byte(s) Compilation TimeStamp : 0x525F35CA -> Thu 17th Oct 2013 00:56:42 (GMT) [TimeStamp] 0x525F35CA -> Thu 17th Oct 2013 00:56:42 (GMT) | PE Header | - | Offset: 0x00000118 | VA: 0x00400118 | - [TimeStamp] 0x525F35C6 -> Thu 17th Oct 2013 00:56:38 (GMT) | Export | - | Offset: 0x00404694 | VA: 0x00805A94 | - [TimeStamp] 0x525F35CA -> Thu 17th Oct 2013 00:56:42 (GMT) | DebugDirectory | - | Offset: 0x003654E4 | VA: 0x007668E4 | - -> File Appears to be Digitally Signed @ Offset 05D7400h, size : 019C0h / 06592 byte(s) [!] Executable uses SEH Tables (/SAFESEH) (2256 calculated 2256 recorded... 0 invalid addresses) [File Heuristics] -> Flag #1 : 00000100000001001100000100000100 (0x0404C104) [Entrypoint Section Entropy] : 6.56 (section #0) ".text " | Size : 0x3636E0 (3552992) byte(s) [DllCharacteristics] -> Flag : (0x8000) -> TSA [SectionCount] 4 (0x4) | ImageSize 0x7BF000 (8122368) byte(s) [Export] 100% of function(s) (21 of 21) are in file | 0 are forwarded | 17 code | 4 data | 0 uninit data | 0 unknown | [VersionInfo] Company Name : SIGMA CORPORATION [VersionInfo] Product Name : SIGMA PhotoPro5 [VersionInfo] Product Version : 5.5.3.1(15281) [VersionInfo] File Description : SIGMA PhotoPro5 [VersionInfo] File Version : 5.5.3.1(15281) [VersionInfo] Original FileName : SIGMA PhotoPro5.exe [VersionInfo] Internal Name : SIGMA PhotoPro5 [VersionInfo] Legal Trademarks : SIGMA(R) is a registered trademark of SIGMA Corporation. Foveon(R) is a registered trademark of Foveon. Inc. Foveon X3 is a trademark of Foveon. Inc. [VersionInfo] Legal Copyrights : Copyright(C) 2000-2013. Foveon. Inc. All rights reserved. Patent Pending. Portions copyright(C) 2002-2013 SIGMA CORPORATION. All rights reserved. [Debug Info] (record 1 of 1) (file offset 0x3654E0) Characteristics : 0x0 | TimeDateStamp : 0x525F35CA (Thu 17th Oct 2013 00:56:42 (GMT)) | MajorVer : 0 / MinorVer : 0 -> (0.0) Type : 2 (0x2) -> CodeView | Size : 0x4D (77) AddressOfRawData : 0x3C45D8 | PointerToRawData : 0x3C31D8 CvSig : 0x53445352 | SigGuid 4879F35B-AB21-47C0-89853B84D33B19E9 Age : 0x1 | Pdb : d:\vss2005\SIGMA\PhotoPro\Module\SIGMA PhotoPro5.pdb [CdKeySerial] found "SerialNumber" @ VA: 0x003A692A / Offset: 0x003A552A [CompilerDetect] -> Visual C++ 9.0 (Visual Studio 2008) [!] File appears to have no protection or is using an unknown protection - Scan Took : 1.896 Second(s) [000000450h (1104) tick(s)] [499 of 573 scan(s) done] --- snip ---
$ sha1sum SPP_5.5.3_setup.exe 2cb9b51dc43a124a8903d2d1f135e5d0f201615a SPP_5.5.3_setup.exe
$ du -sh SPP_5.5.3_setup.exe 67M SPP_5.5.3_setup.exe
$ wine --version wine-1.8-rc3
Regards
https://bugs.winehq.org/show_bug.cgi?id=30161
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com, | |atanvardo@gmail.com, | |winetest@luukku.com
--- Comment #10 from winetest@luukku.com --- Sounds needinfo or abandoned to me.
2012-03-14 12:25:55 CDT last time we heard from the OP.
Also it's not clear to me whatkind of file is needed to test this bug ("Marked rotated").
https://bugs.winehq.org/show_bug.cgi?id=30161
--- Comment #11 from Alessandro Morelli atanvardo@gmail.com --- Ah sorry, my bad, didn't see the bug replies (I lost access to this email until a few weeks ago).
Anyway:
X3F files are produced by the Sigma cameras and none of them has an orientation sensor, so when you take a picture tilting the camera 90° you get a sideways image.
In the app, you can mark the files as being "rotated", so the app applies the correct rotation to the image automatically, for both the thumbnail and the full image.
Each time the app tried to render the thumbnail of one of such files, it crashed.
This is a rotated file: https://drive.google.com/file/d/0B9HC7ctx22qaX2FIYVNJNUFXZDA/view?usp=sharin...
(12MB, so no attachment)
I *think* the bug could be abandoned, though: this app version is obsolete, Sigma has released a Mac version of the newer app, Linux (with dcraw) has some pretty advanced support for X3F.
However, if someone wants to investigate further, I'll be glad to help however I can.
https://bugs.winehq.org/show_bug.cgi?id=30161
--- Comment #12 from winetest@luukku.com --- I downloaded windows version of the program that is available via the link. Also opened the file provided.
I don't get a crash.
Do I have to do something to the file or is it fine so? Also the program version is updated since report time? I assume...
So we have to hunt down some old version?
https://bugs.winehq.org/show_bug.cgi?id=30161
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WORKSFORME Status|NEEDINFO |RESOLVED
--- Comment #13 from Bruno Jesus 00cpxxx@gmail.com --- Wine 1.3.22 display a blank thumb but correctly rotated, wine 1.3.30 already displays the thumb correctly. In wine 1.4.1 it is fine too. Wine 1.9.16 works well too, much faster than the old versions.
Gimp also opens the image and it is possible to see it is rotated correctly (-90 degrees).
Tested with the same program version from comment 3 and the image symlinked 200 times. It was probably a real problem at the time but it can no longer happen due to [1] so I believe worksforme is fine.
[1] http://source.winehq.org/git/wine.git/commitdiff/b5ef70c5836b33a9d469c71e20b...
https://bugs.winehq.org/show_bug.cgi?id=30161
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from Austin English austinenglish@gmail.com --- Closing.