3.1.52 glibc detected *** octave: double free or corruption
Michael D. Godfrey
godfrey at isl.stanford.edu
Wed Feb 11 17:26:55 CST 2009
The attached program fails with:
*** glibc detected *** octave: double free or corruption (!prev):
0x00007f6dee20eb80 ***
======= Backtrace: =========
/lib64/libc.so.6[0x370e077ec8]
/lib64/libc.so.6(cfree+0x76)[0x370e07a486]
/usr/local/lib/octave-3.1.52/liboctave.so(_ZN5ArrayISt7complexIdEED2Ev+0x65)[0x7f6df6b29a45]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN21octave_complex_matrixD0Ev+0x38)[0xbe3fd8]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN17octave_base_value14numeric_assignERKSsRKSt4listI17octave_value_listSaIS3_EERK12octave_value+0x2c7)[0xbb7bb7]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN18octave_base_matrixI7NDArrayE8subsasgnERKSsRKSt4listI17octave_value_listSaIS5_EERK12octave_value+0x211)[0xbd5b21]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN12octave_value8subsasgnERKSsRKSt4listI17octave_value_listSaIS3_EERKS_+0xd)[0xc29e9d]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN12octave_value6assignENS_9assign_opERKSsRKSt4listI17octave_value_listSaIS4_EERKS_+0xce)[0xc36b0e]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN13octave_lvalue6assignEN12octave_value9assign_opERKS0_+0x29)[0xb15649]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN22tree_simple_assignment7rvalue1Ei+0x3f2)[0xd97852]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN14tree_evaluator15visit_statementER14tree_statement+0x173)[0xda42d3]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN14tree_evaluator20visit_statement_listER19tree_statement_list+0x53)[0xda1723]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN14tree_evaluator24visit_simple_for_commandER23tree_simple_for_command+0x2cd)[0xda35fd]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN14tree_evaluator15visit_statementER14tree_statement+0x6c)[0xda41cc]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN14tree_evaluator20visit_statement_listER19tree_statement_list+0x53)[0xda1723]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN14tree_evaluator24visit_simple_for_commandER23tree_simple_for_command+0x2cd)[0xda35fd]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN14tree_evaluator15visit_statementER14tree_statement+0x6c)[0xda41cc]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN14tree_evaluator20visit_statement_listER19tree_statement_list+0x53)[0xda1723]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN18octave_user_script17do_multi_index_opEiRK17octave_value_list+0x166)[0xc84756]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN12octave_value17do_multi_index_opEiRK17octave_value_list+0xd)[0xc29e7d]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN15tree_identifier6rvalueEi+0x5a4)[0xdab884]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN15tree_identifier7rvalue1Ei+0x3e)[0xdab1be]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN14tree_evaluator15visit_statementER14tree_statement+0x173)[0xda42d3]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_ZN14tree_evaluator20visit_statement_listER19tree_statement_list+0x53)[0xda1723]
/usr/local/lib/octave-3.1.52/liboctinterp.so(_Z9main_loopv+0x1f4)[0xb74a74]
/usr/local/lib/octave-3.1.52/liboctinterp.so(octave_main+0xefd)[0xb124ad]
/lib64/libc.so.6(__libc_start_main+0xe6)[0x370e01e576]
octave[0x4007c9]
======= Memory map: ========
00110000-00193000 r-xp 00000000 fd:00 3646991
/usr/local/lib/octave-3.1.52/libcruft.so.3.1.52
00193000-00392000 ---p 00083000 fd:00 3646991
/usr/local/lib/octave-3.1.52/libcruft.so.3.1.52
00392000-00395000 rw-p 00082000 fd:00 3646991
/usr/local/lib/octave-3.1.52/libcruft.so.3.1.52
00395000-00396000 rw-p 00395000 00:00 0
00400000-00401000 r-xp 00000000 fd:00 3081564
/usr/local/bin/octave-3.1.52
00600000-00601000 rw-p 00000000 fd:00 3081564
/usr/local/bin/octave-3.1.52
00601000-01333000 r-xp 00000000 fd:00 3647656
/usr/local/lib/octave-3.1.52/liboctinterp.so.3.1.52
01333000-01533000 ---p 00d32000 fd:00 3647656
/usr/local/lib/octave-3.1.52/liboctinterp.so.3.1.52
01533000-01588000 rw-p 00d32000 fd:00 3647656
/usr/local/lib/octave-3.1.52/liboctinterp.so.3.1.52
01588000-0158c000 rw-p 01588000 00:00 0
0158c000-01591000 r-xp 00000000 fd:00 2375994
/usr/lib64/libXfixes.so.3.1.0
01591000-01790000 ---p 00005000 fd:00 2375994
/usr/lib64/libXfixes.so.3.1.0
01790000-01791000 rw-p 00004000 fd:00 2375994
/usr/lib64/lpanic: Aborted -- stopping myself...
APC = 1 + 1i
attempting to save variables to `octave-core'...
save to `octave-core' complete
Abort
[vzero:demod]
==================================================
Octave 3.0.3 runs this OK. And, see line 50 of the program for the exact
problem variable DCK complex fails, DCK real is OK.
The version of 3.1.52 is from Feb 10.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: octave_fail.m
Url: https://www-old.cae.wisc.edu/pipermail/bug-octave/attachments/20090211/221cf487/attachment.ksh
More information about the Bug-octave
mailing list