dans fedora giac est compilé avec -Wp,-D_GLIBCXX_ASSERTIONS et j'ai le problème suivant pour
solve(1+2*sin(3*x)) avec 1.9.0-73
Code : Tout sélectionner
0>> solve(1+2*sin(3*x))
[New Thread 0x7fff1ffff6c0 (LWP 447313)]
/usr/include/c++/13/bits/stl_vector.h:1125: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = long long int; _Alloc = std::allocator<long long int>; reference = long long int&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Thread 15 "icas" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fff1ffff6c0 (LWP 447313)]
0x00007ffff50b0884 in __pthread_kill_implementation () from /lib64/libc.so.6
...
(gdb) bt
#0 0x00007ffff50b0884 in __pthread_kill_implementation () from /lib64/libc.so.6
#1 0x00007ffff505fafe in raise () from /lib64/libc.so.6
#2 0x00007ffff504887f in abort () from /lib64/libc.so.6
#3 0x00007ffff52df1a0 in std::__glibcxx_assert_fail(char const*, int, char const*, char const*) ()
from /lib64/libstdc++.so.6
#4 0x00007ffff6938fa1 in std::vector<long long, std::allocator<long long> >::operator[] (this=0x7fff1fff1ff0, __n=5)
at /usr/include/c++/13/bits/stl_vector.h:1125
#5 0x00007ffff6b5a1ab in giac::smallmodrref_upper (N=std::vector of length 4, capacity 4 = {...}, l=0, lmax=4, c=0,
cmax=5, modulo=536770933) at vecteur.cc:8345
#6 0x00007ffff6b9a2f7 in giac::mker (res=std::vector of length 4, capacity 4 = {...},
v=std::vector of length 0, capacity 0, modulo=536770933) at vecteur.cc:15241
#7 0x00007ffff6b9ac5d in giac::mker (a=..., v=..., algorithm=1, contextptr=0x0) at vecteur.cc:15302
#8 0x00007ffff6b9b485 in giac::mker (a=..., v=..., contextptr=0x0) at vecteur.cc:15350
#9 0x00007ffff6b9b4d2 in giac::mker (a=..., contextptr=0x0) at vecteur.cc:15355
#10 0x00007ffff645d9ca in giac::minimal_polynomial (pp=..., minonly=false, contextptr=0x0) at sym2poly.cc:2290
#11 0x00007ffff645f2b4 in giac::r2sym (p=..., lt=@0x7fff1fff2860: 0x7fff1fff2c70,
ltend=@0x7fff1fff2a40: 0x7fff1fff2c70, contextptr=0x0) at sym2poly.cc:2387
#12 0x00007ffff6460a90 in giac::r2sym (p=..., lt=@0x7fff1fff2a38: 0x7fff1fff2c68,
ltend=@0x7fff1fff2a40: 0x7fff1fff2c70, contextptr=0x0) at sym2poly.cc:2512
#13 0x00007ffff6461a94 in giac::r2sym (p=..., l=..., contextptr=0x0) at sym2poly.cc:2540
#14 0x00007ffff645b261 in giac::r2sym (f=..., l=..., contextptr=0x0) at sym2poly.cc:2093
#15 0x00007ffff646a78e in giac::normal (e=..., distribute_div=true, allow_embeded_recursion=true, contextptr=0x0)
at sym2poly.cc:3182