NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/42435: netpgpkeys(1) segfaults



>Number:         42435
>Category:       bin
>Synopsis:       netpgpkeys(1) segfaults
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 10 12:20:01 +0000 2009
>Originator:     Jukka Ruohonen
>Release:        NetBSD 5.99.21
>Organization:
-
>Environment:
Architecture: i386
Machine: i386

>Description:

$ netpgpkeys --export-key
Memory fault

>How-To-Repeat:

$ netpgpkeys --export-key
Memory fault

$ ktruss netpgpkeys --export-key

  [...]

  1202      1 netpgpkeys open("/home/jruoho/.gnupg/pubring.gpg", 0, 0x1) = 3
  1202      1 netpgpkeys __fstat50(0x3, 0xbf97a850) = 0
  1202      1 netpgpkeys mmap(0, 0x4b30, 0x1, 0x2, 0x3, 0, 0, 0) =
  0xb7ff1000
  1202      1 netpgpkeys close(0x3)                = 0
  1202      1 netpgpkeys munmap(0xb7ff1000, 0x4b30) = 0
  1202      1 netpgpkeys close(0x3)                Err#9 EBADF
  1202      1 netpgpkeys open("/home/jruoho/.gnupg/secring.gpg", 0, 0x1) = 3
  1202      1 netpgpkeys __fstat50(0x3, 0xbf97a850) = 0
  1202      1 netpgpkeys mmap(0, 0x1571, 0x1, 0x2, 0x3, 0, 0, 0) =
  0xb7ff4000
  1202      1 netpgpkeys close(0x3)                = 0
  1202      1 netpgpkeys munmap(0xb7ff4000, 0x1571) = 0
  1202      1 netpgpkeys close(0x3)                Err#9 EBADF
  1202      1 netpgpkeys SIGSEGV SIG_DFL

$ netpgpkeys --coredumps --export-key
netpgp: warning: core dumps enabled
Memory fault (core dumped) 

(gdb) bt
#0  0xb6db7cb0 in strlen () from /usr/lib/libc.so.12
#1  0xb6f9d908 in __ops_getkeybyname () from /usr/lib/libnetpgp.so.2
#2  0xb6f85b24 in netpgp_export_key () from /usr/lib/libnetpgp.so.2
#3  0x08048e71 in netpgp_cmd ()
#4  0x080492b5 in main ()

>Fix:

Not yet further investigated.



Home | Main Index | Thread Index | Old Index