Changes between Version 1 and Version 2 of Ticket #23545


Ignore:
Timestamp:
07/27/17 08:41:24 (2 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23545 – Description

    v1 v2  
    11On sage 8.0
    22{{{
    3 sage: (x/(1+x)).coefficients()
    4 [[x/(x + 1), 0]]
    53sage: (x^2/(1+x)).coefficients()
    64Segmentation fault (core dumped)
    75}}}
    86
    9 Originally reported as:
     7gdb shows that this is an infinite recursion in the Pynac library:
    108{{{
    11 sage: q,a,b = SR.var('q,a,b')
    12 sage: F = (a^2 + 6*a + 2*b)*q/(a^5 + 3*a^4*b + 3*a^3*b^2 + a^2*b^3) + (3*a + b)/(a^5 + 3*a^4*b + 3*a^3*b^2 + a^2*b^3)
    13 sage: F.coefficients()
    14 Erreur de segmentation (core dumped)
     9#0  GiNaC::add::integer_content (this=0x4095f00) at normal.cpp:95
     10#1  0x00007fff50051660 in GiNaC::ex::integer_content (this=this@entry=0x7fffff7ff410) at normal.cpp:81
     11#2  0x00007fff50076fdc in GiNaC::power::eval (this=0x7fffff800040, level=<optimized out>) at power.cpp:674
     12#3  0x00007fff4ff9b29e in GiNaC::ex::construct_from_basic (other=...) at ex.cpp:691
     13#4  0x00007fff50041ac3 in ex (other=..., this=0x7fffff800030) at ex.h:305
     14#5  GiNaC::mul::combine_ex_with_coeff_to_pair (this=0x40961a0, e=..., c=...) at mul.cpp:1228
     15#6  0x00007fff4ffa3084 in GiNaC::expairseq::evalchildren (this=this@entry=0x40961a0, level=1) at expairseq.cpp:1647
     16#7  0x00007fff50047390 in GiNaC::mul::eval (this=0x40961a0, level=<optimized out>) at mul.cpp:666
     17#8  0x00007fff4ff9b29e in GiNaC::ex::construct_from_basic (other=...) at ex.cpp:691
     18#9  0x00007fff50049ff6 in ex (other=..., this=0x7fffff800690) at ex.h:305
     19#10 GiNaC::mul::expand (this=0x4096030, options=0) at mul.cpp:1490
     20#11 0x00007fff4ff9ac0d in GiNaC::ex::expand (this=this@entry=0x7fffff800bf0, options=options@entry=0) at ex.cpp:84
     21#12 0x00007fff4ff9eec9 in expand (options=0, thisex=...) at ex.h:701
     22#13 GiNaC::match_monom (term=..., symb=..., vec=..., map=...) at ex.cpp:523
     23#14 0x00007fff4ff9f8c8 in GiNaC::ex::coefficients (this=this@entry=0x7fffff800e00, s=..., vec=...) at ex.cpp:576
     24#15 0x00007fff4ff9eed7 in GiNaC::match_monom (term=..., symb=..., vec=..., map=...) at ex.cpp:523
     25#16 0x00007fff4ff9f8c8 in GiNaC::ex::coefficients (this=this@entry=0x7fffff8011c0, s=..., vec=...) at ex.cpp:576
     26#17 0x00007fff4ff9eed7 in GiNaC::match_monom (term=..., symb=..., vec=..., map=...) at ex.cpp:523
     27#18 0x00007fff4ff9f8c8 in GiNaC::ex::coefficients (this=this@entry=0x7fffff801580, s=..., vec=...) at ex.cpp:576
     28#19 0x00007fff4ff9eed7 in GiNaC::match_monom (term=..., symb=..., vec=..., map=...) at ex.cpp:523
     29#20 0x00007fff4ff9f8c8 in GiNaC::ex::coefficients (this=this@entry=0x7fffff801940, s=..., vec=...) at ex.cpp:576
     30[...]
    1531}}}