Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perl 5.00561 on PA-RISC1.1 HP-UX 10.20 -Doptimize=-g coredumps #652

Closed
p5pRT opened this issue Sep 21, 1999 · 2 comments
Closed

Perl 5.00561 on PA-RISC1.1 HP-UX 10.20 -Doptimize=-g coredumps #652

p5pRT opened this issue Sep 21, 1999 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Sep 21, 1999

Migrated from rt.perl.org#1528 (status was 'resolved')

Searchable as RT1528$

@p5pRT
Copy link
Author

p5pRT commented Sep 21, 1999

From lewart@www.cvm.uiuc.edu


Perl5-Porters,

Perl 5.005_61 / HP-UX 10.20 / gcc 2.95.1 gave a perfect "make test".
However, re-Configuring with "-Doptimize=-g" leads to two failures
during "make test"​:
1) t/pragma/locale.t
  334 trylocale("iso8859$_");
2) t/lib/posix.t​:
  76 &POSIX​::setlocale(&POSIX​::LC_NUMERIC, $lc) if $Config{d_setlocale};
Both spewed the following​:
  assertion botched (chunk's tail overwrite?)​:
  *((char *)((caddr_t)ovp + nbytes - sizeof (unsigned int) + i)) == 0x55
  Abort(coredump)

Let me know if there is anything I can do to further diagnose this.

Cheers,
Daniel Lewart
d-lewart@​uiuc.edu



This perlbug was built using Perl 5.00561 - Mon Sep 6 14​:01​:38 CDT 1999
It is being executed now by Perl 5.00561 - Tue Sep 14 16​:46​:25 CDT 1999.

Site configuration information for perl 5.00561​:

Configured by lewart at Mon Sep 6 14​:01​:38 CDT 1999.

Summary of my perl5 (revision 5.0 version 5 subversion 61) configuration​:
  Platform​:
  osname=hpux, osvers=10.20, archname=PA-RISC1.1
  uname='hp-ux www b.10.20 a 9000715 2013547832 two-user license '
  config_args='-de -Dcc=gcc -Dprefix=/ext/perl5.005_61'
  hint=recommended, useposix=true, d_sigaction=define
  usethreads=undef useperlio=undef d_sfio=undef
  use64bits=undef usemultiplicity=undef
  Compiler​:
  cc='gcc', optimize='-O', gccversion=2.95.1 19990816 (release)
  cppflags='-D_HPUX_SOURCE -I/usr/local/include'
  ccflags ='-D_HPUX_SOURCE -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=y, prototype=define
  Linker and Libraries​:
  ld='ld', ldflags =' -L/usr/local/lib'
  libpth=/usr/local/lib /lib/pa1.1 /lib /usr/lib /usr/ccs/lib
  libs=-lnsl_s -lndbm -lgdbm -ldb -ldld -lm -lc -lndir -lcrypt -lsec
  libc=/lib/libc.sl, so=sl, useshrplib=false, libperl=libperl.a
  Dynamic Linking​:
  dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred '
  cccdlflags='-fpic', lddlflags='-b -L/usr/local/lib'

Locally applied patches​:
 


@​INC for perl 5.00561​:
  /ext/perl5.005_61/lib/5.00561/PA-RISC1.1
  /ext/perl5.005_61/lib/5.00561
  /ext/perl5.005_61/lib/site_perl/5.00561/PA-RISC1.1
  /ext/perl5.005_61/lib/site_perl
  .


Environment for perl 5.00561​:
  HOME=/home/lewart
  LANG (unset)
  LANGUAGE (unset)
  LD_LIBRARY_PATH (unset)
  LOGDIR (unset)
  PATH=/usr/local/bin​:/usr/bin​:/usr/ccs/bin​:/usr/contrib/bin​:/opt/nettladm/bin​:/opt/pd/bin​:/usr/bin/X11​:/usr/contrib/bin/X11​:/opt/upgrade/bin
  PERL_BADLANG (unset)
  SHELL=/usr/bin/ksh
  SHLIB_PATH (unset)

@p5pRT
Copy link
Author

p5pRT commented Sep 21, 1999

From @jhi

Daniel S. Lewart writes​:

Perl 5.005_61 / HP-UX 10.20 / gcc 2.95.1 gave a perfect "make test".
However, re-Configuring with "-Doptimize=-g" leads to two failures
during "make test"​:
1) t/pragma/locale.t
334 trylocale("iso8859$_");
2) t/lib/posix.t​:
76 &POSIX​::setlocale(&POSIX​::LC_NUMERIC, $lc) if $Config{d_setlocale};

Both of these do a setlocale(3) call. Maybe HP-UX setlocale() cannot
handle bogus locale names? (just a guess)

Both spewed the following​:
assertion botched (chunk's tail overwrite?)​:
*((char *)((caddr_t)ovp + nbytes - sizeof (unsigned int) + i)) == 0x55
Abort(coredump)

Or maybe HP-UX setlocale() assumes something that Perl's malloc doesn't
like? (just another guess)

Let me know if there is anything I can do to further diagnose this.

Give the perl executable and the resulting core dumps to a debugger
and show us the stack traces.

--
$jhi++; # http​://www.iki.fi/jhi/
  # There is this special biologist word we use for 'stable'.
  # It is 'dead'. -- Jack Cohen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant