Hi there,
I'm trying to get arsperl 1.92 work with ARS 7.5 64-bit(lx64) libraries, but
when I run make test, I am getting the following error:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00connect.t ........... *** glibc detected *** /usr/bin/perl: double free
or corruption (fasttop): 0x00000000018dbbe0 ***

And the test just hangs there. I have to ctrl-c to come out.

Running it under gdb, it seems like there's a bug in the code(?) that does a
double free or something? Here's a partial backtrace from gdb:
*#16 0x00007ff6222bd5b6 in malloc_printerr (action=3, str=0x7ff622390c70
"double free or corruption (fasttop)", ptr=<value optimized out>) at
malloc.c:6266*
*#17 0x00007ff6222c3e83 in __libc_free (mem=<value optimized out>) at
malloc.c:3738*
*#18 0x00007ff621c8e933 in slt_free () from
/usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
*#19 0x00007ff621b7bf29 in ClientConnToPort () from
/usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
*#20 0x00007ff621b5c573 in IssueRPCToARServer () from
/usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
*#21 0x00007ff621b5c0c4 in ARRPCCallServer () from
/usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
*#22 0x00007ff621b803d9 in ARGetEncryptInfo () from
/usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
*#23 0x00007ff621b7e754 in ARKeyExchangeHandler () from
/usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
*#24 0x00007ff621b7e591 in ARKeyExchange () from
/usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
*#25 0x00007ff621b60881 in ARLoadRPCControlStruct1 () from
/usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
*#26 0x00007ff621b6024d in ARLoadRPCControlStruct () from
/usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
*#27 0x00007ff621b713ef in ARVerifyUser () from
/usr/local/lib/perl/5.10.1/auto/ARS/ARS.so*
*#28 0x00007ff621b12a74 in XS_ARS_ars_Login (my_perl=<value optimized out>,
cv=<value optimized out>) at ARS.xs:426*

It's the same result with or without -malign_double option. The architecture
is "lx64" and the linking was done as so:
LD_RUN_PATH="/usr/ar/7.5/api/lib" cc  -shared -O2 -g -L/usr/local/lib
-fstack-protector ARS.o support.o supportrev.o supportrev_generated.o   -o
blib/arch/auto/ARS/ARS.so /usr/ar/7.5/api/lib/libar_lx64.a \
   -L/usr/ar/7.5/api/lib -lnsl -lpthread -licuucbmc_lx64 -licui18nbmc_lx64
-licudatabmc_lx64

Has anyone got arsperl1.92 work with 64-bit perl and 64-bit 7.5 ar libs on
Linux? Any pointers/suggestions will be highly appreciated!

-- 
~H
http://www.harishkotha.com
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 

--
Arsperl-users mailing list
Arsperl-users@arsperl.org
https://lists.sourceforge.net/lists/listinfo/arsperl-users

Reply via email to