Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124769 - executable stacks for net-im/silc-plugin-1.0.1-r5
Summary: executable stacks for net-im/silc-plugin-1.0.1-r5
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Andrej Kacian (RETIRED)
Depends on:
Reported: 2006-03-03 04:06 UTC by Andrej Kacian (RETIRED)
Modified: 2007-08-22 06:30 UTC (History)
1 user (show)

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

scanelf-execstack.log (scanelf-execstack.log,183 bytes, text/plain)
2006-04-08 08:58 UTC, Andrej Kacian (RETIRED)

Note You need to log in before you can comment on or make changes to this bug.
Description Andrej Kacian (RETIRED) gentoo-dev 2006-03-03 04:06:29 UTC
I am receiving following error with latest net-irc/silc-plugin, and I'd like your (QA's) advice on how to fix executable stack. An URL will suffice, if there's any. Thanks for your time.

make: Leaving directory `/var/tmp/portage/portage/silc-plugin-1.0.1-r5/work/silc-client-1.0.1/irssi/docs/help'
strip: i686-pc-linux-gnu-strip --strip-unneeded

QA Notice: the following files contain runtime text relocations
 Text relocations force the dynamic linker to perform extra
 work at startup, waste system resources, and may pose a security
 risk.  On some architectures, the code may not even function
 properly, if at all.
 Please include this file in your report:
TEXTREL usr/lib/irssi/modules/

QA Notice: the following files contain executable stacks
 Files with executable stacks will not work properly (or at all!)
 on some architectures/operating systems.  A bug should be filed
 at to make sure the file is fixed.
 Please include this file in your report:
RWX --- --- usr/lib/irssi/modules/

!!! ERROR: net-im/silc-plugin-1.0.1-r5 failed.
Call stack:, line 1933:   Called dyn_install

!!! Aborting due to QA concerns:  textrels, execstacks
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 1 solar (RETIRED) gentoo-dev 2006-03-03 05:05:15 UTC
Here you go.
Comment 2 Andrej Kacian (RETIRED) gentoo-dev 2006-03-08 06:30:55 UTC
Great reading, thanks. However, I can't find any .S files in sources to add mentioned snippets for GNU_STACK.
Comment 3 SpanKY gentoo-dev 2006-03-08 06:59:47 UTC
well i'd like to help but you didnt attach this log like the message told you to:
Comment 4 Andrej Kacian (RETIRED) gentoo-dev 2006-04-08 08:58:05 UTC
Created attachment 84206 [details]

Actually, this package seems to suffer from both textrels and executable stacks. I'm attaching both scanelf-*.log files.
Comment 5 Andrej Kacian (RETIRED) gentoo-dev 2006-04-08 09:05:46 UTC
OK, the second file was too large for bugzilla. Here is a link:
Comment 6 SpanKY gentoo-dev 2007-08-19 09:14:20 UTC
i think that the plugin is just built incorrectly rather than the source code having problems ... in other words, it includes objects that were not properly built with -fPIC

in general, if you have something that has a ton of TEXTRELs (looking pretty much like 1 for every single function), then it's a good indicator that it was built incorrectly

a very good indicator of this is if external functions are called in C code yet yield textrels ... like: getpgid@@GLIBC_2.0 [0xD4C39] in silc_client_connect_to_server_final [0xD4BE0]

reading the source there is clearly no inline asm which calls this ... the reference comes from pure C
Comment 7 Andrej Kacian (RETIRED) gentoo-dev 2007-08-22 06:30:30 UTC
silc-plugin-1.1.2 doesn't have this issue anymore when compiled with --with-pic