| Summary: | segmentation fault inside glibc-2.3.6 triggered by gnupg-1.4.4 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | giovanni.bobbio |
| Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | crypto+disabled |
| Priority: | High | ||
| Version: | 2006.0 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
giovanni.bobbio
2006-07-20 02:50:30 UTC
Reopen with a backtrace... http://www.gentoo.org/proj/en/qa/backtraces.xml Added FEATURES="nostrip", changed CFLAGS to remove -O3 and add -ggdb.
Reemerged gnupg and glibc.
This is what gdb says:
kien ~ # gdb gpg
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) set args --gen-key
(gdb) run
Starting program: /usr/bin/gpg --gen-key
gpg (GnuPG) 1.4.4; 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.
Program received signal SIGSEGV, Segmentation fault.
ctermid (s=0x0) at ../sysdeps/posix/ctermid.c:35
35 ../sysdeps/posix/ctermid.c: No such file or directory.
in ../sysdeps/posix/ctermid.c
(gdb) quit
The program is running. Exit anyway? (y or n) y
Add keepwork to your features and redo the backtrace. With keepwork in FEATURES: kien ~ # gdb gpg GNU gdb 6.5 Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) set args --gen-key (gdb) run Starting program: /usr/bin/gpg --gen-key gpg (GnuPG) 1.4.4; 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. Program received signal SIGSEGV, Segmentation fault. ctermid (s=0x0) at ../sysdeps/posix/ctermid.c:35 35 return strcpy (s, "/dev/tty"); (gdb) could you include the full backtrace as well? gdb command 'bt' after you reach the point you are at so far. Program received signal SIGSEGV, Segmentation fault. ctermid (s=0x0) at ../sysdeps/posix/ctermid.c:35 35 return strcpy (s, "/dev/tty"); (gdb) bt #0 ctermid (s=0x0) at ../sysdeps/posix/ctermid.c:35 #1 0x080df59f in tty_get_ttyname () at ttyio.c:103 #2 0x080df666 in init_ttyfp () at ttyio.c:160 #3 0x080df746 in tty_printf (fmt=0xb7e0aaf1 "Per favore scegli che tipo di chiave vuoi:\n") at ttyio.c:231 #4 0x080a79f2 in ask_algo (addmode=0, r_usage=0xbfaa9f0c) at keygen.c:1433 #5 0x080aa0eb in generate_keypair (fname=0x0, card_serialno=0x0, backup_encryption_dir=0x0) at keygen.c:2630 #6 0x08050ca2 in main (argc=0, argv=0xbfaaa2cc) at gpg.c:3488 Any news? I'm stuck without gpg... It seems this bug has been dealt with in debian, see link. http://www.mail-archive.com/debian-glibc%40lists.debian.org/msg31283.html Can Gentoo implement the same solution? base-system: see the most recent comment from the user, indicating this link from debian: http://www.mail-archive.com/debian-glibc%40lists.debian.org/msg31283.html where the minimal testcase shows the failure is not in gnupg but inside glibc instead. *** This bug has been marked as a duplicate of 133095 *** |