Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 147115

Summary: glibc SEGV on ctermid(NULL) was: app-crypt/gnupg-1.4.5 segmentation fault when run
Product: Gentoo Linux Reporter: tla <tla>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: critical CC: alonbl
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://bugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=380504
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: gdb backtrace of gpg --gen-key
gdb trace - reformatted

Description tla 2006-09-10 16:00:36 UTC
User-Agent:       Opera/9.01 (Windows NT 5.1; U; en)
Build Identifier: 

emerge gnupg installs "app-crypt/gnupg-1.4.5" AND "app-crypt/gnupg-1.9.20-r3".  
Is it normal to install both?

compiles with no apparent errors.

when running "gpg --gen-key" error is:
gpg (GnuPG) 1.4.5; Copyright (C) 2006 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.


gpg: Segmentation fault caught ... exiting
Segmentation fault

Some other commands work ok - including gpg without the --gen-key option.
Same results for non-priv and priv (root) user.


Reproducible: Always

Steps to Reproduce:
1. $ gpg --gen-key
2.
3.

Actual Results:  
created: ~/.gnupg/, ~/.gnupg/{gpg.conf,pubring.gpg,secring.gpg}
gpg: Segmentation fault caught ... exiting
Segmentation fault

Expected Results:  
generate key pair for the user.

$ emerge --info
Portage 2.1.1 (default-linux/x86/no-nptl, gcc-4.1.1, glibc-2.3.6-r4, 2.6.17-
gentoo-r4ipt i686)
=================================================================
System uname: 2.6.17-gentoo-r4ipt i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.4
Last Sync: Sun, 10 Sep 2006 09:50:01 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/
terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parrallel-fetch sandbox 
sfperms strict"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/
distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cli crypt cups 
dlloader dri eds elibc_glibc emboss encode foomaticdb fortran gdbm gif gnome 
gpm gstreamer gtk gtk2 imlib input_devices_keyboard input_devices_mouse ipv6 
isdnlog jpeg kde kernel_linux libg++ libwww mad mikmod motif mp3 mpeg mysql 
ncurses nls ogg opengl oss pam pcre pdflib perl png pppd python qt3 qt4 
quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-
fonts type1-fonts userland_GNU video_cards_fbdev video_cards_i810 
video_cards_vesa vorbis xml xmms xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, 
PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-10 16:02:29 UTC
Please, reopen with a backtrace:

http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 2 tla 2006-09-10 16:44:47 UTC
Created attachment 96625 [details]
gdb backtrace of gpg --gen-key
Comment 3 tla 2006-09-10 16:46:00 UTC
trace attached as requested.
Comment 4 tla 2006-09-11 00:21:57 UTC
Created attachment 96668 [details]
gdb trace - reformatted
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-22 06:30:10 UTC
Hello,

Can you please try to run the following program:

---

#include <stdio.h>

int main () {
        printf ("%s\n", ctermid (NULL));
        return 0;
}
Comment 6 tla 2006-09-22 09:22:48 UTC
(In reply to comment #5)
> Hello,
> 
> Can you please try to run the following program:
> 
> ---
> 
> #include <stdio.h>
> 
> int main () {
>         printf ("%s\n", ctermid (NULL));
>         return 0;
> }
> 

$ gcc test.c
$
$ ls -la a.out
-rwxr-xr-x 1 auser users 6377 Sep 22 17:19 a.out
$ ./a.out
Segmentation fault
$
Comment 7 tla 2006-09-22 10:10:13 UTC
(In reply to comment #5)

Is this a duplicate of:
 http://bugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=380504 ?

If so, when will the fixed version of glibc be out on gentoo?

thanks.
Comment 8 anarchy 2006-09-22 11:04:12 UTC
this is sctrictly a linux-threads issue those with i{5,6}86 should be using an nptl profile.
Comment 9 Alon Bar-Lev (RETIRED) gentoo-dev 2006-09-22 15:03:59 UTC
OK.
So it is not gnupg issue.
Can you please RESOLVE-INVALID or modify subject and CC Bug Wranglers?
Comment 10 SpanKY gentoo-dev 2006-09-22 15:37:08 UTC

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