#7264: segfault while substituting powers of exp
-------------------------+--------------------------------------------------
   Reporter:  burcin     |       Owner:  burcin       
       Type:  defect     |      Status:  needs_work   
   Priority:  critical   |   Milestone:  sage-4.3     
  Component:  symbolics  |    Keywords:  pynac        
Work_issues:             |      Author:  Burcin Erocal
   Upstream:  N/A        |    Reviewer:               
     Merged:             |  
-------------------------+--------------------------------------------------

Comment(by kcrisman):

 This was a fresh build of 4.3.alpha1.  Only issue was that I had to hg
 -add several files to be able to add patches, and revert the two png files
 Minh has mentioned on sage-devel.  But I don't see how that would have
 affected things.
 {{{
 sage: exp(x)^I*exp(z)^(2.5)

 Program received signal EXC_BAD_ACCESS, Could not access memory.
 Reason: KERN_INVALID_ADDRESS at address: 0xc23d006b
 0x0658315e in GiNaC::Number_T::operator/ ()
 (gdb) bt
 #0  0x0658315e in GiNaC::Number_T::operator/ ()
 #1  0x065837bb in GiNaC::numeric::div ()
 #2  0x06549c14 in GiNaC::mul::eval ()
 #3  0x06499fa7 in GiNaC::ex::construct_from_basic ()
 #4  0x065875f7 in GiNaC::operator* ()
 #5  0x0678bbe9 in GiNaC::ptr<GiNaC::basic>::operator= () at
 sage/symbolic/expression.cpp:10325
 #6  0x0678bbe9 in operator= [inlined] () at ptr.h:75
 #7  0x0678bbe9 in __pyx_f_4sage_8symbolic_10expression_10Expression__mul_
 (__pyx_v_left=0x103c710, __pyx_v_right=0x103a418, __pyx_skip_dispatch=0)
 at sage/symbolic/expression.cpp:10325
 #8  0x01a6cc6f in __pyx_pf_4sage_9structure_7element_11RingElement___mul__
 (__pyx_v_self=0x103c710, __pyx_v_right=0x103a418) at
 sage/structure/element.c:10134
 #9  0x00007bc2 in binary_op1 ()
 #10 0x0000c109 in PyNumber_Multiply ()
 #11 0x000b7833 in PyEval_EvalFrameEx ()
 #12 0x000bb71d in PyEval_EvalCodeEx ()
 #13 0x000ba07e in PyEval_EvalFrameEx ()
 #14 0x000bb71d in PyEval_EvalCodeEx ()
 #15 0x000b99c6 in PyEval_EvalFrameEx ()
 #16 0x000bb71d in PyEval_EvalCodeEx ()
 #17 0x000b99c6 in PyEval_EvalFrameEx ()
 #18 0x000ba5c9 in PyEval_EvalFrameEx ()
 #19 0x000bb71d in PyEval_EvalCodeEx ()
 #20 0x000b99c6 in PyEval_EvalFrameEx ()
 #21 0x000bb71d in PyEval_EvalCodeEx ()
 #22 0x000b99c6 in PyEval_EvalFrameEx ()
 #23 0x000bb71d in PyEval_EvalCodeEx ()
 #24 0x000b99c6 in PyEval_EvalFrameEx ()
 #25 0x000bb71d in PyEval_EvalCodeEx ()
 #26 0x000bb837 in PyEval_EvalCode ()
 #27 0x000e0108 in PyRun_FileExFlags ()
 #28 0x000e0ff3 in PyRun_SimpleFileExFlags ()
 #29 0x000efb7e in Py_Main ()
 #30 0x00001c7b in _start ()
 #31 0x00001ba9 in start ()
 }}}
 By the way, I get tons of errors when running sage -gdb "could not find
 object file "....o" - no debug information available for "....c" though I
 assume that is normal.

 The same type of error happens if I just do
 {{{
 sage: exp(blah)^I*exp(z)
 }}}
 where blah can be anything.  So perhaps something is parsing weird with
 the I* business.

 Also notice that currently I seem to have both pynac-0.1.10 and
 pynac-0.1.10.a0 installed, but fixing this and reinstalling pynac 0.1.10
 didn't hep.  Interestingly, it has to be two different things in the exps,
 as exp(x)^I*exp(x) works fine, but even exp(2)^I*exp(3) doesn't.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7264#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--

You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.


Reply via email to