Re: [Arsperl-users] ARSPerl and Perl 5.8.6 issues
Brought to you by:
jeffmurphy
|
From: Thilo S. <thi...@t-...> - 2006-07-06 21:06:52
|
The code contains the fix. It's the safefree() in line 4985. The
previous version called free(). I changed this because the
ARControlStruct object is allocated with safemalloc() in line 233
(function ars_Login). Before the fix I had the same problem (segfault
on script termination, i.e. even after a successful call to ars_Logoff)
on Windows XP.
You mentioned in another mail that the problem occurs if the script
calls only ars_Login() and ars_Logoff(). Does the segfault also happen
if you omit the ars_Logoff() ?
Barr, Scott wrote:
> I hope all this info I am sending you helps btw... :) Let me know if it is not and I'll stop. :)
>
> What was the bug you fixed in XS_ARControlStructPtr_DESTROY method in ARS.xs:4977
>
> It looks like the issue is still alive and well on this platform...
>
> Does the code below have the fix? This is what I checked out of CVS this morning.
>
> From ARS.xs
> ============================================================================
> 4965 void
> 4966 DESTROY(ctrl)
> 4967 ARControlStruct * ctrl
> 4968 CODE:
> 4969 {
> 4970 ARStatusList status;
> 4971 int rv = 0;
> 4972
> 4973 (void) ARError_reset();
> 4974 Zero(&status, 1, ARStatusList);
> 4975 DBG( ("control struct destructor\n") );
> 4976 # if AR_EXPORT_VERSION >= 4
> 4977 rv = ARTermination(ctrl, &status);
> 4978 # else
> 4979 rv = ARTermination(&status);
> 4980 # endif /* AR_EXPORT_VERSION */
> 4981 (void) ARError(rv, status);
> 4982 #ifdef PROFILE
> 4983 free(ctrl);
> 4984 #else
> 4985 safefree(ctrl);
> 4986 #endif
> 4987 }
> ============================================================================
>
> GDB Output
>
> (gdb) run ./apiTest.pl
> warning: cannot close "shared object read from target memory": File in wrong format
> Starting program: /local/apollo/package/local_1/Linux-2.4c2.3-i686/Perl/Perl-36.0-0/perl/bin/perl5.8/perl5.8.6 ./apiTest.pl
> Reading symbols from shared object read from target memory...(no debugging symbols found)...done.
> Loaded system supplied DSO at 0xfbffd000
> (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[Thread debugging using libthread_db enabled]
> [New Thread -1210466176 (LWP 2476)]
> (no debugging symbols found)...(no debugging symbols found)...Enter your Remedy login: scbarr
> Enter your password: XXXXXXXXX
> About to login
> Have logged in
> About to get field list for HPD:HelpDeskGot fields
> Got Ticket! :
> Have logged off
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1210466176 (LWP 2476)]
> 0xb7a1b800 in ARDisconnect ()
> from /local/p4clients/p4admin-pkgbuild-Perl-2.0-tk20060526170824655-1148688525/build/Perl/Perl-2.0.1.112/X86_LINUX_GCC32_GLIBC23/DEV.STD.PTHREAD/build/perl/lib/perl5.8-dist/Linux-2.4c2.3-i686-64int/auto/ARS/ARS.so
> (gdb) bt
> #0 0xb7a1b800 in ARDisconnect ()
> from /local/p4clients/p4admin-pkgbuild-Perl-2.0-tk20060526170824655-1148688525/build/Perl/Perl-2.0.1.112/X86_LINUX_GCC32_GLIBC23/DEV.STD.PTHREAD/build/perl/lib/perl5.8-dist/Linux-2.4c2.3-i686-64int/auto/ARS/ARS.so
> #1 0xb7a1866f in ARTermination ()
> from /local/p4clients/p4admin-pkgbuild-Perl-2.0-tk20060526170824655-1148688525/build/Perl/Perl-2.0.1.112/X86_LINUX_GCC32_GLIBC23/DEV.STD.PTHREAD/build/perl/lib/perl5.8-dist/Linux-2.4c2.3-i686-64int/auto/ARS/ARS.so
> #2 0xb79f5363 in XS_ARControlStructPtr_DESTROY (cv=0x849037c) at ARS.xs:4977
> #3 0x080be840 in ?? ()
> #4 0x0849037c in ?? ()
> #5 0x0849037c in ?? ()
> #6 0xbfb70718 in ?? ()
> #7 0x08068a12 in ?? ()
> #8 0x08490358 in ?? ()
> #9 0x00000000 in ?? ()
> (gdb)
>
> -Scott
> Remedy Team
> Ph : (206) 266-0217
>
> Remedy Team Office Hours:
> Monday, Wednesday and Friday from 14:00 till 15:00 PST.
>
> * Be sure to sign up to Remedy-News@ to keep up to date on changes to the Remedy service!
> * SDE's should sign up to Remedy-Hackers@ for technical help and assistance.
>
> -----Original Message-----
> From: Barr, Scott
> Sent: Wednesday, July 05, 2006 10:35 AM
> To: 'Thilo Stapff'
> Subject: RE: [Arsperl-users] ARSPerl and Perl 5.8.6 issues
>
>
> Btw, here is the generated Makefile in case you need it.
>
> -Scott
> Remedy Team
> Ph : (206) 266-0217
>
> Remedy Team Office Hours:
> Monday, Wednesday and Friday from 14:00 till 15:00 PST.
>
> * Be sure to sign up to Remedy-News@ to keep up to date on changes to the Remedy service!
> * SDE's should sign up to Remedy-Hackers@ for technical help and assistance.
>
> -----Original Message-----
> From: ars...@ar... [mailto:ars...@ar...] On Behalf Of Thilo Stapff
> Sent: Tuesday, July 04, 2006 12:29 PM
> To: ARSperl User Discussion
> Subject: Re: [Arsperl-users] ARSPerl and Perl 5.8.6 issues
>
> The segfaults on script termination are possibly caused by a bug in the
> DESTROY() function for ARControlStruct. This is fixed in the latest
> developer version, which you can download via CVS. See
>
> http://sourceforge.net/cvs/?group_id=116013
>
>
> To say anything about the "no data returned" issues, I'd need more
> specific information, e.g. a sample script that shows the described
> behaviour.
>
> Regards
> Thilo Stapff
>
>
>
> Barr, Scott wrote:
>
>>Has anyone been able to get ARSPerl 1.85 to compile and work with Perl
>>5.8.6?
>>
>>* Did you have to do anything special to the make files?
>>
>>* Did you do this on a 64 or 32 bit integer system?
>>
>>
>>
>>I am having issues with no data being returned from method calls and seg
>>faults on script termination...
>>
>>
>>
>>I have searched the ARSPerl Archives but have only found issues with
>>perl 5.8.6 and no solutions. :|
>>
>>
>>
>>Any input would be great appreciated.
>>
>>
>>
>>Red Hat Enterprise Linux WS release 3 (Taroon Update 4) 2.6.12-0.2axenU
>>
>>ARSPerl 1.85 compiled with 6.3 libs
>>
>>Perl 5.8..6
>>
>>Connecting to AR Server: 5.1.2p1389
>>
>>
>>
>>-Scott
>>Remedy Team
>>Ph : (206) 266-0217
>>
>>*Remedy Team Office Hours*:
>>Monday, Wednesday and Friday from 14:00 till 15:00 PST.
>>
>>** Be sure to sign up to* *Remedy-News@*
>><http://internal.amazon.com/email-list/expand-list/remedy-news>* to keep
>>up to date on changes to the Remedy service!*
>>** SDE's should sign up to* *Remedy-Hackers@*
>><http://internal.amazon.com/email-list/expand-list/remedy-hackers>* for
>>technical help and assistance.*
>>
>>
>>
>>
>>------------------------------------------------------------------------
>>
>>Using Tomcat but need to do more? Need to support web services, security?
>>Get stuff done quickly with pre-integrated technology to make your job easier
>>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Arsperl-users mailing list
>>Ars...@ar...
>>https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
>
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>
|