This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients Cao Hongfu, eryksun, izbyshev, paul.moore, steve.dower, tim.golden, vstinner, zach.ware
Date 2018-12-06.02:53:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1544064804.07.0.788709270274.issue35418@psf.upfronthosting.co.za>
In-reply-to
Content
> I don't see how PyNamespace_New() can call LookupPrivilegeValueA()

For the record, in the 3.7.1 release build, `PyNamespace_New + d4` is in enable_symlink (Modules/posixmodule.c), which gets called when the nt (aka posix) module gets initialized. It's the return address for the LookupPrivilegeValueA call:

    0:000> u (python37!PyNamespace_New + d4 - 6) l2
    python37!enable_symlink+0x42:
    00007ffd`e4b9a356 
        ff153ccd1500    call    qword ptr 
        [python37!_imp_LookupPrivilegeValueA (00007ffd`e4cf7098)]
    00007ffd`e4b9a35c 
        85c0            test    eax,eax

It's just that Cao didn't have the python37.pdb symbol file available in Process Explorer.
History
Date User Action Args
2018-12-06 02:53:24eryksunsetrecipients: + eryksun, paul.moore, vstinner, tim.golden, zach.ware, steve.dower, izbyshev, Cao Hongfu
2018-12-06 02:53:24eryksunsetmessageid: <1544064804.07.0.788709270274.issue35418@psf.upfronthosting.co.za>
2018-12-06 02:53:24eryksunlinkissue35418 messages
2018-12-06 02:53:23eryksuncreate