segfault with gnupg 1.4.6

Ying-Hung Chen ying at yingternet.com
Sat Feb 3 09:15:15 CET 2007


Hi all,

I am getting segfaults when executing gpg --gen-key (and other
operations like --sign)

my system is running linux kernel 2.6.16.x, gcc 4.1.1 and glibc 2.3.6.

seems like it segfaults when calling tty_printf, can you help?

Thanks,

Here is the backtrace

(gdb) run --gen-key
Starting program: /mnt/hdb/ying/gnupg-1.4.6/g10/gpg --gen-key
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xffffe000
gpg (GnuPG) 1.4.6; 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.
0xb7d90bb6 in ctermid () from /lib/libc.so.6
(gdb) bt
#0  0xb7d90bb6 in ctermid () from /lib/libc.so.6
#1  0x080dab5c in tty_get_ttyname () at ttyio.c:103
#2  0x080dabf8 in init_ttyfp () at ttyio.c:160
#3  0x080daec5 in tty_printf (
    fmt=0x8100448 "Please select what kind of key you want:\n") at
ttyio.c:231
#4  0x080a8fc9 in ask_algo (addmode=0, r_usage=0xbfe22a24) at keygen.c:1433
#5  0x080aeaee in generate_keypair (fname=0x0, card_serialno=0x0,
    backup_encryption_dir=0x0) at keygen.c:2630
#6  0x080513a8 in main (argc=Cannot access memory at address 0x0
) at gpg.c:3530
(gdb)





More information about the Gnupg-devel mailing list