Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#22045 - libcrypto.so is causing crashes in applications running using wine

Attached to Project: Community Packages
Opened by Dan Liew (delcypher) - Friday, 10 December 2010, 23:41 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Wednesday, 12 October 2011, 04:33 GMT
Task Type Bug Report
Category Packages: Multilib
Status Closed
Assigned To Ionut Biru (wonder)
Florian Pritz (bluewind)
Sven-Hendrik Haase (Svenstaro)
Jan Steffens (heftig)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
Libcrypto.so appears to be causing crashes in some wine applications. In particular "Kindle For PC 1.3.0 (30884)" as described here http://bugs.winehq.org/show_bug.cgi?id=25475 and by "Fifa 09" as described here https://bbs.archlinux.org/viewtopic.php?pid=864219#p864219

I am running "Linux 2.6.36-ARCH #1 SMP PREEMPT"

Additional info:
Relevant packages:
wine-1.3.8 (multilibs)
openssl 1.0.0.c-1

A log file output of wine of my crash is attached


Steps to reproduce:
1. Install "Kindle for PC" for windows using wine ( http://www.amazon.com/gp/feature.html/ref=kcp_pc_mkt_lnd?docId=1000426311 )
2. Run the application which will start fine.
3. Attempt to register using any e-mail address and password and the application will crash with the starting with the line "wine: Unhandled page fault on read access to 0xffffffff at address 0x7d485ebc (thread 0009), starting debugger...".
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Wednesday, 12 October 2011, 04:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in -2.
Comment by Dan Liew (delcypher) - Friday, 10 December 2010, 23:44 GMT
Hmm I somehow managed to forget to include that I'm running x86_64 and using KDE 4.5.4.
Comment by Dan Liew (delcypher) - Saturday, 11 December 2010, 09:53 GMT
I upgraded to wine-1.3.9 this morning. The problem still persists although this is not really surprising as the crash appears to come from libcrypto.so . I've included the error log too. It is not really any different apart from the memory locations.
Comment by Pierre Schmitz (Pierre) - Saturday, 11 December 2010, 10:10 GMT
This is most likely not related to openssl from [core] but lib32-openssl from [multilib] or wine. I'd suggest to update lib32-openssl to 1.0.0c at first.
Comment by Ionut Biru (wonder) - Saturday, 11 December 2010, 10:12 GMT
it's related to  FS#21248 . openssl is a bit special and we have to adjust openssl core too
Comment by Dan Liew (delcypher) - Saturday, 11 December 2010, 10:20 GMT
Oops I hadn't noticed that my "lib32-openssl" is at version 1.0.0.a-6 . This is the most up to date version available on the multilibs repository (Is there actually anyway in pacman to see which repository a package is from?``pacman -Qi lib32-openssl'' doesn't actually tell me what repository a package belongs to.)

Is my solution to compile from source forcing -m32 (I'm just guessing here) for compilation and then using LD_LIBRARY_PATH=/path/to/my/compiled/library/ wine application.exe to force wine to use my newly compiled library?
Comment by Ionut Biru (wonder) - Saturday, 11 December 2010, 10:22 GMT
no, use abs
Comment by Ionut Biru (wonder) - Saturday, 11 December 2010, 10:23 GMT
but it won't help you at all because openssl needs some header modifications. until that is done, we can't do anything
Comment by Ionut Biru (wonder) - Saturday, 11 December 2010, 10:52 GMT Comment by Dan Liew (delcypher) - Saturday, 11 December 2010, 11:04 GMT
How do I install those without breaking stuff on my system when I wish to switch back to the repository version?

pacman -U package.pkg.tar.gz # should do install

But what about when I want to switch back to the repository's package?

pacman -R openssl # Probably won't work as many installed applications depend on this.
pacman -R lib32-openssl # Probably won't work as many installed applications depend on this.
Comment by Ionut Biru (wonder) - Saturday, 11 December 2010, 11:05 GMT Comment by Dan Liew (delcypher) - Saturday, 11 December 2010, 11:08 GMT
I know how to install your version of the package (in my previous comment). I am asking how do I revert back to the repository version once I am done testing.
Comment by Ionut Biru (wonder) - Saturday, 11 December 2010, 11:10 GMT
pacman -S openssl lib32-openssl
Comment by Dan Liew (delcypher) - Saturday, 11 December 2010, 11:15 GMT
Okay I just tried those packages. Wine still crashes. Error log is attached.
Comment by Ionut Biru (wonder) - Saturday, 11 December 2010, 12:01 GMT
revert back to repos, pacman -Scc and pacman -U http://pkgbuild.com/~ioni/lib32-openssl-1.0.0.c-1-x86_64.pkg.tar.xz
Comment by Dan Liew (delcypher) - Saturday, 11 December 2010, 12:10 GMT
I tried that. Wine still crashes when trying to do "register" in "Kindle for PC". Backtrace still indicates this is happening in libcrypto.so

Error log is attached. Not really sure if it's much use.
Comment by Ionut Biru (wonder) - Saturday, 11 December 2010, 12:11 GMT
is a new package but with the same revision. that's why i said to revert, clean and install
Comment by Dan Liew (delcypher) - Saturday, 11 December 2010, 12:16 GMT
I did...
pacman -S lib32-openssl openssl #Reverting to repo versions
pacman -Scc #remove all packages in /var/cache/pacman/pkg
pacman -U http://pkgbuild.com/~ioni/lib32-openssl-1.0.0.c-1-x86_64.pkg.tar.xz #Install newly built package
wine /home/dan/.wine/drive_c/Program\ Files/Amazon/Kindle\ For\ PC/KindleForPC.exe 2> kindle4.log

Wine still crashes.
Comment by Dan Liew (delcypher) - Saturday, 11 December 2010, 12:18 GMT
Output of pacman -Qi lib32-openssl

Name : lib32-openssl
Version : 1.0.0.c-1
URL : https://www.openssl.org
Licences : custom:BSD
Groups : None
Provides : None
Depends On : lib32-zlib openssl
Optional Deps : ca-certificates
perl
gcc-multilib
Required By : lib32-curl lib32-heimdal lib32-qt
Conflicts With : None
Replaces : None
Installed Size : 5608.00 K
Packager : Ionut Biru <ibiru@archlinux.org>
Architecture : x86_64
Build Date : Sat 11 Dec 2010 12:01:49 GMT
Install Date : Sat 11 Dec 2010 12:06:01 GMT
Install Reason : Installed as a dependency for another package
Install Script : No
Description : The Open Source toolkit for Secure Sockets Layer and Transport Layer Security (32-bit)

Just to confirm that I am using your newest version of lib32-openssl.
Comment by Jan Steffens (heftig) - Saturday, 11 December 2010, 23:52 GMT
Please try the packages from here: http://pkgbuild.com/~heftig/lib32-openssl/
Comment by Dan Liew (delcypher) - Sunday, 12 December 2010, 00:18 GMT
I installed all those packages that are listed at the URL you provided using (pacman -U packagename.pkg.tar.gz) and tried running "Kindle for PC" through the new version of wine. The application causes a crash at the same place as before.

I've attached a more complete error log as I noticed I could set an environmental variable for wine debugging.

WINEDEBUG=warn+all wine /home/dan/.wine/drive_c/Program\ Files/Amazon/Kindle\ For\ PC/KindleForPC.exe 2> kindle5.log
Comment by Jan Steffens (heftig) - Sunday, 12 December 2010, 00:23 GMT
Was the wine configuration actually updated when you ran Kindle after installing the new wine package?
Comment by Dan Liew (delcypher) - Sunday, 12 December 2010, 00:25 GMT
Yes I ran the following before running the kindle application through wine.
WINEARCH=win32 winecfg

I haven't being doing any reboots during these changes. I am pretty sure that doesn't matter. I have been running ldconfig just incase too but that didn't seem to make a difference.
Comment by Jan Steffens (heftig) - Sunday, 12 December 2010, 00:50 GMT
I've rebuilt the lib32-openssl package again. Could you please try this one?
Comment by Dan Liew (delcypher) - Sunday, 12 December 2010, 00:57 GMT
I'm afraid the kindle program still crashes (this is in combination with all the other packages you asked me to install): Log is included.

pacman -Qi lib32-openssl

Name : lib32-openssl
Version : 1.0.0.c-1
URL : https://www.openssl.org
Licences : custom:BSD
Groups : None
Provides : None
Depends On : lib32-zlib openssl
Optional Deps : None
Required By : lib32-curl lib32-heimdal lib32-libldap lib32-qt
Conflicts With : None
Replaces : None
Installed Size : 5624.00 K
Packager : Jan "heftig" Steffens <jan.steffens@gmail.com>
Architecture : x86_64
Build Date : Sun 12 Dec 2010 00:49:42 GMT
Install Date : Sun 12 Dec 2010 00:52:32 GMT
Install Reason : Installed as a dependency for another package
Install Script : No
Description : The Open Source toolkit for Secure Sockets Layer and Transport Layer Security (32-bit)
Comment by Jan Steffens (heftig) - Sunday, 12 December 2010, 01:24 GMT
Alright, another try. I rebuilt the lib32-openssl package again.
Comment by Dan Liew (delcypher) - Sunday, 12 December 2010, 01:40 GMT
Name : lib32-openssl
Version : 1.0.0.c-1
URL : https://www.openssl.org
Licences : custom:BSD
Groups : None
Provides : None
Depends On : lib32-zlib openssl
Optional Deps : None
Required By : lib32-curl lib32-heimdal lib32-libldap lib32-qt
Conflicts With : None
Replaces : None
Installed Size : 5588.00 K
Packager : Jan "heftig" Steffens <jan.steffens@gmail.com>
Architecture : x86_64
Build Date : Sun 12 Dec 2010 01:21:59 GMT
Install Date : Sun 12 Dec 2010 01:35:40 GMT
Install Reason : Installed as a dependency for another package
Install Script : No
Description : The Open Source toolkit for Secure Sockets Layer and Transport Layer Security (32-bit)

Wine still crashes at the same point. Log attached.
Comment by Jan Steffens (heftig) - Sunday, 12 December 2010, 01:43 GMT
So when you ran WINEARCH=win32 winecfg that little window saying "Please wait while the wine configuration in /home/user/.wine is being updated" appeared?
Comment by Dan Liew (delcypher) - Sunday, 12 December 2010, 01:46 GMT
The first time I ran it after installing the new version of wine that window "Please wait while the wine configuration in /home/user/.wine is being updated" did appear. It does not appear again if I run the command.
Comment by Jan Steffens (heftig) - Sunday, 12 December 2010, 01:47 GMT
The new version of wine being the one I gave you, not 1.3.9 from the repos?
Comment by Dan Liew (delcypher) - Sunday, 12 December 2010, 01:50 GMT
Sorry let me clarify. Everytime I have been asked to upgrade my wine package I have run "WINEARCH=win32 winecfg" and that small window "Please wait while the wine configuration in /home/user/.wine is being updated" has appeared. It does not appear again unless I install a different wine package (e.g. I do "pacman -S wine").
Comment by Dan Liew (delcypher) - Saturday, 29 January 2011, 10:16 GMT
Any news on this issue? I haven't seen an update to lib32-openssl yet.
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 15 February 2011, 18:41 GMT
What is the status on this?
Comment by Jan Steffens (heftig) - Tuesday, 15 February 2011, 19:30 GMT Comment by Sven-Hendrik Haase (Svenstaro) - Saturday, 16 April 2011, 02:31 GMT
For what it's worth, I'd like to state that this is still an issue as of current [testing]. I wonder whether other distros have the same problems. OpenSuSe and Fedora provide libopenssl-32bit crossbuilds using lots and lots more patches than we do but they also compile for more archs than we do.
Fedora package: http://pkgs.fedoraproject.org/gitweb/?p=openssl.git;a=tree
Comment by Florian Pritz (bluewind) - Saturday, 18 June 2011, 10:24 GMT
Status?
Comment by Sven-Hendrik Haase (Svenstaro) - Saturday, 18 June 2011, 12:45 GMT Comment by Fabrice (Cobaltounet) - Sunday, 03 July 2011, 18:28 GMT
For what id worth, I also have have the crash problem with The activation of MS office.
Comment by Tiago Tagliaferri (H1GHL4ND3R) - Tuesday, 11 October 2011, 13:55 GMT
bug still present, i had faced it, while a wine application requested a HTTPS access.
Anyway recompiling lib32-openssl using abs adding -mstackrealign flag to CFLAGS and CXXFLAGS solved the problem. as said in this thread https://bbs.archlinux.org/viewtopic.php?pid=903645#p903645
Comment by Sven-Hendrik Haase (Svenstaro) - Tuesday, 11 October 2011, 15:33 GMT
Fixed in -2. Thanks for that. Please test and report back.
Comment by Tiago Tagliaferri (H1GHL4ND3R) - Wednesday, 12 October 2011, 04:28 GMT
tested against 1.0.0.e-2 and the bug was solved, thanks.
there's also this report that is related https://bugs.archlinux.org/task/23277

Loading...