[personal profile] hartmans
I recently diagnosed a problem in Debian's pam-p11 package. This package allegedly permits logging into a computer using a smart card or USB security token containing an ssh key. If you know the PIN and have the token, then your login attempt is authorized against the ssh authorized keys file. This seems like a great way to permit console logins as root to machines without having a shared password. Unfortunately, the package didn't work very well for me. It worked once, then all future attempts to use it segfaulted. I'm familiar with how PAM works. I understand the basic ideas behind PKCS11 (the API used for this type of smart card), but was completely unfamiliar with this particular PAM module and the PKCS11 library it used. The segfault was in an area of code I didn't even expect that this PAM module would ever call. Back in 1994, that would have been a painful slog. Gdb has improved significantly since then, and I'd really like to thank all the people over the years who made that possible. I was able to isolate the problem in just a couple of hours of debugging. Here are some of the cool features I used:
  • "target record-full" which allows you to track what's going on so you can go backwards and potentially bisect where in a running program something goes wrong. It's not perfect; it seems to have trouble with memset and a few other functions, but it's really good.
  • Hardware watch points. Once you know what memory is getting clobbered, have the hardware report all changes so you can see who's responsible.
  • Hey, wait, what? I really wish I had placed a breakpoint back there. With "target record-full" and "reverse-continue," you can. Set the breakpoint and then reverse continue, and time runs backwards until your breakpoint gets hit.
  • I didn't need it for this session, but "set follow-fork-mode" is very handy for certain applications. There's even a way to debug both the parent and child of a fork at the same time, although I always have to go look up the syntax. It seems like it ought to be "set follow-fork-mode both," and there was once a debugger that used that syntax, but Gdb uses different syntax for the same concept.
Anyway, with just a couple of hours and no instrumentation of the code, I managed to track down how a bunch of structures were being freed as an unexpected side effect of one of the function calls. Neither I nor the author of the pam-p11 module expected that (although it is documented and does make sense in retrospect). Good tools make life easier.

RR would make it even better for you

Date: 2017-01-23 10:00 pm (UTC)
From: (Anonymous)
Try rr, it makes reverse debugging faster, and debugging multiple processes easier than set follow-fork/exec-mode.

Purchase cheap sldnfl ctrate no remedy

Date: 2017-04-27 02:04 am (UTC)
From: (Anonymous)
clilly icos viagra tablets
[url=http://viagra-withoutdoctor.com]viagra without a doctor prescription
[/url] mixing viagra viagra
viagra without a doctor prescription
(http://viagra-withoutdoctor.com) - viagra from canada no prescription help
viagra coupon free trial valid xhtml

Order sleazy sldnfl no prescription

Date: 2017-05-05 07:29 pm (UTC)
From: (Anonymous)
amlodipine cialis interact
[url=http://cialiswithoutdoctor.org]cialis without a doctor prescription
[/url] viagra for women side effects find all posts by
cialis without a doctor prescription usa
(http://cialiswithoutdoctor.org) - viagra spam filter
viagra without a prescription

The Most Effective Sleep Apnea Tips And Tricks

Date: 2017-05-13 09:22 am (UTC)
From: (Anonymous)
[url=https://www.viagrasansordonnancefr.com/]viagrasansordonnancefr.com[/url] viagrasansordonnancefr sance ordonance

qpid network

Date: 2017-05-27 01:48 am (UTC)
From: (Anonymous)
faith based law of attraction

as we speak, a lot of people learning about the loa. three years or so ago, this had been recorded approach, inside info,secrets despite the fact that there are numerous features information that's mentions it. considering the loa training seminars taking a. loa might seem like New theory and also modern age guideline nevertheless, you, It is called long time ago. the scriptures educates on your loa. The bible possibly supports the key that makes it possible for us to publish an life of abundance employing the law of attraction.

identify Matthew 21:22 part with somebody and you'll find the secret this could make over reality. It is regarded as area interior holy bible that a majority of informs us what [url=http://www.flexoffers.com/affiliate-programs/qpid-network-affiliate-program/]qpid network[/url] the ultra-modern loa found itself indicating to us. for our personal reference, we will be having a debate about master billy variation. one particular review most typically associated with Matw 21:22 was applied by the 20th Century loa tinting film termed the. the actual key provided [url=http://qpid-network-app.soft112.com/]qpid network[/url] beginner good reputation the review, constructive progress.

By looking at the Matthew 21:22, this kind of tells you, "And as much as possible, in any way ye would call across prayer, thinking, Ye will, no doubt receive, of course, We can observe that the loa is without question real honest truth with. finding it article with scriptures seems that law of attraction without a doubt lately been at work as the again promises concerning this. we should ask then presume assuming want something. Next damage, we could receive what we sought after.

besides the somebody, Buddha's content insanely produce showed the loa. Buddha often available the truth and we can't doubtfulness or even words. Buddha once announced we are exactly the best views sometimes make our service. [url=https://www.facebook.com/pages/Qpid-Network/285744041497098]qpid network[/url] what's more that experts claim, Buddha additionally announced the mind is all. If all of my minds as well as,while worry about determines everyday life. and then, the result is that our the reality is our outward exhibition for the reason we are definitely the one operating our your memory and thus brain.

do you enjoy immigrating to actually north america by way of residence sponsorship opportunities? what's Canadian smart mastercard facts? found Canadian immigration lawyers are prompted to help you know a simple.

why is it important contact a qualified motorcycle lock up legal professional right this moment, in the case of a severe off road bike chance, In carolina or elsewhere within the.

Profile

Sam Hartman

October 2025

S M T W T F S
   1234
567891011
12131415161718
192021222324 25
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 29th, 2025 03:05 am
Powered by Dreamwidth Studios