-Wp,-D_GLIBCXX_ASSERTIONS
Publié : mar. janv. 10, 2023 2:58 pm
Hi bernard,
in fedora giac is built with the following:
-Wp,-D_GLIBCXX_ASSERTIONS
but the follwing test crashes (any versions 1.7 and 1.9)
in fedora giac is built with the following:
-Wp,-D_GLIBCXX_ASSERTIONS
but the follwing test crashes (any versions 1.7 and 1.9)
Code : Tout sélectionner
0>> factor((x^202+x^101+1)/(x^2+x+1))
[New Thread 0x7fffc9ffb640 (LWP 135666)]
/usr/include/c++/12/bits/stl_vector.h:1142: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](size_type) const [with _Tp = int; _Alloc = std::allocator<int>; const_reference = const int&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Thread 15 "icas" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffc9ffb640 (LWP 135666)]
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
Downloading 0.00 MB source file /usr/src/debug/glibc-2.35-21.fc36.x86_64/nptl/pthread_kill.c
44 return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
(gdb) bt
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1 0x00007ffff588ec73 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78
#2 0x00007ffff583e986 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3 0x00007ffff58287f4 in __GI_abort () at abort.c:79
#4 0x00007ffff5cd7da0 in std::__glibcxx_assert_fail (file=file@entry=0x7ffff781fee8 "/usr/include/c++/12/bits/stl_vector.h", line=line@entry=1142,
function=function@entry=0x7ffff7820a90 "std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](size_type) const [with _Tp = int; _Alloc = std::allocator<int>; const_reference = const int&; size_type = long unsigned i"..., condition=condition@entry=0x7ffff781fbbe "__n < this->size()") at ../../../../../libstdc++-v3/src/c++11/debug.cc:60
#5 0x00007ffff6d300a7 in std::vector<int, std::allocator<int> >::operator[] (this=0x7fffc9fee650, __n=0) at /usr/include/c++/12/bits/stl_vector.h:1140
#6 std::vector<int, std::allocator<int> >::operator[] (__n=<optimized out>, this=<optimized out>) at /usr/include/c++/12/bits/stl_vector.h:1140
#7 giac::a_minus_qsize2_b (ua=std::vector of length 0, capacity 256, q=std::vector of length 2, capacity 2 = {...}, ub=std::vector of length 1, capacity 256 = {...},
ur=std::vector of length 1, capacity 256 = {...}, p=p@entry=2013265921) at modpoly.cc:3976
#8 0x00007ffff6d300e9 in giac::a_minus_qsize2_b (ua=std::vector of length 0, capacity 256, q=std::vector of length 2, capacity 2 = {...},
ub=std::vector of length 1, capacity 256 = {...}, ur=std::vector of length 1, capacity 256 = {...}, p=p@entry=2013265921, q0inv=<optimized out>, q1inv=@0x7fffc9fee170: 0)
at modpoly.cc:4029