[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40608] MinGW: crashes with JIT
From: |
Stefan Mahr |
Subject: |
[Octave-bug-tracker] [bug #40608] MinGW: crashes with JIT |
Date: |
Wed, 15 Jan 2014 19:36:45 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/31.0.1650.63 Chrome/31.0.1650.63 Safari/537.36 |
Follow-up Comment #5, bug #40608 (project octave):
A simple example to trigger the segfault. The relevant part is the 'pow'
operation.
k=1;
m=1;
while (k<2)
k=k+1;
m=m^2;
end
I build gdb and made a backtrace (quick&dirty mxe patch attached).
Unfortunately I did not get it managed to build octave with debug symbols. I
added C/CXX/FFLAGS=-g, but build failed with many 'undefined reference'
errors. However, here is the backtrace without debugging symbols:
octave:3> k=1; m=1; while(k<2), k=k+1; m=m^2; end
Program received signal SIGSEGV, Segmentation fault.
0x77c2137a in msvcrt!modf () from C:WINDOWSsystem32msvcrt.dll
(gdb) bt
#0 0x77c2137a in msvcrt!modf () from C:WINDOWSsystem32msvcrt.dll
#1 0x0003336c in ?? ()
#2 0x77c211c0 in msvcrt!modf () from C:WINDOWSsystem32msvcrt.dll
#3 0x3ff00000 in ?? ()
#4 0x3ff00000 in ?? ()
#5 0x00033368 in ?? ()
#6 0x687742e8 in liboctinterp-2!_ZN15text_parser_tex5parseERKSs () from
C:Portableoctave-2014-01-15-18-35binliboctinterp
#7 0x68925499 in liboctinterp-2!_ZSt3powIdESt7complexIT_ERKS2_RKS1_ () from
C:Portableoctave-2014-01-15-18-35binliboctin
#8 0x68740fda in octave_jit_pow_complex_scalar () from
C:Portableoctave-2014-01-15-18-35binliboctinterp-2.dll
#9 0x0d1700a1 in ?? ()
#10 0x6875c13a in
liboctinterp-2!_ZNK8jit_info7executeERKSt3mapISsPK12octave_valueSt4lessISsESaISt4pairIKSsS3_EEE
() from C:
#11 0x68762d64 in
liboctinterp-2!_ZN8tree_jit10do_executeER18tree_while_command () from
C:Portableoctave-2014-01-15-18-35b
#12 0x68762dd8 in liboctinterp-2!_ZN8tree_jit7executeER18tree_while_command ()
from C:Portableoctave-2014-01-15-18-35binl
#13 0x683eb8ba in
liboctinterp-2!_ZN14tree_evaluator19visit_while_commandER18tree_while_command
() from C:Portableoctave-20
#14 0x683ea385 in
liboctinterp-2!_ZN14tree_evaluator15visit_statementER14tree_statement () from
C:Portableoctave-2014-01-15
#15 0x683e9a25 in
liboctinterp-2!_ZN14tree_evaluator20visit_statement_listER19tree_statement_list
() from C:Portableoctave-
#16 0x686fb619 in liboctinterp-2!_Z9main_loopv () from
C:Portableoctave-2014-01-15-18-35binliboctinterp-2.dll
#17 0x680c4f96 in octave_execute_interpreter () from
C:Portableoctave-2014-01-15-18-35binliboctinterp-2.dll
#18 0x00401d15 in octave-cli!main ()
(gdb) C:Portableoctave-2014-01-15-18-35bin
Even if no segfault occurs, working with complex values fails completely:
k=1;
m=i;
while (1)
k=m;
break;
end
m should be unmodified after while loop, but actually it is something
5.2998e-315 (and k as well).
(file #30282)
_______________________________________________________
Additional Item Attachment:
File name: mxe-gdb.diff Size:3 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40608>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/