Changes between Initial Version and Version 1 of Ticket #20283, comment 18


Ignore:
Timestamp:
Apr 6, 2018, 11:49:24 PM (12 months ago)
Author:
pospeselr
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20283, comment 18

    initial v1  
    11As mentioned by cypherpunks, the issue here only occurs on the main thread which you can verify with a little spelunking through the glibc source.  The relevant query APIs work expected on non-main threads since pthreads populates the required info in memory.
    22
    3 Verifying a patch now on TreeHerder that fixes this issue by reading the __libc_stack_end symbol (glibc sets this void* to the first stack frame during program init).  Solution suggested by mozilla's jld, and the folks in #jsapi (those paying attention at least) didn't seem offended at the idea of doing so for the main thread.
    4 
     3Verifying a patch now on TreeHerder that fixes this issue by reading the !__libc_stack_end symbol (glibc sets this void* to the first stack frame during program init).  Solution suggested by mozilla's jld, and the folks in #jsapi (those paying attention at least) didn't seem offended at the idea of doing so for the main thread.