[CLN-list] Segfault when using univpoly

Ralf Goertz R_Goertz at web.de
Mon Mar 7 13:32:51 CET 2005


Hi,

I just thought to give cln a try, but I seem to have hit a bad entry point. 
The following program segfaults 

%---------------------------------
#include<iostream>
#include<cln/cln.h>

using namespace cln;
using namespace std;

main(){
        cl_modint_ring R=find_modint_ring(9811);
        cl_univpoly_modint_ring P=find_univpoly_ring(R);
        return 0;
}
%--------------------------------------

Using the 1.1.9-debug.rpm on a SuSE 9.2 linux, this is the output of gdb

Program received signal SIGSEGV, Segmentation fault.
0x400fe50c in cln::cl_make_univpoly_ring (r=@0xbfffefb0) at object.h:475
475                     { return heappointer->type; }


Also, the legendre.cc example segfaults, if it is called with two arguments

Ralf




More information about the CLN-list mailing list