Re: [Arsperl-users] Seg Fault issue
Brought to you by:
jeffmurphy
|
From: Barr, S. <sc...@am...> - 2006-06-30 17:46:53
|
If you look at the make log below there are unsafe casts being made.
ARS.xs: In function `XS_ARS_ars_CreateActiveLink':
ARS.xs:3825: warning: cast to pointer from integer of different size
support.c: In function `get_logging_file_ptr':
support.c:108: warning: cast to pointer from integer of different size
supportrev.c: In function `rev_ARAssignFieldStruct_helper':
supportrev.c:1594: warning: cast to pointer from integer of different =
size
The box I am compiling on has 64bit integers, not 32.
-Scott
[sc...@in...:~/sandbox/remedy/ARSPerl/ARSperl-=
1.85]$ make
cp ARSarerrno-h.pm blib/lib/ARSarerrno-h.pm
cp ARSnparm.pm blib/lib/ARSnparm.pm
cp artypes.ph blib/lib/artypes.ph
cp _h2ph_pre.ph blib/lib/_h2ph_pre.ph
cp ARSar-h.pm blib/lib/ARSar-h.pm
cp ARSnterrno-h.pm blib/lib/ARSnterrno-h.pm
cp ARSnt-h.pm blib/lib/ARSnt-h.pm
cp ARSOOsup.pm blib/lib/ARSOOsup.pm
cp ARSOOmsgs.pm blib/lib/ARSOOmsgs.pm
cp ARSOOform.pm blib/lib/ARSOOform.pm
cp ARS.pm blib/lib/ARS.pm
AutoSplitting blib/lib/ARS.pm (blib/lib/auto/ARS)
/apollo/bin/env -e remedyWebsite =
/apollo/env/remedyWebsite/perl/bin/perl5.8/perl =
/apollo/env/remedyWebsite/perl/lib/perl5.8-dist/ExtUtils/xsubpp =
-typemap =
/local/apollo/package/local_1/Linux-2.4c2.3-i686/Perl/Perl-31.0-1/perl/bi=
n/perl5.8/../../lib/perl5.8-dist/ExtUtils/typemap -typemap typemap =
ARS.xs > ARS.xsc && mv ARS.xsc ARS.c
/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.84\" -DXS_VERSION=3D\"1.84\" -fpic =
"-I/local/apollo/package/local_1/Linux-2.4c2.3-i686/Perl/Perl-31.0-1/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:3825: 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.84\" -DXS_VERSION=3D\"1.84\" -fpic =
"-I/local/apollo/package/local_1/Linux-2.4c2.3-i686/Perl/Perl-31.0-1/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.84\" -DXS_VERSION=3D\"1.84\" -fpic =
"-I/local/apollo/package/local_1/Linux-2.4c2.3-i686/Perl/Perl-31.0-1/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:1594: warning: cast to pointer from integer of different =
size
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 \
chmod 755 blib/arch/auto/ARS/ARS.so
cp ARS.bs blib/arch/auto/ARS/ARS.bs
chmod 644 blib/arch/auto/ARS/ARS.bs
-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 Barr, Scott
Sent: Friday, June 30, 2006 9:44 AM
To: ARSperl User Discussion
Subject: Re: [Arsperl-users] Seg Fault issue
I am trying to connect to an ARS 5.1.2p1389 box. I have also tried to =
connect to an ARS 6.3p16 box as well. Same issue.
-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 Barr, Scott
Sent: Tuesday, June 27, 2006 11:56 AM
To: ARSperl User Discussion
Subject: [Arsperl-users] Seg Fault issue
Hey there everyone, I am having an issue where just simply by logging in =
I am getting a Seg Fault. :(
I have tried compiling against the 5.1.2p1389 and 6.3p16 ARS lib's to no =
avail.
I have included all the info I can think of to include.
Code base: ARSPerl v1.85
[scbarr@integ-node-4451.sea5:/apollo/env/remedyWebsite/ar/apache/htdocs/t=
t]$ uname -a
Linux integ-node-4451.sea5 2.6.12-0.2axenU #1 Sun Oct 23 10:18:27 PDT =
2005 i686 athlon i386 GNU/Linux
[scbarr@integ-node-4451.sea5:/apollo/env/remedyWebsite/ar/apache/htdocs/t=
t]$ /apollo/env/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-0204.sea3. 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-tk2006050313572=
4960-1146689904/build/Perl/Perl-2.0.1.98/X86_LINUX_GCC32_GLIBC23/DEV.STD.=
PTHREAD/build/perl/perl/bin/perl5.8 =
-Dinstallman1dir=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk200605031=
35724960-1146689904/build/Perl/Perl-2.0.1.98/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-tk200605031=
35724960-1146689904/build/Perl/Perl-2.0.1.98/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-tk2006050313=
5724960-1146689904/build/Perl/Perl-2.0.1.98/X86_LINUX_GCC32_GLIBC23/DEV.S=
TD.PTHREAD/build/perl =
-Dinstallprivlib=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk200605031=
35724960-1146689904/build/Perl/Perl-2.0.1.98/X86_LINUX_GCC32_GLIBC23/DEV.=
STD.PTHREAD/build/perl/perl/lib/perl5.8-dist =
-Dinstallscript=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk2006050313=
5724960-1146689904/build/Perl/Perl-2.0.1.98/X86_LINUX_GCC32_GLIBC23/DEV.S=
TD.PTHREAD/build/perl/perl/bin/perl5.8 =
-Dinstallsitebin=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk200605031=
35724960-1146689904/build/Perl/Perl-2.0.1.98/X86_LINUX_GCC32_GLIBC23/DEV.=
STD.PTHREAD/build/perl/perl/bin/perl5.8 =
-Dinstallsitelib=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk200605031=
35724960-1146689904/build/Perl/Perl-2.0.1.98/X86_LINUX_GCC32_GLIBC23/DEV.=
STD.PTHREAD/build/perl/perl/lib/perl5.8-dist
-Dinstallsiteman1dir=3D/local/p4clients/p4admin-pkgbuild-Perl-2.0-tk20060=
503135724960-1146689904/build/Perl/Perl-2.0.1.98/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=
503135724960-1146689904/build/Perl/Perl-2.0.1.98/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=
03135724960-1146689904/build/Perl/Perl-2.0.1.98/X86_LINUX_GCC32_GLIBC23/D=
EV.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-20)', 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 3 2006 14:05:42
%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
.
[scbarr@integ-node-4451.sea5:/apollo/env/remedyWebsite/ar/apache/htdocs/t=
t]$ cat ./apiTest.pl
#!/apollo/bin/env -e remedyWebsite perl/bin/perl5.8/perl
use lib "/apollo/lib";
use Amazon::Apollo::UseEnvironmentLib qw($EnvironmentRoot);
use lib "$EnvironmentRoot/ar/perl/pkg"; # /opt/ar/perl
#use lib "$EnvironmentRoot/ar/apache/htdocs"; # /opt/ar/apache/htdocs
use ARS;
my $ctrl =3D &ars_Login( "remedy-test.integ.", "xxxxxxx", "xxxxxxxxx", =
undef, undef, 0, 0 );
if( $ctrl =3D=3D undef )
{
die "Could not login\n";
}
print "Have logged in\n";
[scbarr@integ-node-4451.sea5:/apollo/env/remedyWebsite/ar/apache/htdocs/t=
t]$ ./apiTest.pl
Have logged in
Segmentation fault
|