Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299368 - net-im/skype-2.1.0.47 segfaults on startup
Summary: net-im/skype-2.1.0.47 segfaults on startup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
: 299556 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-02 15:55 UTC by Stephan Friedrichs
Modified: 2010-01-06 16:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
paludis --info skype (paludis-info-skype,14.94 KB, text/plain)
2010-01-02 18:18 UTC, Stephan Friedrichs
Details
paludis --info skype (paludis-info-skype-2,14.92 KB, text/plain)
2010-01-02 19:23 UTC, Stephan Friedrichs
Details
Output of "strace skype" (skype.strace,32.67 KB, text/plain)
2010-01-04 11:47 UTC, Tassilo Horn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Friedrichs 2010-01-02 15:55:31 UTC
When starting net-im/skype-2.1.0.47, it segfaults. Version 2.0.0.72 worked just fine.

Reproducible: Always

Steps to Reproduce:
igel@Garten ~ % skype
[1]    30290 segmentation fault  skype
igel@Garten ~ % strace skype
[...]
mprotect(0xf6b94000, 16384, PROT_READ)  = 0
mprotect(0xf6bb6000, 4096, PROT_READ)   = 0
mprotect(0xf6d80000, 24576, PROT_READ)  = 0
mprotect(0xf6e5c000, 12288, PROT_READ)  = 0
mprotect(0xf75d2000, 118784, PROT_READ) = 0
mprotect(0xf7643000, 4096, PROT_READ)   = 0
mprotect(0xf764d000, 4096, PROT_READ)   = 0
mprotect(0xf7651000, 4096, PROT_READ)   = 0
mprotect(0xf7657000, 4096, PROT_READ)   = 0
mprotect(0xf770a000, 12288, PROT_READ)  = 0
mprotect(0xf7758000, 4096, PROT_READ)   = 0
munmap(0xf770e000, 183299)              = 0
set_tid_address(0xf6546768)             = 30294
set_robust_list(0xf6546770, 0xc)        = 0
futex(0xffd5e1f0, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0xffd5e1f0, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, ffd5e200) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0xf6ba53d0, [], SA_SIGINFO}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xf6ba58c0, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=-4286578688, rlim_max=-667817025971683312}) = 0
uname({sys="Linux", node="Garten", ...}) = 0
brk(0)                                  = 0x9268000
brk(0x9289000)                          = 0x9289000
futex(0xf6b9f388, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0xf6b9f3a8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
[1]    30293 segmentation fault  strace skype
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-01-02 17:51:04 UTC
emerge --info
Comment 2 Stephan Friedrichs 2010-01-02 18:18:03 UTC
Created attachment 214933 [details]
paludis --info skype
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2010-01-02 18:24:11 UTC
I said emerge --info, still unsure if this is on hardened or not. Plus the paludis --info is for the old version, so it's unclear if you had 
USE=qt-static enabled or disabled in 2.1.0.47.
Comment 4 Stephan Friedrichs 2010-01-02 19:23:47 UTC
Created attachment 214938 [details]
paludis --info skype

This is paludis --info for the right version. I forgot that I had already downgraded to the working version (2.0.0.72) when creating the attachment above, I'm sorry!

The qt-static useflag is disabled, it's not on hardened.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2010-01-02 20:00:06 UTC
(In reply to comment #4)
> The qt-static useflag is disabled, it's not on hardened.

OK, so it's crashing on non-hardened amd64 with USE="-qt-static". Note that in old versions the qt-static is forced enabled, so you might want to retry with USE="qt-static" enabled in the new one too...
Comment 6 Stephan Friedrichs 2010-01-02 20:14:57 UTC
(In reply to comment #5)
> OK, so it's crashing on non-hardened amd64 with USE="-qt-static". Note that in

yep

> old versions the qt-static is forced enabled, so you might want to retry with
> USE="qt-static" enabled in the new one too...

it still segfaults
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-01-04 10:17:12 UTC
*** Bug 299556 has been marked as a duplicate of this bug. ***
Comment 8 Tassilo Horn 2010-01-04 11:47:09 UTC
Created attachment 215158 [details]
Output of "strace skype"
Comment 9 shade 2010-01-04 18:50:45 UTC
hi, i had same bug, so i asked my beta skype tester friend about it. Its a
gentoo bug, not skype one. Gentoo while installation modifies skype binary and
skype does not like it. check md5 sum of file installed and one from package. 

Here are few words from my friend from testers team.

[17:14:45] Paul : funny question - does md5 of skype binary match the one in
downloaded package?
[17:15:11] shade: hmm, from skype hompage? I didnt check
[17:15:15] Paul : because fedora has prelink which breaks binary
[17:15:35] Paul : you install skype, it works until next prelink run
(crontabbed)

2nd important part

[17:29:00] Paul : skype binary has proprietary encryption so it won't work when
modified
[17:29:37] Paul : fedora rpm of skype even has rule file for prelink to exclude
it
[17:29:37] Shade: can i post you last line on that bug?
[17:29:53] Paul : yes, and that about prelink rule file too
[17:30:51] Paul : [stalwart@delta ~]$ cat /etc/prelink.conf.d/skype.conf 
-b /usr/bin/skype
[17:31:27] Paul : check if you have prelink installed, and if you do - create
this rulefile
[17:31:38] shade: i dont have it installed
[17:31:51] Paul : then you have something else that modifies binary

Comment 10 Cyrill Helg 2010-01-06 12:31:35 UTC
I'm having the same issue... anyone found out who is changing the binary?
Comment 11 shade 2010-01-06 12:40:35 UTC
Cyril, for now if you want realy to use that version, you can do it in dirty way, just unpack tar from distfiles and cp skype file to /usr/bin/skype.
Comment 12 shade 2010-01-06 12:49:17 UTC
Im sory Cyrill, i taped bad path in las post, you should copy skype binary to /opt/skype/skype. /usr/bin/skype is only wraper linking to /opt
Comment 13 Samuli Suominen (RETIRED) gentoo-dev 2010-01-06 12:58:48 UTC
Is this issue solved if you add RESTRICT="strip" to the ebuild?
Comment 14 shade 2010-01-06 13:09:15 UTC
(In reply to comment #13)
> Is this issue solved if you add RESTRICT="strip" to the ebuild?
> 

Confirmed
Comment 15 Stephan Friedrichs 2010-01-06 13:57:12 UTC
(In reply to comment #13)
> Is this issue solved if you add RESTRICT="strip" to the ebuild?
> 

seems to work
Comment 16 Stephan Friedrichs 2010-01-06 14:02:13 UTC
PS: The installed binary and the unpacked binary (from skype-2.1.0.47.tar.bz2) do not differ if RESTRICT="mirror strip" is used (RESTRICT="mirror" was already there before):

md5sum /opt/skype/skype ~igel/incoming/skype-2.1.0.47/skype
a93e449b032e21cdbc43e3f903c46dc4  /opt/skype/skype
a93e449b032e21cdbc43e3f903c46dc4  /home/igel/incoming/skype-2.1.0.47/skype
Comment 17 Samuli Suominen (RETIRED) gentoo-dev 2010-01-06 16:39:45 UTC
+*skype-2.1.0.47-r1 (06 Jan 2010)
+
+  06 Jan 2010; Samuli Suominen <ssuominen@gentoo.org>
+  +skype-2.1.0.47-r1.ebuild:
+  Restricting "strip" again wrt #299368.