Postby romalin99 » Wed Aug 20, 2014 5:18 am
0 0x000000000041e267 in cl_compile (info1=0, info2=1, info3=0, ns=, set=, key=0x0, digest=0x7fff6fafd1d1, values=0x7fff6ef0b340, operator=CL_OP_WRITE, operations=0x0, n_values=3, buf_r=0x7fff6ef0b250, buf_sz_r=0x7fff6ef0b248, cl_w_p=0x7fff6ef0b410, d_ret=0x7fff6ef0b210, trid=0, scan_param_field=0x0, call=0x0, udf_type=0 ‘\000’) at src/main/citrusleaf/citrusleaf.c:870 870 src/main/citrusleaf/citrusleaf.c: No such file or directory. in src/main/citrusleaf/citrusleaf.c Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.132.el6_5.3.x86_64 keyutils-libs-1.4-4.el6.x86_64 krb5-libs-1.10.3-15.el6_5.1.x86_64 libcom_err-1.41.12-18.el6_5.1.x86_64 libselinux-2.0.94-5.3.el6_4.1.x86_64 lua-5.1.4-4.1.el6.x86_64 openssl-1.0.1e-16.el6_5.15.x86_64 zlib-1.2.3-29.el6.x86_64 (gdb) bt
0 0x000000000041e267 in cl_compile (info1=0, info2=1, info3=0, ns=, set=, key=0x0, digest=0x7fff6fafd1d1, values=0x7fff6ef0b340, operator=CL_OP_WRITE, operations=0x0, n_values=3, buf_r=0x7fff6ef0b250, buf_sz_r=0x7fff6ef0b248, cl_w_p=0x7fff6ef0b410, d_ret=0x7fff6ef0b210, trid=0, scan_param_field=0x0, call=0x0, udf_type=0 ‘\000’) at src/main/citrusleaf/citrusleaf.c:870 1 0x000000000041ecdf in do_the_full_monte (asc=0x158d030, info1=0, info2=1, info3=, ns=0x7fff6fafd141 “test”, set=, key=0x0, digest=0x7fff6fafd1d1, values=0x7fff6ef0b308, operator=CL_OP_WRITE, operations=0x0, n_values=0x7fff6ef0b304, cl_gen=0x0, cl_w_p=0x7fff6ef0b410, trid=0x7fff6ef0b318, setname_r=0x0, call=0x0, cl_ttl=0x0) at src/main/citrusleaf/citrusleaf.c:1322 2 0x000000000041fdb5 in citrusleaf_put_digest_with_setname (asc=, ns=, set=, digest=, values=0x7fff6ef0b340, n_values=3, cl_w_p=0x7fff6ef0b410) at src/main/citrusleaf/citrusleaf.c:1658 3 0x000000000040c31e in aerospike_key_put (as=0x7fff6fafd8f0, err=0x7fff6fafd4d0, policy=, key=0x7fff6fafd140, rec=0x7fff6fafd060) at src/main/aerospike/aerospike_key.c:339 4 0x000000000040afee in main (argc=1, argv=0x7fff6fb00058) at test1.c:151
codes: for(unsigned long i=0;i<500000;i++) { char keybuf[100]={0}; snprintf(keybuf,sizeof(keybuf),“ro%010lu”,i); as_key keytmp; as_key_init_str(&keytmp,“test”,“demo-set2”,keybuf);
as_record rectmp; as_record_inita(&rectmp,3); as_record_set_int64(&rectmp,“bin1”,i); as_record_set_int64(&rectmp,“bin2”,i+10); as_record_set_int64(&rectmp,“bin3”,i+20); //as_record_set_str(&rectmp,“bin3”,data1);
if( AEROSPIKE_OK != aerospike_key_put(&as, &err,NULL,&keytmp,&rectmp) ) { fprintf(stderr,“err(%d) %s at [%s:%d]\n”, err.code, err.message, err.file, err.line); cleanup(&as); exit(-1); } } only 65271 keys putted, subsequently Segmentation fault (core dumped). please help me . and thanks.