Re: [Arsperl-users] ARSPerl and Perl 5.8.6 issues
Brought to you by:
jeffmurphy
|
From: Barr, S. <sc...@am...> - 2006-07-06 22:21:34
|
Yes it still happens if I omit the call to ars_Logoff(). :(
-Scott
Remedy Team
Ph : (206) 266-0217
Remedy Team Office Hours:=20
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: Friday, July 07, 2006 12:08 AM
To: ARSperl User Discussion
Subject: Re: [Arsperl-users] ARSPerl and Perl 5.8.6 issues
The code contains the fix. It's the safefree() in line 4985. The=20
previous version called free(). I changed this because the=20
ARControlStruct object is allocated with safemalloc() in line 233=20
(function ars_Login). Before the fix I had the same problem (segfault=20
on script termination, i.e. even after a successful call to ars_Logoff)=20
on Windows XP.
You mentioned in another mail that the problem occurs if the script=20
calls only ars_Login() and ars_Logoff(). Does the segfault also happen=20
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. :)
>=20
> What was the bug you fixed in XS_ARControlStructPtr_DESTROY method in =
ARS.xs:4977
>=20
> It looks like the issue is still alive and well on this platform...
>=20
> Does the code below have the fix? This is what I checked out of CVS =
this morning.
>=20
> From ARS.xs
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
> 4965 void
> 4966 DESTROY(ctrl)
> 4967 ARControlStruct * ctrl
> 4968 CODE:
> 4969 {
> 4970 ARStatusList status;
> 4971 int rv =3D 0;
> 4972
> 4973 (void) ARError_reset();
> 4974 Zero(&status, 1, ARStatusList);
> 4975 DBG( ("control struct destructor\n") );
> 4976 # if AR_EXPORT_VERSION >=3D 4
> 4977 rv =3D ARTermination(ctrl, &status);
> 4978 # else
> 4979 rv =3D 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 }
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
>=20
> GDB Output
>=20
> (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/bi=
n/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
>=20
> 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=3D0x849037c) 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)
>=20
> -Scott
> Remedy Team
> Ph : (206) 266-0217
>=20
> Remedy Team Office Hours:=20
> Monday, Wednesday and Friday from 14:00 till 15:00 PST.
>=20
> * 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.
>=20
> -----Original Message-----
> From: Barr, Scott=20
> Sent: Wednesday, July 05, 2006 10:35 AM
> To: 'Thilo Stapff'
> Subject: RE: [Arsperl-users] ARSPerl and Perl 5.8.6 issues
>=20
>=20
> Btw, here is the generated Makefile in case you need it.
>=20
> -Scott
> Remedy Team
> Ph : (206) 266-0217
>=20
> Remedy Team Office Hours:=20
> Monday, Wednesday and Friday from 14:00 till 15:00 PST.
>=20
> * 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.
>=20
> -----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
>=20
> The segfaults on script termination are possibly caused by a bug in =
the=20
> DESTROY() function for ARControlStruct. This is fixed in the latest=20
> developer version, which you can download via CVS. See
>=20
> http://sourceforge.net/cvs/?group_id=3D116013
>=20
>=20
> To say anything about the "no data returned" issues, I'd need more=20
> specific information, e.g. a sample script that shows the described=20
> behaviour.
>=20
> Regards
> Thilo Stapff
>=20
>=20
>=20
> Barr, Scott wrote:
>=20
>>Has anyone been able to get ARSPerl 1.85 to compile and work with Perl =
>>5.8.6?=20
>>
>>* Did you have to do anything special to the make files?=20
>>
>>* Did you do this on a 64 or 32 bit integer system?
>>
>>=20
>>
>>I am having issues with no data being returned from method calls and =
seg=20
>>faults on script termination...
>>
>>=20
>>
>>I have searched the ARSPerl Archives but have only found issues with=20
>>perl 5.8.6 and no solutions. :|
>>
>>=20
>>
>>Any input would be great appreciated.
>>
>>=20
>>
>>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
>>
>>=20
>>
>>-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@*=20
>><http://internal.amazon.com/email-list/expand-list/remedy-news>* to =
keep=20
>>up to date on changes to the Remedy service!*
>>** SDE's should sign up to* *Remedy-Hackers@*=20
>><http://internal.amazon.com/email-list/expand-list/remedy-hackers>* =
for=20
>>technical help and assistance.*
>>
>>=20
>>
>>
>>-----------------------------------------------------------------------=
-
>>
>>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=3Dlnk&kid=3D120709&bid=3D263057&dat=
=3D121642
>>
>>
>>-----------------------------------------------------------------------=
-
>>
>>_______________________________________________
>>Arsperl-users mailing list
>>Ars...@ar...
>>https://lists.sourceforge.net/lists/listinfo/arsperl-users
>=20
>=20
>=20
> 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=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>=20
> 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=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
> _______________________________________________
> Arsperl-users mailing list
> Ars...@ar...
> https://lists.sourceforge.net/lists/listinfo/arsperl-users
>=20
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=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
_______________________________________________
Arsperl-users mailing list
Ars...@ar...
https://lists.sourceforge.net/lists/listinfo/arsperl-users
|