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:[EMAIL PROTECTED]:/cvsroot/arsperl co -P ARSperl
============================================================================
OS /GCC info
============================================================================
[EMAIL PROTECTED]:~]$ 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
============================================================================
[EMAIL PROTECTED]:~]$ cat /etc/redhat-release
Red Hat Enterprise Linux WS release 3 (Taroon Update 4)
============================================================================
[EMAIL PROTECTED]:~]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47)
============================================================================
============================================================================
Here is the Make log:
============================================================================
/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=64
-I/usr/include/gdbm -O3 -mcpu=pentiumpro -DVERSION=\"1.85\"
-DXS_VERSION=\"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=8
-DPERL_SUBVERSION_IS=6 -DPERL_BASEREV_IS=50 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=64
-I/usr/include/gdbm -O3 -mcpu=pentiumpro -DVERSION=\"1.85\"
-DXS_VERSION=\"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=8
-DPERL_SUBVERSION_IS=6 -DPERL_BASEREV_IS=50 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=64
-I/usr/include/gdbm -O3 -mcpu=pentiumpro -DVERSION=\"1.85\"
-DXS_VERSION=\"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=8
-DPERL_SUBVERSION_IS=6 -DPERL_BASEREV_IS=50 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="/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 \
============================================================================
The test script
============================================================================
#!/apollo/bin/env -e remedyWebsite perl/bin/perl5.8/perl
use lib
"/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";
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 = <STDIN>;
chomp( $user );
print "Enter your password: ";
my $pass = <STDIN>;
chomp( $pass );
print STDERR "About to login\n";
my $ctrl = &ars_Login( "devrmdy-0101.sea3.amazon.com", $user, $pass, undef,
undef, 0, 0 );
if( $ctrl == 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 = &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 = &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";
}
============================================================================
============================================================================
The output
============================================================================
[EMAIL PROTECTED]:/apollo/env/remedyWebsite/ar/apache/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
============================================================================
============================================================================
Running perl -V
============================================================================
[EMAIL PROTECTED]:/apollo/env/remedyWebsite/ar/apache/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=linux, osvers=2.4.21-31.ela1smp, archname=Linux-2.4c2.3-i686-64int
uname='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='-des -Dbin=/dev/null/bin/perl5.8 -Doptimize=-O3
-mcpu=pentiumpro -Dcc=/usr/bin/gcc -Uusemymalloc -Uusemultiplicity
-Duse64bitint -Uusethreads -Uuseithreads -Duselargefiles
-Darchname=Linux-2.4c2.3-i686-64int -Dcppflags=-fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-Accflags=-pthread -Aldflags=-pthread
-Dinstallbin=/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/perl/bin/perl5.8
-Dinstallman1dir=/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/perl/lib/perl5.8-dist/man/man1
-Dinstallman3dir=/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/perl/lib/perl5.8-dist/man/man3
-Dinstallprefix=/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
-Dinstallprivlib=/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/perl/lib/perl5.8-dist
-Dinstallscript=/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/perl/bin/perl5.8
-Dinstallsitebin=/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/perl/bin/perl5.8
-Dinstallsitelib=/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/perl/lib/perl5.8-dist
-Dinstallsiteman1dir=/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/perl/lib/perl5.8-dist/man/man1
-Dinstallsiteman3dir=/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/perl/lib/perl5.8-dist/man/man3
-Dinstallsitescript=/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/perl/bin/perl5.8
-Dman1dir=/dev/null/lib/perl5.8-dist/man/man1
-Dman3dir=/dev/null/lib/perl5.8-dist/man/man3
-Dperlpath=/dev/null/bin/perl5.8/perl -Dprefix=/dev/null
-Dprivlib=/dev/null/lib/perl5.8-dist -Dscriptdir=/dev/null/bin/perl5.8
-Dsitebin=/dev/null/bin/perl5.8 -Dsitelib=/dev/null/lib/perl5.8-dist
-Dsitelib_stem=/dev/null/lib/perl5.8-dist
-Dsiteman1dir=/dev/null/lib/perl5.8-dist/man/man1
-Dsiteman3dir=/dev/null/lib/perl5.8-dist/man/man3 -Dsiteprefix=/dev/null
-Dsitescript=/dev/null/bin/perl5.8 -Dstartperl=#!/dev/null/bin/perl5.8/perl'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='/usr/bin/gcc', ccflags ='-pthread -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm',
optimize='-O3 -mcpu=pentiumpro',
cppflags='-fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -fno-strict-aliasing -pipe
-I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='3.2.3 20030502 (Red Hat Linux 3.2.3-47)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='/usr/bin/gcc', ldflags =' -pthread -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fpic', lddlflags='-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=":/apollo/env/remedyWebsite/perl/lib/perl5.8:/apollo/env/remedyWebsite/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:
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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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* [EMAIL PROTECTED]
> <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* [EMAIL PROTECTED]
> <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
> [email protected]
> 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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/arsperl-users