buglibsigsegv - Bugs: bug #59714, SV_STACK_DIRECTION doesn't work

 
 

bug #59714: SV_STACK_DIRECTION doesn't work

Submitter:  Andreas Schwab <schwab>
Submitted:  Thu 17 Dec 2020 09:31:04 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fix Released
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 11 Jan 2021 08:00:35 PM UTC, comment #1: 

Thanks for the report.

I can reproduce the problem with GCC 10.2.0 and option -O2, on x86_64.

Fixed through https://git.savannah.gnu.org/gitweb/?p=libsigsegv.git;a=commitdiff;h=bd9eb3fdc14ad88c98bb947dd4c11f1c926b2d0e

Bruno Haible <haible>
Group administrator
Thu 17 Dec 2020 09:31:04 PM UTC, original submission:  

With modern compilers, get_stack_direction is completely non-functional.  The compiler will inline the recursive call and allocate the two instances of the local variable dummy at arbitrary addresses unrelated to stack direction.

Andreas Schwab <schwab>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by schwab (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-01-04 haible StatusFixed Fix Released
    2021-01-11 haible StatusNone Fixed
        Assigned toNone haible
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code