bugGNU Octave - Bugs: bug #51552, AddressSanitizer:...

 
 

bug #51552: AddressSanitizer: stack-use-after-scope error in Array.h

Submitted by:  Dmitri A. Sergatskov <dasergatskov>
Submitted on:  Mon 24 Jul 2017 01:53:56 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: Need InfoAssigned to: None
Originator Name: Dmitri A. SergatskovOpen/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Mon 24 Jul 2017 08:43:52 PM UTC, comment #7:

For the moment, I'm going to close this report. There is enough other stuff going on that needs attention. I've got another project that I could use your help on. I'll file a different bug report about that.

Rik <rik5>
Project Administrator
Mon 24 Jul 2017 07:01:53 PM UTC, comment #6:

To get a "second opinion" I recompiled with clang-4.0.0

0fb64e83f8b3 tip @

The only problem I see is

So perhaps we should declare those errors false positives, at least for now.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Mon 24 Jul 2017 05:32:14 AM UTC, comment #5:

Looks the same.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Mon 24 Jul 2017 05:05:06 AM UTC, comment #4:

This may be undoing an optimization, but try the attached 51552.diff and see if it helps.

(file #41311)

Rik <rik5>
Project Administrator
Mon 24 Jul 2017 04:33:47 AM UTC, comment #3:

Here is some other tests resultin in the same error:

Dmitri A. Sergatskov <dasergatskov>
Mon 24 Jul 2017 04:21:27 AM UTC, comment #2:
Dmitri A. Sergatskov <dasergatskov>
Mon 24 Jul 2017 04:16:43 AM UTC, comment #1:

Can you try starting Octave and just execute this one command?

I'm trying to figure out whether it is something to do with exception processing.

If that segfaults (I hope it will) then does the following work?

Rik <rik5>
Project Administrator
Mon 24 Jul 2017 01:53:56 AM UTC, original submission:

When built with "enable-address-sanitizer-flags" octave crashed
in multiple tests with

error. (Array.h is attached)

E.g. running
(full log is attached).

One needs to have at least gcc 7 to get stack-use-after-scope diagnostic. See

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #41311:  51552.diff added by rik5 (446B - text/x-patch)
file #41309:  Array.h added by dasergatskov (27KiB - text/x-chdr)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by dasergatskov (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 24 Jul 2017 08:43:52 PM UTCrik5Open/ClosedOpen=>Closed
    Mon 24 Jul 2017 05:05:06 AM UTCrik5Attached File-=>Added 51552.diff, #41311
    Mon 24 Jul 2017 04:16:43 AM UTCrik5StatusNone=>Need Info
    Mon 24 Jul 2017 01:53:56 AM UTCdasergatskovAttached File-=>Added Array.h, #41309
      Attached File-=>Added octave_stack-use-after-scope_log.txt, #41310

    Back to the top


    Powered by Savane 3.1-cleanup1