NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/60653 (posix_spawn(3) causes incorrect stack base information)



The following reply was made to PR kern/60653; it has been noted by GNATS.

From: Thomas Klausner <wiz%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/60653 (posix_spawn(3) causes incorrect stack base
 information)
Date: Thu, 27 Aug 2026 11:23:17 +0200

 Thank you, with the patch the output looks as it should be:
 
 parent pid=19700
       real stack top (ps_strings) = 0x7f7fff6d3000
       AT_STACKBASE                = 0x7f7fff6d3000
       p_stackbase (getcontext)    = 0x7f7fff6d3000
       pthread main stack          = 0x7f7fff2d3000 .. 0x7f7fff6d3000
 
 
 --- fork + execve ---
 fork+exec pid=19686
       real stack top (ps_strings) = 0x7f7fff470000
       AT_STACKBASE                = 0x7f7fff470000
       p_stackbase (getcontext)    = 0x7f7fff470000
       pthread main stack          = 0x7f7fff070000 .. 0x7f7fff470000
 
 fork+exec pid=17914
       real stack top (ps_strings) = 0x7f7fff4d2000
       AT_STACKBASE                = 0x7f7fff4d2000
       p_stackbase (getcontext)    = 0x7f7fff4d2000
       pthread main stack          = 0x7f7fff0d2000 .. 0x7f7fff4d2000
 
 
 --- posix_spawn ---
 posix_spawn pid=20477
       real stack top (ps_strings) = 0x7f7fff602000
       AT_STACKBASE                = 0x7f7fff602000
       p_stackbase (getcontext)    = 0x7f7fff602000
       pthread main stack          = 0x7f7fff202000 .. 0x7f7fff602000
 
 posix_spawn pid=19487
       real stack top (ps_strings) = 0x7f7fffa07000
       AT_STACKBASE                = 0x7f7fffa07000
       p_stackbase (getcontext)    = 0x7f7fffa07000
       pthread main stack          = 0x7f7fff607000 .. 0x7f7fffa07000
 
 
 parent after spawn pid=19700
       real stack top (ps_strings) = 0x7f7fff6d3000
       AT_STACKBASE                = 0x7f7fff6d3000
       p_stackbase (getcontext)    = 0x7f7fff6d3000
       pthread main stack          = 0x7f7fff2d3000 .. 0x7f7fff6d3000
 
 
  Thomas
 



Home | Main Index | Thread Index | Old Index