Perl and AIX v4.3.2

Perl and AIX v4.3.2

Post by mgrab.. » Thu, 04 Nov 1999 04:00:00



  We have tried building Perl versions 5.004_04 and 5.005_03 on AIX 4.3.
The builds all look successful and many perl scripts run, but some
don't. The symptoms I am running into are:
1)  Perl core dumps on compile only
2)  Different shell environments cause Perl to dump core
3)  Running the program with she-bang to perl binary dumps core, but
running same binary on command line program runs fine (ie. "perl myprog"
works)
4)  Compile only will core dump, but running it is fine.

Crazy thing about #1 is usually if '-c' is dumping core '-cw' will not.
If both dump core, then the other version of perl will compile it with
'-cw' and warn about something like 'varibable $x used only once,
possible typo.' We fix that and then both versions of perl will compile
it.

One I don't know how to say... I have a program 'myprog.pl' and
'myprog.new' they are hard links to the same i-node, but myprog.pl core
dumps when you run it and myprog.new does not.

My perl was built with IBM's C/C++ compiler on AIX v4.3.2.

Is there some patch to AIX, or Perl I need to install to make this
stable ?

Or is there a new version of Perl that is stable under AIX v4.3.2 ?

Someone else has tried to build Perl with gcc on one of our other AIX
v4.3.2 server and has similar results, so I have not tried.

Thanks,
  Mike

  #include <std.disclaimers>

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Perl and AIX v4.3.2

Post by Mitchell Morr » Thu, 04 Nov 1999 04:00:00



>  We have tried building Perl versions 5.004_04 and 5.005_03 on AIX 4.3.
>The builds all look successful and many perl scripts run, but some
>don't. The symptoms I am running into are:
>1)  Perl core dumps on compile only
>2)  Different shell environments cause Perl to dump core
>3)  Running the program with she-bang to perl binary dumps core, but
>running same binary on command line program runs fine (ie. "perl myprog"
>works)
>4)  Compile only will core dump, but running it is fine.

[snip]

That's odd ... we're all full up with Perl here, and it all runs super
smoothly. Plus which I've never seen a Perl core dump that I didn't cause
directly myself.

[cut and pasted with lines wrapped by me so our news server won't *]


Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
  Platform:
    osname=aix, osvers=4.3.0.0, archname=aix
    uname='aix unpkhswm04 3 4 000148764600 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=8192 \
                -I/usr/local/include'
    ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=8192 \
                -I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lnsl -ldbm -ldl -lld -lm -lc -lcrypt -lbsd -lPW
    libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-bE:perl.exp'
    cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp \
                -bE:$(BASEEXT).exp -b noentry -lc -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Built under aix
  Compiled at Dec 17 1998 15:27:06

    /usr/local/lib/perl5/5.00502/aix
    /usr/local/lib/perl5/5.00502
    /usr/local/lib/perl5/site_perl/5.005/aix
    /usr/local/lib/perl5/site_perl/5.005
    .


Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=aix, osvers=4.1.4.0, archname=aix-thread
    uname='aix anpkhsw1 1 4 00500352c400 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define useperlio=undef d_sfio=undef
  Compiler:
    cc='cc_r', optimize='-O', gccversion=
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=8192 \
                        -DNEED_PTHREAD_INIT -I/usr/local/include'
    ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=8192 \
                        -DNEED_PTHREAD_INIT -I/usr/local/include'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-ldbm -lld -lm -lc_r -lc -lbsd -lPW
    libc=, so=a, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-bE:perl.exp'
    cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp \
                        -bE:$(BASEEXT).exp -b noentry -lpthreads -lc_r -lc -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Built under aix
  Compiled at Apr 15 1999 18:37:37

    /usr/local/lib/perl5/5.00503/aix-thread
    /usr/local/lib/perl5/5.00503
    /usr/local/lib/perl5/site_perl/5.005/aix-thread
    /usr/local/lib/perl5/site_perl/5.005
    .

I could do the same on about fifty other hosts, but you'd get the same
results (more or less). These were built with "Configure -des" and "make"
so there isn't any magic in the build process.

--
Mitchell Morris

See, when the GOVERNMENT spends money, it creates jobs; whereas when the money
is left in the hands of TAXPAYERS, God only knows what they do with it.  Bake
it into pies, probably.  Anything to avoid creating jobs.
        -- Dave Barry

 
 
 

Perl and AIX v4.3.2

Post by Shon Stephen » Thu, 04 Nov 1999 04:00:00




>  We have tried building Perl versions 5.004_04 and 5.005_03 on AIX
4.3.
>The builds all look successful and many perl scripts run, but some
>don't. The symptoms I am running into are:
>1)  Perl core dumps on compile only
>2)  Different shell environments cause Perl to dump core
>3)  Running the program with she-bang to perl binary dumps core, but
>running same binary on command line program runs fine (ie. "perl
myprog"
>works)
>4)  Compile only will core dump, but running it is fine.

