[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42290] complex () with sparse inputs leads to
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #42290] complex () with sparse inputs leads to segfault. |
Date: |
Sun, 04 May 2014 22:28:49 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 |
URL:
<http://savannah.gnu.org/bugs/?42290>
Summary: complex () with sparse inputs leads to segfault.
Project: GNU Octave
Submitted by: rik5
Submitted on: Sun 04 May 2014 03:28:48 PM PDT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Crash
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
The sample code is
complex (sparse (-1), sparse (-1))
On versions 3.6.4 and 3.4.3 it also fails, but doesn't segfault. Instead it
issues the warning:
error: memory exhausted or requested size too large for range of Octave's
index type -- trying to return to prompt
The gdb backtrace is:
#0 0x00007ffff69833b7 in std::operator+<double> (__x=..., __y=...)
at /usr/include/c++/4.6/complex:323
#1 0x00007ffff6ee5c9c in Fcomplex (args=...) at corefcn/data.cc:3297
#2 0x00007ffff6cbd4ad in octave_builtin::do_multi_index_op (
this=0x7fffd8058920, nargout=0, args=..., lvalue_list=0x0)
at octave-value/ov-builtin.cc:132
#3 0x00007ffff6cbd154 in octave_builtin::subsref (this=0x7fffd8058920,
type=..., idx=..., nargout=0, lvalue_list=0x0)
at octave-value/ov-builtin.cc:65
#4 0x00007ffff6cbd042 in octave_builtin::subsref (this=0x7fffd8058920,
type=..., idx=..., nargout=0) at octave-value/ov-builtin.cc:47
#5 0x00007ffff6daeaf0 in octave_value::subsref (this=0x7fffdd41a8d0,
type=...,
idx=..., nargout=0) at octave-value/ov.cc:1271
#6 0x00007ffff6daeb98 in octave_value::subsref (this=0x7fffdd41a8d0,
type=...,
idx=..., nargout=0, lvalue_list=0x0) at octave-value/ov.cc:1282
#7 0x00007ffff6e1d7d2 in tree_index_expression::rvalue (this=0x7fffd8460c90,
nargout=0, lvalue_list=0x0) at parse-tree/pt-idx.cc:437
#8 0x00007ffff6e1cd77 in tree_index_expression::rvalue (this=0x7fffd8460c90,
nargout=0) at parse-tree/pt-idx.cc:284
#9 0x00007ffff6e1dbfc in tree_index_expression::rvalue1 (this=0x7fffd8460c90,
nargout=0) at parse-tree/pt-idx.cc:466
#10 0x00007ffff6e16622 in tree_evaluator::visit_statement
(this=0x7ffff78f80d8,
stmt=...) at parse-tree/pt-eval.cc:753
#11 0x00007ffff6e37574 in tree_statement::accept (this=0x7fffd8460e40,
tw=...)
at parse-tree/pt-stmt.cc:178
#12 0x00007ffff6e1688e in tree_evaluator::visit_statement_list (
this=0x7ffff78f80d8, lst=...) at parse-tree/pt-eval.cc:803
#13 0x00007ffff6e37b94 in tree_statement_list::accept (this=0x7fffd81a0f20,
tw=...) at parse-tree/pt-stmt.cc:291
#14 0x00007ffff7242815 in main_loop () at corefcn/toplev.cc:593
#15 0x00007ffff69445c0 in octave_execute_interpreter () at octave.cc:888
#16 0x00007ffff7a94d16 in octave_cli_thread::run (this=0x7fffffffc7b0)
#17 0x00007ffff2edafcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x00007ffff4a10e9a in start_thread (arg=0x7fffdd41b700)
at pthread_create.c:308
#19 0x00007ffff473d3fd in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#20 0x0000000000000000 in ?? ()
If complex() doesn't want to accept sparse inputs, that is fine. But it
should just warn about that and not segfault.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42290>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #42290] complex () with sparse inputs leads to segfault.,
Rik <=