Thread: Re: [Arsperl-users] ARSPerl and Perl 5.8.6 issues
Brought to you by:
jeffmurphy
|
From: Barr, S. <sc...@am...> - 2006-07-05 16:09:24
|
I'll download it and give it a try. I'll let you know how it goes! Thank you! -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: 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=20 DESTROY() function for ARControlStruct. This is fixed in the latest=20 developer version, which you can download via CVS. See http://sourceforge.net/cvs/?group_id=3D116013 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. Regards Thilo Stapff Barr, Scott wrote: > Has anyone been able to get ARSPerl 1.85 to compile and work with Perl = > 5.8.6?=20 >=20 > * Did you have to do anything special to the make files?=20 >=20 > * Did you do this on a 64 or 32 bit integer system? >=20 > =20 >=20 > I am having issues with no data being returned from method calls and = seg=20 > faults on script termination... >=20 > =20 >=20 > I have searched the ARSPerl Archives but have only found issues with=20 > perl 5.8.6 and no solutions. :| >=20 > =20 >=20 > Any input would be great appreciated. >=20 > =20 >=20 > Red Hat Enterprise Linux WS release 3 (Taroon Update 4) = 2.6.12-0.2axenU >=20 > ARSPerl 1.85 compiled with 6.3 libs >=20 > Perl 5.8..6 >=20 > Connecting to AR Server: 5.1.2p1389 >=20 > =20 >=20 > -Scott > Remedy Team > Ph : (206) 266-0217 >=20 > *Remedy Team Office Hours*: > Monday, Wednesday and Friday from 14:00 till 15:00 PST. >=20 > ** 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 > =20 >=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 >=20 >=20 > = ------------------------------------------------------------------------ >=20 > _______________________________________________ > 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=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Arsperl-users mailing list Ars...@ar... https://lists.sourceforge.net/lists/listinfo/arsperl-users |
|
From: Barr, S. <sc...@am...> - 2006-07-05 16:50:21
|
I just did a checkout/compile and I am still getting the Seg Fault. How could I debug this to pin point the location of the Seg fault? I got a copy of the latest code this morning @ 09:00am PST [July 5th] cvs -z3 = -d:pserver:ano...@ar...:/cvsroot/arsperl co -P = ARSperl =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 OS /GCC info =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 [sc...@in...:~]$ uname -a Linux integ-node-4451.sea5.amazon.com 2.6.12-0.2axenU #1 Sun Oct 23 = 10:18:27 PDT 2005 i686 athlon i386 GNU/Linux =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 [sc...@in...:~]$ cat /etc/redhat-release Red Hat Enterprise Linux WS release 3 (Taroon Update 4) =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 [sc...@in...:~]$ gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs Configured with: ../configure --prefix=3D/usr --mandir=3D/usr/share/man = --infodir=3D/usr/share/info --enable-shared --enable-threads=3Dposix = --disable-checking --with-system-zlib --enable-__cxa_atexit = --host=3Di386-redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47) =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 =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 Here is the Make log: =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 /usr/bin/gcc -c -I/home/scbarr/63api/include -pthread = -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE = -D_FILE_OFFSET_BITS=3D64 -I/usr/include/gdbm -O3 -mcpu=3Dpentiumpro = -DVERSION=3D\"1.85\" -DXS_VERSION=3D\"1.85\" -fpic = "-I/local/apollo/package/local_1/Linux-2.4c2.3-i686/Perl/Perl-36.0-0/perl= /bin/perl5.8/../../lib/perl5.8-dist/Linux-2.4c2.3-i686-64int/CORE" -g = -DARS32 -DARS452 -malign-double -DPERL_PATCHLEVEL_IS=3D8 = -DPERL_SUBVERSION_IS=3D6 -DPERL_BASEREV_IS=3D50 ARS.c ARS.xs: In function `XS_ARS_ars_CreateActiveLink': ARS.xs:3856: warning: cast to pointer from integer of different size /usr/bin/gcc -c -I/home/scbarr/63api/include -pthread = -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE = -D_FILE_OFFSET_BITS=3D64 -I/usr/include/gdbm -O3 -mcpu=3Dpentiumpro = -DVERSION=3D\"1.85\" -DXS_VERSION=3D\"1.85\" -fpic = "-I/local/apollo/package/local_1/Linux-2.4c2.3-i686/Perl/Perl-36.0-0/perl= /bin/perl5.8/../../lib/perl5.8-dist/Linux-2.4c2.3-i686-64int/CORE" -g = -DARS32 -DARS452 -malign-double -DPERL_PATCHLEVEL_IS=3D8 = -DPERL_SUBVERSION_IS=3D6 -DPERL_BASEREV_IS=3D50 support.c support.c: In function `get_logging_file_ptr': support.c:108: warning: cast to pointer from integer of different size /usr/bin/gcc -c -I/home/scbarr/63api/include -pthread = -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE = -D_FILE_OFFSET_BITS=3D64 -I/usr/include/gdbm -O3 -mcpu=3Dpentiumpro = -DVERSION=3D\"1.85\" -DXS_VERSION=3D\"1.85\" -fpic = "-I/local/apollo/package/local_1/Linux-2.4c2.3-i686/Perl/Perl-36.0-0/perl= /bin/perl5.8/../../lib/perl5.8-dist/Linux-2.4c2.3-i686-64int/CORE" -g = -DARS32 -DARS452 -malign-double -DPERL_PATCHLEVEL_IS=3D8 = -DPERL_SUBVERSION_IS=3D6 -DPERL_BASEREV_IS=3D50 supportrev.c supportrev.c: In function `rev_ARAssignFieldStruct_helper': supportrev.c:1624: warning: cast to pointer from integer of different = size supportrev.c: In function `rev_ARDisplayInstanceStruct': supportrev.c:2598: warning: passing arg 3 of `uintcpyHVal' from = incompatible pointer type Running Mkbootstrap for ARS () chmod 644 ARS.bs rm -f blib/arch/auto/ARS/ARS.so LD_RUN_PATH=3D"/lib" /usr/bin/gcc -shared -L/usr/local/lib ARS.o = support.o supportrev.o /home/scbarr/63api/lib/libar.a -o = blib/arch/auto/ARS/ARS.so \ -L/home/scbarr/63api/lib -lpthread \ =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 The test script =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 #!/apollo/bin/env -e remedyWebsite perl/bin/perl5.8/perl use lib = "/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk20060526170824655-114868852= 5/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"; use lib "/apollo/lib"; use Amazon::Apollo::UseEnvironmentLib qw($EnvironmentRoot); use lib "$EnvironmentRoot/ar/perl/pkg"; # /opt/ar/perl use lib = "$EnvironmentRoot/perl/lib/perl5.8-dist/Linux-2.4c2.3-i686-64int"; #use lib "$EnvironmentRoot/ar/apache/htdocs"; # /opt/ar/apache/htdocs use ARS; print "Enter your Remedy login: "; my $user =3D <STDIN>; chomp( $user ); print "Enter your password: "; my $pass =3D <STDIN>; chomp( $pass ); print STDERR "About to login\n"; my $ctrl =3D &ars_Login( "devrmdy-0101.sea3.amazon.com", $user, $pass, = undef, undef, 0, 0 ); if( $ctrl =3D=3D undef ) { die "Could not login\n"; } else { print STDERR "Have logged in\n"; print STDERR "About to get field list for HPD:HelpDesk"; my %fields =3D &ars_GetFieldTable($ctrl, "HPD:HelpDesk"); unless( %fields ) { print STDERR "Got fields\n"; foreach my $field_key (keys (%fields)) { print STDERR "Field Name/ID :: = $field_key/$fields{$field_key}\n"; } } my %ticket =3D &ars_GetEntry( $ctrl, "HPD:HelpDesk", = "0000915327" ); unless( $ticket ) { print STDERR "Got Ticket! : " . $ticket{ = $fields{"case_id"} } . "\n"; foreach my $key (keys( %ticket )) { print STDERR "$key: $ticket{$key}\n"; } } else { print STDERR "Could not get ticket: $ars_errstr\n"; } &ars_Logoff( $ctrl ); print STDERR "Have logged off\n"; } =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 =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 The output =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 [sc...@in...:/apollo/env/remedyWebsite/ar/apac= he/htdocs/tt]$ ./apiTest.pl Enter your Remedy login: scbarr Enter your password: XXXXXXXXXX About to login Have logged in About to get field list for HPD:HelpDeskGot fields Got Ticket! : Have logged off Segmentation fault =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 =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 Running perl -V =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 [sc...@in...:/apollo/env/remedyWebsite/ar/apac= he/htdocs/tt]$ /apollo/bin/env -e remedyWebsite perl/bin/perl5.8/perl -V Summary of my perl5 (revision 5 version 8 subversion 6) configuration: Platform: osname=3Dlinux, osvers=3D2.4.21-31.ela1smp, = archname=3DLinux-2.4c2.3-i686-64int uname=3D'linux pbp-node-01101.sea3.amazon.com 2.4.21-31.ela1smp #1 = smp tue apr 26 16:57:01 pdt 2005 i686 i686 i386 gnulinux ' config_args=3D'-des -Dbin=3D/dev/null/bin/perl5.8 -Doptimize=3D-O3 = -mcpu=3Dpentiumpro -Dcc=3D/usr/bin/gcc -Uusemymalloc -Uusemultiplicity = -Duse64bitint -Uusethreads -Uuseithreads -Duselargefiles = -Darchname=3DLinux-2.4c2.3-i686-64int -Dcppflags=3D-fno-strict-aliasing = -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 = -Accflags=3D-pthread -Aldflags=3D-pthread = -Dinstallbin=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk2006052617082= 4655-1148688525/build/Perl/Perl-2.0.1.112/X86_LINUX_GCC32_GLIBC23/DEV.STD= .PTHREAD/build/perl/perl/bin/perl5.8 = -Dinstallman1dir=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk200605261= 70824655-1148688525/build/Perl/Perl-2.0.1.112/X86_LINUX_GCC32_GLIBC23/DEV= .STD.PTHREAD/build/perl/perl/lib/perl5.8-dist/man/man1 = -Dinstallman3dir=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk200605261= 70824655-1148688525/build/Perl/Perl-2.0.1.112/X86_LINUX_GCC32_GLIBC23/DEV= .STD.PTHREAD/build/perl/perl/lib/perl5.8-dist/man/man3 -Dinstallprefix=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk2006052617= 0824655-1148688525/build/Perl/Perl-2.0.1.112/X86_LINUX_GCC32_GLIBC23/DEV.= STD.PTHREAD/build/perl = -Dinstallprivlib=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk200605261= 70824655-1148688525/build/Perl/Perl-2.0.1.112/X86_LINUX_GCC32_GLIBC23/DEV= .STD.PTHREAD/build/perl/perl/lib/perl5.8-dist = -Dinstallscript=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk2006052617= 0824655-1148688525/build/Perl/Perl-2.0.1.112/X86_LINUX_GCC32_GLIBC23/DEV.= STD.PTHREAD/build/perl/perl/bin/perl5.8 = -Dinstallsitebin=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk200605261= 70824655-1148688525/build/Perl/Perl-2.0.1.112/X86_LINUX_GCC32_GLIBC23/DEV= .STD.PTHREAD/build/perl/perl/bin/perl5.8 = -Dinstallsitelib=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk200605261= 70824655-1148688525/build/Perl/Perl-2.0.1.112/X86_LINUX_GCC32_GLIBC23/DEV= .STD.PTHREAD/build/perl/perl/lib/perl5.8-dist -Dinstallsiteman1dir=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk20060= 526170824655-1148688525/build/Perl/Perl-2.0.1.112/X86_LINUX_GCC32_GLIBC23= /DEV.STD.PTHREAD/build/perl/perl/lib/perl5.8-dist/man/man1 = -Dinstallsiteman3dir=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk20060= 526170824655-1148688525/build/Perl/Perl-2.0.1.112/X86_LINUX_GCC32_GLIBC23= /DEV.STD.PTHREAD/build/perl/perl/lib/perl5.8-dist/man/man3 = -Dinstallsitescript=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk200605= 26170824655-1148688525/build/Perl/Perl-2.0.1.112/X86_LINUX_GCC32_GLIBC23/= DEV.STD.PTHREAD/build/perl/perl/bin/perl5.8 = -Dman1dir=3D/dev/null/lib/perl5.8-dist/man/man1 = -Dman3dir=3D/dev/null/lib/perl5.8-dist/man/man3 = -Dperlpath=3D/dev/null/bin/perl5.8/perl -Dprefix=3D/dev/null = -Dprivlib=3D/dev/null/lib/perl5.8-dist = -Dscriptdir=3D/dev/null/bin/perl5.8 -Dsitebin=3D/dev/null/bin/perl5.8 = -Dsitelib=3D/dev/null/lib/perl5.8-dist = -Dsitelib_stem=3D/dev/null/lib/perl5.8-dist -Dsiteman1dir=3D/dev/null/lib/perl5.8-dist/man/man1 = -Dsiteman3dir=3D/dev/null/lib/perl5.8-dist/man/man3 = -Dsiteprefix=3D/dev/null -Dsitescript=3D/dev/null/bin/perl5.8 = -Dstartperl=3D#!/dev/null/bin/perl5.8/perl' hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine usethreads=3Dundef use5005threads=3Dundef useithreads=3Dundef = usemultiplicity=3Dundef useperlio=3Ddefine d_sfio=3Dundef uselargefiles=3Ddefine = usesocks=3Dundef use64bitint=3Ddefine use64bitall=3Dundef uselongdouble=3Dundef usemymalloc=3Dn, bincompat5005=3Dundef Compiler: cc=3D'/usr/bin/gcc', ccflags =3D'-pthread -fno-strict-aliasing -pipe = -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 = -I/usr/include/gdbm', optimize=3D'-O3 -mcpu=3Dpentiumpro', cppflags=3D'-fno-strict-aliasing -pipe -I/usr/local/include = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -pthread = -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm' ccversion=3D'', gccversion=3D'3.2.3 20030502 (Red Hat Linux = 3.2.3-47)', gccosandvers=3D'' intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8, = byteorder=3D12345678 d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, = longdblsize=3D12 ivtype=3D'long long', ivsize=3D8, nvtype=3D'double', nvsize=3D8, = Off_t=3D'off_t', lseeksize=3D8 alignbytes=3D4, prototype=3Ddefine Linker and Libraries: ld=3D'/usr/bin/gcc', ldflags =3D' -pthread -L/usr/local/lib' libpth=3D/usr/local/lib /lib /usr/lib libs=3D-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc perllibs=3D-lnsl -ldl -lm -lcrypt -lutil -lc libc=3D/lib/libc-2.3.2.so, so=3Dso, useshrplib=3Dfalse, = libperl=3Dlibperl.a gnulibc_version=3D'2.3.2' Dynamic Linking: dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef, = ccdlflags=3D'-Wl,-E' cccdlflags=3D'-fpic', lddlflags=3D'-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: USE_64_BIT_INT USE_LARGE_FILES Built under linux Compiled at May 26 2006 17:10:07 %ENV: = PERL5LIB=3D":/apollo/env/remedyWebsite/perl/lib/perl5.8:/apollo/env/remed= yWebsite/perl/lib/perl5.8-dist:/apollo/env/remedyWebsite/perl:/apollo/env= /remedyWebsite/perl/lib" @INC: /apollo/env/remedyWebsite/perl/lib/perl5.8/Linux-2.4c2.3-i686-64int /apollo/env/remedyWebsite/perl/lib/perl5.8 = /apollo/env/remedyWebsite/perl/lib/perl5.8-dist/Linux-2.4c2.3-i686-64int /apollo/env/remedyWebsite/perl/lib/perl5.8-dist /apollo/env/remedyWebsite/perl /apollo/env/remedyWebsite/perl/lib /dev/null/lib/perl5.8-dist/Linux-2.4c2.3-i686-64int /dev/null/lib/perl5.8-dist /dev/null/lib/perl5.8-dist/Linux-2.4c2.3-i686-64int /dev/null/lib/perl5.8-dist /dev/null/lib/perl5.8-dist . -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: 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=20 DESTROY() function for ARControlStruct. This is fixed in the latest=20 developer version, which you can download via CVS. See http://sourceforge.net/cvs/?group_id=3D116013 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. Regards Thilo Stapff Barr, Scott wrote: > Has anyone been able to get ARSPerl 1.85 to compile and work with Perl = > 5.8.6?=20 >=20 > * Did you have to do anything special to the make files?=20 >=20 > * Did you do this on a 64 or 32 bit integer system? >=20 > =20 >=20 > I am having issues with no data being returned from method calls and = seg=20 > faults on script termination... >=20 > =20 >=20 > I have searched the ARSPerl Archives but have only found issues with=20 > perl 5.8.6 and no solutions. :| >=20 > =20 >=20 > Any input would be great appreciated. >=20 > =20 >=20 > Red Hat Enterprise Linux WS release 3 (Taroon Update 4) = 2.6.12-0.2axenU >=20 > ARSPerl 1.85 compiled with 6.3 libs >=20 > Perl 5.8..6 >=20 > Connecting to AR Server: 5.1.2p1389 >=20 > =20 >=20 > -Scott > Remedy Team > Ph : (206) 266-0217 >=20 > *Remedy Team Office Hours*: > Monday, Wednesday and Friday from 14:00 till 15:00 PST. >=20 > ** 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 > =20 >=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 >=20 >=20 > = ------------------------------------------------------------------------ >=20 > _______________________________________________ > 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=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 _______________________________________________ Arsperl-users mailing list Ars...@ar... https://lists.sourceforge.net/lists/listinfo/arsperl-users |
|
From: Barr, S. <sc...@am...> - 2006-07-05 22:14:11
|
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
=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
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/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
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)
-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: 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
Btw, here is the generated Makefile in case you need it.
-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: 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=20
DESTROY() function for ARControlStruct. This is fixed in the latest=20
developer version, which you can download via CVS. See
http://sourceforge.net/cvs/?group_id=3D116013
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.
Regards
Thilo Stapff
Barr, Scott wrote:
> Has anyone been able to get ARSPerl 1.85 to compile and work with Perl =
> 5.8.6?=20
>=20
> * Did you have to do anything special to the make files?=20
>=20
> * Did you do this on a 64 or 32 bit integer system?
>=20
> =20
>=20
> I am having issues with no data being returned from method calls and =
seg=20
> faults on script termination...
>=20
> =20
>=20
> I have searched the ARSPerl Archives but have only found issues with=20
> perl 5.8.6 and no solutions. :|
>=20
> =20
>=20
> Any input would be great appreciated.
>=20
> =20
>=20
> Red Hat Enterprise Linux WS release 3 (Taroon Update 4) =
2.6.12-0.2axenU
>=20
> ARSPerl 1.85 compiled with 6.3 libs
>=20
> Perl 5.8..6
>=20
> Connecting to AR Server: 5.1.2p1389
>=20
> =20
>=20
> -Scott
> Remedy Team
> Ph : (206) 266-0217
>=20
> *Remedy Team Office Hours*:
> Monday, Wednesday and Friday from 14:00 till 15:00 PST.
>=20
> ** 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
> =20
>=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
>=20
>=20
> =
------------------------------------------------------------------------
>=20
> _______________________________________________
> 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=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
_______________________________________________
Arsperl-users mailing list
Ars...@ar...
https://lists.sourceforge.net/lists/listinfo/arsperl-users
|
|
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
>
|
|
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
|