octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #52118] randg: segfault with erroneous argumen


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #52118] randg: segfault with erroneous arguments
Date: Tue, 26 Sep 2017 06:21:03 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

URL:
  <http://savannah.gnu.org/bugs/?52118>

                 Summary: randg: segfault with erroneous arguments
                 Project: GNU Octave
            Submitted by: pantxo
            Submitted on: Tue 26 Sep 2017 10:21:01 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Segfault, Bus Error, etc.
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

The documentation for randg mentions the "A" argument but it is not mentioned
in the list of call forms. So far this is a documentation bug.

Now if you try to call randg as you would call other rand* functions, e.g.


a = randg (1,1e6);


You'll get either "out of memory or dimension too large for Octave's index
type" in Octave 4.2, or 


==7981== WARNING: AddressSanitizer failed to allocate 0x0012a05f2000 bytes
ASAN:SIGSEGV
=================================================================
==7981== ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc
0x7fb4cfa76beb sp 0x7fb4b3761830 bp 0x7fb4b3761a60 T1)
AddressSanitizer can not provide additional info.


with the current dev. and the address sanitizer enabled. For some reason I
can't get any useful backtrace.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52118>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]