bugGNU Octave - Bugs: bug #55432, clang w/ ASAN:...

 
 

bug #55432: clang w/ ASAN: stack-use-after-scope (starting octave)

Submitted by:  Dmitri A. Sergatskov <dasergatskov>
Submitted on:  Thu 10 Jan 2019 12:00:54 AM UTC  
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Invalid Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  5.0.1 Operating 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)

Tue 22 Jan 2019 11:58:01 PM UTC, comment #9:

Great. Closing report as Invalid.

Rik <rik5>
Project Administrator
Tue 22 Jan 2019 11:47:17 PM UTC, comment #8:

I compile with clang w/o asan all the time -- no problem.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Tue 22 Jan 2019 11:43:40 PM UTC, comment #7:

In the output, I see

and indeed the problem is occurring downstream from an Octave unwind_protect block. My guess is that this is just a false positive.

If you compile without ASAN, can you start Octave? Does it pass 'make check'?

If yes, then I think we can close this report.

Rik <rik5>
Project Administrator
Tue 22 Jan 2019 10:52:29 PM UTC, comment #6:

OK, I managed to downgrade to clang-6.0.1
The problem is still there:

hg id
f6730533820e (stable) tip

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Tue 22 Jan 2019 09:44:55 PM UTC, comment #5:

I will try, though it is kind of involved -- Fedora provide runtime for older clangs, but not the compiler...

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Tue 22 Jan 2019 09:39:53 PM UTC, comment #4:

Can you go forward or backwards a revision in clang to see if it an upstream issue? If there is no trouble with a clang 6.X compilation then I think we can say it is a problem with the clang 7.0.1 release.

Rik <rik5>
Project Administrator
Tue 22 Jan 2019 09:34:16 PM UTC, comment #3:

Yes it is still a problem that I see. I cannot run
octave compiled with clang with ASAN.

It is quite possible it is a false positive.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Tue 22 Jan 2019 06:35:20 PM UTC, comment #2:

Is this still an issue?

Is it really just a false positive with clang 7.0.1 and ASAN?

Rik <rik5>
Project Administrator
Thu 10 Jan 2019 01:51:54 AM UTC, comment #1:

To determine whether this is just a clang issue, can you go backwards or forwards a version?

Rik <rik5>
Project Administrator
Thu 10 Jan 2019 12:00:54 AM UTC, original submission:

I tried to compile octave with clang and asan.
I cannot start the compiled binary:

May be it is an issue with clang (7.0.1) -- the detect_stack_use_after_scope=0 should suppress this diagnostic
but it does not.

But may be there is something in
../libinterp/corefcn/symscope.h:1007:11

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by dasergatskov (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-22 rik5 StatusNeed Info => Invalid
        Open/ClosedOpen => Closed
    2019-01-22 rik5 StatusNone => Need Info

    Back to the top


    Powered by Savane 3.4