[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36161] segfault when using octave_map with g+
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #36161] segfault when using octave_map with g++ --std=c++11 |
Date: |
Fri, 13 Apr 2012 08:01:33 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 |
URL:
<http://savannah.gnu.org/bugs/?36161>
Summary: segfault when using octave_map with g++ --std=c++11
Project: GNU Octave
Submitted by: None
Submitted on: Fri 13 Apr 2012 08:01:32 AM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: fas
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
A segfault occurs when the following code is compiled with c++11 support.
Without c++11 support, there is no problem.
Using g++ (GCC) 4.7.0 20120407 on Archlinux 64 bit.
Short code to reproduce:
#include <octave/oct.h>
#include <octave/oct-map.h>
int main() {
Octave_map map;
}
Compile and run with:
$ g++ --std=c++0x test.cpp -o test -I/usr/include/octave-3.6.1
-L/usr/lib/octave/3.6.1/ -loctave -loctinterp
$ LD_LIBRARY_PATH=/usr/lib/octave/3.6.1/ ./test
Valgrind output:
==22564== Use of uninitialised value of size 8
==22564== at 0x401E74: dim_vector::~dim_vector() (dim-vector.h:257)
==22564== by 0x402246: Octave_map::~Octave_map() (in
/home/marko/test/test)
==22564== by 0x401A7A: main (test.cpp:5)
==22564==
-402653184
==22564== Use of uninitialised value of size 8
==22564== at 0x401E9B: dim_vector::~dim_vector() (dim-vector.h:258)
==22564== by 0x402246: Octave_map::~Octave_map() (in
/home/marko/test/test)
==22564== by 0x401A7A: main (test.cpp:5)
==22564==
==22564==
==22564== Process terminating with default action of signal 11 (SIGSEGV)
==22564== Bad permissions for mapped region at address 0x401B2C
==22564== at 0x401EA0: dim_vector::~dim_vector() (dim-vector.h:258)
==22564== by 0x402246: Octave_map::~Octave_map() (in
/home/marko/test/test)
==22564== by 0x401A7A: main (test.cpp:5)
==22564==
==22564== HEAP SUMMARY:
==22564== in use at exit: 424,342 bytes in 3,613 blocks
==22564== total heap usage: 5,435 allocs, 1,822 frees, 528,542 bytes
allocated
==22564==
==22564== LEAK SUMMARY:
==22564== definitely lost: 0 bytes in 0 blocks
==22564== indirectly lost: 0 bytes in 0 blocks
==22564== possibly lost: 289,624 bytes in 1,375 blocks
==22564== still reachable: 134,718 bytes in 2,238 blocks
==22564== suppressed: 0 bytes in 0 blocks
==22564== Rerun with --leak-check=full to see details of leaked memory
==22564==
==22564== For counts of detected and suppressed errors, rerun with: -v
==22564== Use --track-origins=yes to see where uninitialised values come from
==22564== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 3 from 3)
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 13 Apr 2012 08:01:32 AM UTC Name: test.cpp Size: 313B By: None
<http://savannah.gnu.org/bugs/download.php?file_id=25636>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36161>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #36161] segfault when using octave_map with g++ --std=c++11,
anonymous <=
- Message not available
- [Octave-bug-tracker] [bug #36161] segfault when using octave_map with g++ --std=c++11, nope, 2012/04/13
- [Octave-bug-tracker] [bug #36161] segfault when using octave_map with g++ --std=c++11, Ben Abbott, 2012/04/13
- [Octave-bug-tracker] [bug #36161] segfault when using octave_map with g++ --std=c++11, Jordi GutiƩrrez Hermoso, 2012/04/13
- [Octave-bug-tracker] [bug #36161] segfault when using octave_map with g++ --std=c++11, Jordi GutiƩrrez Hermoso, 2012/04/13
- [Octave-bug-tracker] [bug #36161] segfault when using octave_map with g++ --std=c++11, John W. Eaton, 2012/04/13
- [Octave-bug-tracker] [bug #36161] segfault when using octave_map with g++ --std=c++11, nope, 2012/04/13
- [Octave-bug-tracker] [bug #36161] segfault when using octave_map with g++ --std=c++11, nope, 2012/04/13
- Message not available
- [Octave-bug-tracker] [bug #36161] segfault when using octave_map with g++ --std=c++11, Marko Bencun, 2012/04/13
- Message not available
- [Octave-bug-tracker] [bug #36161] segfault when using octave_map with g++ --std=c++11, Marko Bencun, 2012/04/14