Page MenuHome GnuPG

pcsc-wrapper crash
Closed, ResolvedPublic

Description

Release: 1.9.17

Environment

Fedora Core 4, pcsc-lite 1.2.0, gcc 4.0.0, pth 2.0.4

Description

When launching scdaemon, pcsc-wrapper crashes. See attachment for backtrace, console output and pcscd debug messages (taken while starting scdaemon while card inserted in my Omnikey Cardman 2020, which works ok with PCSC-lite and other applications).

How To Repeat

scdaemon --server -v --debug-allow-core-dump

Fix

Unknown

Event Timeline

skytta added a subscriber: skytta.

From: Ville =?ISO-8859-1?Q?Skytt=E4?= <ville.skytta@iki.fi>
To: bug-any@bugs.gnupg.org
Cc: wk@gnupg.org, gnupg-hackers@gnupg.org, gnats-admin@trithemius.gnupg.org
Subject: Re: gnupg/486
Date: Wed, 20 Jul 2005 18:53:47 +0300

--=-B/K2GqDYcTfudjfiVzQm
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Wed, 2005-07-20 at 17:25 +0200, wk@gnupg.org wrote:

Please send a full backtrace.

See attachment.

I have no cardman 2020 here
for testing and thus I need all information available. If
you can get it to crash with a 2010, please tell so and I
will try.

I don't have a 2010 to test with.

--=-B/K2GqDYcTfudjfiVzQm
Content-Disposition: attachment; filename=pcsc-wrapper-bt-full.txt
Content-Type: text/plain; name=pcsc-wrapper-bt-full.txt; charset=utf-8
Content-Transfer-Encoding: quoted-printable

GNU gdb Red Hat Linux (6.3.0.0-1.21rh)
Copyright 2004 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 conditi=
ons.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for detail=
s.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread=
_db library "/lib/libthread_db.so.1".

Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0xc11000
Core was generated by `pcsc-wrapper -- 1 libpcsclite.so.0'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libpcsclite.so.0...done.
Loaded symbols for /usr/lib/libpcsclite.so.0
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
#0 0x00c11402 in kernel_vsyscall ()
(gdb) t=08=1B[Kbt full
#0 0x00c11402 in
kernel_vsyscall ()
No symbol table info available.
#1 0x004eb1f8 in raise () from /lib/libc.so.6
No symbol table info available.
#2 0x004ec948 in abort () from /lib/libc.so.6
No symbol table info available.
#3 0x0052052a in __libc_message () from /lib/libc.so.6
No symbol table info available.
#4 0x00526424 in _int_free () from /lib/libc.so.6
No symbol table info available.
#5 0x0052695f in free () from /lib/libc.so.6
No symbol table info available.
#6 0x08049695 in main (argc=3D) at pcsc-wrapper.c:816
argbuffer =3D '\0' <repeats 280 times>, "=CBKK\000\000\000\000\000\000\0=
00\000\000=B4=FFK\000\030R\200=BF\000E=EF=B7=B8N\200=BF\036=ACJ\000\000=B0=
^\000=DC\033\000\000\003\000\000\0002\000\000\000=FF=FF=FF=FF", '\0' <rep=
eats 33 times>, "0L\000\000p^\000=E9j^\000=E9j^\000\000\000\000\000\005\0=
00\000\000\000p^\000\000=B0^\000h=A0^\000=DC=CB^\000\000@\022\000\003\000=
\000\000u=ADJ\000D\216K\000\2328K\000\2369M\000=C0UJ\000=B4=FFK\000\000\0=
03L\0004U\200=BF|Q\200=BF=3D=D2J\000=E9\205\004\b\020O\200=BF=B4=FFK\000\=
001\000\000\000=FFD=EF=B7 O\200=BF@\217K\000\000\000L\000\017\000\000\000=

B4=FFK\000d"...

last_argc =3D (gdb)=20
--=-B/K2GqDYcTfudjfiVzQm--

Please send a full backtrace. I have no cardman 2020 here
for testing and thus I need all information available. If
you can get it to crash with a 2010, please tell so and I
will try.

Most likely fixed:

2005-09-09 Werner Koch <wk@g10code.com>

  • pcsc-wrapper.c (main): Removed bogus free.