Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202207 - dev-lang/erlang-11.2.5 crypto:start() fails with hardened gcc-3.4.6 due to textrels
Summary: dev-lang/erlang-11.2.5 crypto:start() fails with hardened gcc-3.4.6 due to te...
Status: RESOLVED DUPLICATE of bug 200541
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-14 00:45 UTC by Wendall Cada
Modified: 2007-12-14 21:08 UTC (History)
0 users

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


Attachments
emerge --info (emerge.info.txt,3.57 KB, text/plain)
2007-12-14 20:00 UTC, Wendall Cada
Details
scanelf-textrel log (scanelf-textrel.log,3.86 KB, text/plain)
2007-12-14 20:53 UTC, Wendall Cada
Details
emerge log (emerge.log.tar.bz2,70.33 KB, application/octet-stream)
2007-12-14 21:03 UTC, Wendall Cada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wendall Cada 2007-12-14 00:45:39 UTC
dev-lang/erlang-11.2.5 java odbc smp ssl -doc -emacs -hipe -kpoll -tk

Eshell V5.5.5  (abort with ^G)
1> crypto:start().   
ok
2> sh: line 0: exec: crypto_drv: not found

=ERROR REPORT==== 13-Dec-2007::16:43:53 ===
** Generic server crypto_server terminating 
** Last message in was {'EXIT',#Port<0.102>,normal}
** When Server state == {#Port<0.102>,[]}
** Reason for termination == 
** {port_died,normal}
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-12-14 00:52:28 UTC
I just warned you that the bugzilla product was NOT for applications, but for problems with the bugs.g.o site ONLY. Do NOT use it for application bugs - consider this to be a warning of abuse.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-12-14 06:43:09 UTC
emerge --info please. Also attach the complete emerge.log (bzip it if it's too large).
Comment 3 Wendall Cada 2007-12-14 20:00:35 UTC
Created attachment 138496 [details]
emerge --info
Comment 4 Wendall Cada 2007-12-14 20:10:11 UTC
The following thread talks about a similar issue with the same library, and the proposed fix (no patch):

http://www.erlang.org/pipermail/erlang-patches/2007-November/000196.html
Comment 5 Wendall Cada 2007-12-14 20:15:19 UTC
Here is the debian bug and suggested fix:
http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/2f574caa613761be/82c2e5c5034e65bd%2382c2e5c5034e65bd
I'll attach the full build log.
Comment 6 Wendall Cada 2007-12-14 20:51:42 UTC
There is only a QA notice about issue with PIC in my emerge log. I'm attaching the scanelf-textrel log as well.

From my build log:
 * 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.                                                                                                        
 *  For more information, see http://hardened.gentoo.org/pic-fix-guide.xml                                                      
 *  Please include this file in your report:                                                                                    
 *  /var/tmp/portage/dev-lang/erlang-11.2.5/temp/scanelf-textrel.log                                                            
 * TEXTREL usr/lib/erlang/lib/crypto-1.5.1.1/priv/lib/crypto_drv.so 

Here is my qfile/scanelf output for the problem library:
# qfile `scanelf -qylpF%F#t /usr/lib/erlang/lib/crypto-1.5.1.1/priv/lib/crypto_drv.so`
dev-lang/erlang (/usr/lib/erlang/lib/crypto-1.5.1.1/priv/lib/crypto_drv.so)
Comment 7 Wendall Cada 2007-12-14 20:53:54 UTC
Created attachment 138504 [details]
scanelf-textrel log
Comment 8 Wendall Cada 2007-12-14 21:03:38 UTC
Created attachment 138506 [details]
emerge log
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-12-14 21:07:56 UTC
Marking as dupe of Bug 200541
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-12-14 21:08:11 UTC

*** This bug has been marked as a duplicate of bug 200541 ***