On 21/09/06, Tilman Linneweh <[EMAIL PROTECTED]> wrote:
Hello list,

Hello human,

I have a report from someone, who is trying to use pcscd with libccid
on FreeBSD4.

Backtrace is like this:

(gdb) bt full
#0  0x805b483 in MSGFunctionDemarshall (msgStruct=0xbfadc790,
dwContextIndex=0)
     at winscard_svc.c:256
         rv = 0
         esStr = (establish_struct *) 0xbfadc7b8
         reStr = (release_struct *) 0x0
         coStr = (connect_struct *) 0x0
         rcStr = (reconnect_struct *) 0x0
         diStr = (disconnect_struct *) 0x0
         beStr = (begin_struct *) 0x0
         caStr = (cancel_struct *) 0x0
         enStr = (end_struct *) 0x0
         stStr = (status_struct *) 0x0
         trStr = (transmit_struct *) 0x0
         ctStr = (control_struct *) 0x0
         gsStr = (getset_struct *) 0x0
#1  0x805b272 in ContextThread (dwIndex=0x0) at winscard_svc.c:157
         rv = 1
         msgStruct = {mtype = 241, user_id = 0, group_id = 0, command
= 1,
   dummy = 0, date = 1158829978, key = '\000' <repeats 15 times>,
   data = "\003", '\000' <repeats 2046 times>}
         dwContextIndex = 0
#2  0x280a1334 in _thread_start () from /usr/lib/libc_r.so.4

Anyone got an idea where to debug this further? Where does the
strange data
value might come from?

I do not see what went wrong from the trace you give.

It looks like the code crashed on line 256:
esStr->rv = SCardEstablishContext(esStr->dwScope, 0, 0,
           &esStr->phContext);

But I don't know which dereferencing is wrong.
esStr have a not so stupid value: 0xbfadc7b8

can you try (in gdb):
print esStr->dwScope
print esStr->rv
print esStr->phContext
print &esStr->phContext
to see what crashes?

Thanks

--
 Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to