Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 205142 - dev-libs/openssl genrsa Segmentation fault
Summary: dev-libs/openssl genrsa Segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-10 05:14 UTC by Cory Hardman
Modified: 2010-01-11 00:31 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cory Hardman 2008-01-10 05:14:48 UTC
Emerge apache-2.2.6-r7 on x86 linux box fails. With general use flags: "ssl apache2 php mysql"

Reproducible: Always

Steps to Reproduce:
1.emerge =www-server/apache-2.2.6-r7
Actual Results:  
>>> Original instance of package unmerged safely.
 *
 * Generating self-signed test certificate in /etc/apache2/ssl ...
 *
 * ERROR: www-servers/apache-2.2.6-r7 failed.
 * Call stack:
 *                ebuild.sh, line 1682:  Called qa_call 'pkg_postinst'
 *                ebuild.sh, line   44:  Called pkg_postinst
 *   apache-2.2.6-r7.ebuild, line  100:  Called apache-2_pkg_postinst
 *          apache-2.eclass, line  541:  Called die
 * The specific snippet of code:
 *              yes "" 2>/dev/null | \
 *                      "${ROOT}"/usr/sbin/gentestcrt.sh >/dev/null 2>&1 || \
 *                      die "gentestcrt.sh failed"
 *  The die message:
 *   gentestcrt.sh failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/www-servers/apache-2.2.6-r7/temp/build.log'.
 *
!!! FAILED postinst: 1

 * Messages for package www-servers/apache-2.2.6-r7:

 *
 * Selected default MPM: prefork
 *
 * Please note that you need SysV IPC support in your kernel.
 * Make sure CONFIG_SYSVIPC=y is set.
 *
 *
 * ERROR: www-servers/apache-2.2.6-r7 failed.
 * Call stack:
 *                ebuild.sh, line 1682:  Called qa_call 'pkg_postinst'
 *                ebuild.sh, line   44:  Called pkg_postinst
 *   apache-2.2.6-r7.ebuild, line  100:  Called apache-2_pkg_postinst
 *          apache-2.eclass, line  541:  Called die
 * The specific snippet of code:
 *              yes "" 2>/dev/null | \
 *                      "${ROOT}"/usr/sbin/gentestcrt.sh >/dev/null 2>&1 || \
 *                      die "gentestcrt.sh failed"
 *  The die message:
 *   gentestcrt.sh failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/www-servers/apache-2.2.6-r7/temp/build.log'.
 *


Expected Results:  
Installed
Comment 1 Cory Hardman 2008-01-11 12:55:41 UTC
(In reply to comment #0)
> Emerge apache-2.2.6-r7 on x86 linux box fails. With general use flags: "ssl
> apache2 php mysql"
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1.emerge =www-server/apache-2.2.6-r7
> Actual Results:  
> >>> Original instance of package unmerged safely.
>  *
>  * Generating self-signed test certificate in /etc/apache2/ssl ...
>  *
>  * ERROR: www-servers/apache-2.2.6-r7 failed.
>  * Call stack:
>  *                ebuild.sh, line 1682:  Called qa_call 'pkg_postinst'
>  *                ebuild.sh, line   44:  Called pkg_postinst
>  *   apache-2.2.6-r7.ebuild, line  100:  Called apache-2_pkg_postinst
>  *          apache-2.eclass, line  541:  Called die
>  * The specific snippet of code:
>  *              yes "" 2>/dev/null | \
>  *                      "${ROOT}"/usr/sbin/gentestcrt.sh >/dev/null 2>&1 || \
>  *                      die "gentestcrt.sh failed"
>  *  The die message:
>  *   gentestcrt.sh failed
>  *
>  * If you need support, post the topmost build error, and the call stack if
> relevant.
>  * A complete build log is located at
> '/var/tmp/portage/www-servers/apache-2.2.6-r7/temp/build.log'.
>  *
> !!! FAILED postinst: 1
> 
>  * Messages for package www-servers/apache-2.2.6-r7:
> 
>  *
>  * Selected default MPM: prefork
>  *
>  * Please note that you need SysV IPC support in your kernel.
>  * Make sure CONFIG_SYSVIPC=y is set.
>  *
>  *
>  * ERROR: www-servers/apache-2.2.6-r7 failed.
>  * Call stack:
>  *                ebuild.sh, line 1682:  Called qa_call 'pkg_postinst'
>  *                ebuild.sh, line   44:  Called pkg_postinst
>  *   apache-2.2.6-r7.ebuild, line  100:  Called apache-2_pkg_postinst
>  *          apache-2.eclass, line  541:  Called die
>  * The specific snippet of code:
>  *              yes "" 2>/dev/null | \
>  *                      "${ROOT}"/usr/sbin/gentestcrt.sh >/dev/null 2>&1 || \
>  *                      die "gentestcrt.sh failed"
>  *  The die message:
>  *   gentestcrt.sh failed
>  *
>  * If you need support, post the topmost build error, and the call stack if
> relevant.
>  * A complete build log is located at
> '/var/tmp/portage/www-servers/apache-2.2.6-r7/temp/build.log'.
>  *
> 
> 
> Expected Results:  
> Installed
> 

If you compile apache with use="-ssl" Apache will compile.  However we need to figure out why we can not have ssl support with apache.
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2008-01-12 18:25:48 UTC
works for me ... the actual output of gentestcert.sh would be useful
Comment 3 Cory Hardman 2008-01-12 22:33:58 UTC
(In reply to comment #2)
> works for me ... the actual output of gentestcert.sh would be useful
> 

The output of gentestcert.sh:
maketestcrt -- Create self-signed test certificate
(C) 2001 Jean-Michel Dault <jmdault@mandrakesoft.com> and Mandrakesoft
Based on cca.sh script by Ralf S. Engelschall



Will create server.key and server.crt in /root/gentoo-apache-2.2.6-r7/scripts

INITIALIZATION

Generating custom Certificate Authority (CA)
______________________________________________________________________

STEP 1: Generating RSA private key for CA (1024 bit)
./gentestcrt.sh: line 82:  9766 Segmentation fault      $openssl genrsa -rand $randfiles -out ca.key 1024
cca:Error: Failed to generate RSA private key
Comment 4 Benedikt Böhm (RETIRED) gentoo-dev 2008-01-27 18:39:16 UTC
as suggested on irc this should be redirected to the openssl folks, please reopen if you haven't done so, and i will change this bug accordingly
Comment 5 Cory Hardman 2008-01-28 03:25:52 UTC
Reopened
Comment 6 SpanKY gentoo-dev 2010-01-11 00:31:26 UTC
re-open if latest openssl still doesnt work.  if it doesnt, then you need to post more info as well:
 - emerge --info
 - exact openssl command run
 - backtrace would be nice: http://www.gentoo.org/doc/en/bugzilla-howto.xml