Have you always been running AIX v4.3.2? Have you run same level of Perl
on earlier revs of AIX? If so give IBM a call. They are commited to
making sure that anything that ran on v4.2x, v4.3.1 will run on v4.3.2.
Also try posting to an AIX group? (I don't know the name of one off
hand)

Also, if the programs are dumping core, is there anything that can be
analyzed? If there is anything in the errpt that reports on the dump,
see find out what the sysdumpdev is and package up the dump and send to
IBM.

--
Shon Stephens
UNIX Systems Administrator

"You want a piece of me?"

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Perl and AIX v4.3.2

Post by mgrab.. » Tue, 09 Nov 1999 04:00:00






> >  We have tried building Perl versions 5.004_04 and 5.005_03 on AIX
> 4.3.
> >The builds all look successful and many perl scripts run, but some
> >don't. The symptoms I am running into are:
> >1)  Perl core dumps on compile only
> >2)  Different shell environments cause Perl to dump core
> >3)  Running the program with she-bang to perl binary dumps core, but
> >running same binary on command line program runs fine (ie. "perl
> myprog"
> >works)
> >4)  Compile only will core dump, but running it is fine.

> Have you always been running AIX v4.3.2? Have you run same level of
Perl
> on earlier revs of AIX? If so give IBM a call. They are commited to
> making sure that anything that ran on v4.2x, v4.3.1 will run on
v4.3.2.
> Also try posting to an AIX group? (I don't know the name of one off
> hand)

  When we were installing 4.3.0 we had a problem compiling Perl. Turned
out one of header definitions had changed... Anyway called IBM and when
I mentioned Perl, they almost hung up on me... Have you had luck
mentioning Perl and getting IBM support, because I am not to thrilled
with calling them about it...

  One my 4.3.2 boxes I noticed when I set TERM to 'xterm-color' Perl
worked fine, but if TERM to 'xterm' it would core dump.

Later,
  Mike

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

Perl and AIX v4.3.2

Post by mgrab.. » Tue, 09 Nov 1999 04:00:00


  On one system I noticed that the term type was fixing the problem...
TERM='xterm-color' worked fine, but TERM='xterm', or TERM='vt100' and
Perl would core dump... This was with Perl v5.05_03

Here are my Perl versions, nothing magical I think either:

Summary of my perl5 (5.0 patchlevel 4 subversion 5) configuration:
  Platform:
    osname=aix, osvers=4.3.0.0, archname=aix
    uname='aix bluelite 3 4 000383284c00 '
    hint=recommended, useposix=true, d_sigaction=define
    bincompat3=y useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=8192'
    ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=8192'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=undef, doublesize=undef
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =''
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lnsl -ldbm -ldl -lld -lm -lc -lcrypt -lbsd -lPW
    libc=, so=a
    useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-bE:perl.exp'
    cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp
-bE:$(BASEEXT).exp -b noentry -lc'

Characteristics of this binary (from libperl):
  Built under aix
  Compiled at Jun 11 1999 10:39:18

    /usr/local/lib/perl5/aix/5.00405
    /usr/local/lib/perl5
    /usr/local/lib/perl5/site_perl/aix
    /usr/local/lib/perl5/site_perl
    .

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=aix, osvers=4.3.2.0, archname=aix
    uname='aix bluelite 3 4 000383284c00 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O', gccversion=
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=8192'
    ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE
-qmaxmem=8192'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lnsl -ldbm -ldl -lld -lm -lc -lcrypt -lbsd -lPW
    libc=, so=a, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-bE:perl.exp'
    cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp
-bE:$(BASEEXT).exp -b noentry -lc -L/usr/local/lib'

Characteristics of this binary (from libperl):
  Built under aix
  Compiled at Sep  1 1999 17:22:31

    /usr/local/perl5.005_03/lib/5.00503/aix
    /usr/local/perl5.005_03/lib/5.00503
    /usr/local/perl5.005_03/lib/site_perl/5.005/aix
    /usr/local/perl5.005_03/lib/site_perl/5.005
    .

The only common thing added to both installations is the Perl module
DBI... But I had ruled that out...

Later,
  Mike

Sent via Deja.com http://www.deja.com/
Before you buy.