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

Solaris 7+gcc 2.95.1+Perl 5.005_03: core dumps #490

Closed
p5pRT opened this issue Sep 7, 1999 · 4 comments
Closed

Solaris 7+gcc 2.95.1+Perl 5.005_03: core dumps #490

p5pRT opened this issue Sep 7, 1999 · 4 comments

Comments

@p5pRT
Copy link

p5pRT commented Sep 7, 1999

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

Searchable as RT1332$

@p5pRT
Copy link
Author

p5pRT commented Sep 7, 1999

From sn@neopoly.de


[Please enter your report here]

I just setup a new Ultra 10 (clone)​:

Installed a fresh Solaris 7 (german).

I applied all the latest solaris patches as of 09/03/1999.
"uname -a" output after patching​:
SunOS bronco 5.7 Generic_106541-07 sun4u sparc SUNW,UltraSPARC-IIi-Engine

I downloaded gcc 2.95.1 from sunfreeware.com.

I got perl 5.005_03 from CPAN (I built it successfully on Linux).

I compiled it with "./configure -des -Dcc=gcc".
"make" went just fine.
During "make test", I get coredumps on quite a few tests.
Here is the output of "./perl harness"​:

# ./perl harness
base/cond...........ok
base/if.............ok
base/lex............ok
base/pat............ok
base/rs.............ok, 4/14 subtests skipped
base/term...........ok
comp/cmdopt.........ok
comp/colon..........ok
comp/cpp............sh​: gcc​: not found
FAILED before any test output arrived
comp/decl...........ok
comp/multiline......ok
comp/package........ok
comp/proto..........ok
comp/redef..........ok
comp/require........ok
comp/script.........ok
comp/term...........ok
comp/use............ok
cmd/elsif...........ok
cmd/for.............ok
cmd/mod.............ok
cmd/subval..........ok
cmd/switch..........ok
cmd/while...........ok
io/argv.............ok
io/dup..............ok
io/fs...............ok
io/inplace..........ok
io/iprefix..........ok
io/pipe.............ok
io/print............ok
io/read.............ok
io/tell.............ok
op/append...........ok
op/arith............ok
op/array............ok
op/assignwarn.......ok
op/auto.............ok
op/avhv.............ok
op/bop..............ok
op/chop.............ok
op/closure..........ok
op/cmp..............ok
op/cond.............ok
op/context..........ok
op/defins...........ok
op/delete...........ok
op/die..............ok
op/die_exit.........ok
op/do...............ok
op/each.............ok
op/eval.............ok
op/exec.............ok
op/exp..............ok
op/flip.............ok
op/fork.............ok
op/glob.............ok
op/goto.............ok
op/goto_xs..........dubious
  Test returned status 0 (wstat 139, 0x8b)
  test program seems to have generated a core
  after all the subtests completed successfully
op/grep.............ok
op/groups...........ok
op/gv...............ok
op/hashwarn.........ok
op/inc..............ok
op/index............ok
op/int..............ok
op/join.............ok
op/list.............ok
op/local............ok
op/magic............ok, 4/35 subtests skipped
op/method...........ok
op/misc.............ok
op/mkdir............ok
op/my...............ok
op/nothread.........ok
op/oct..............ok
op/ord..............ok
op/pack.............ok
op/pat..............ok
op/pos..............ok
op/push.............ok
op/quotemeta........ok
op/rand.............ok
op/range............ok
op/read.............ok
op/readdir..........ok
op/recurse..........ok
op/ref..............ok
op/regexp...........ok
op/regexp_noamp.....ok
op/repeat...........ok
op/runlevel.........ok
op/sleep............ok
op/sort.............ok
op/splice...........ok
op/split............ok
op/sprintf..........ok
op/stat.............ok
op/study............ok
op/subst............ok
op/substr...........ok
op/sysio............ok
op/taint............ok, 6/149 subtests skipped
op/tie..............ok
op/tiearray.........ok
op/tiehandle........ok
op/time.............ok
op/tr...............ok
op/undef............ok
op/universal........ok
op/unshift..........ok
op/vec..............ok
op/wantarray........ok
op/write............ok
pragma/constant.....ok
pragma/locale.......Illegal Instruction - core dumped
dubious
  Test returned status 132 (wstat 33792, 0x8400)
pragma/overload.....ok
pragma/strict.......ok
pragma/subs.........ok
pragma/warning......ok
lib/abbrev..........ok
lib/anydbm..........dubious
  Test returned status 0 (wstat 139, 0x8b)
  test program seems to have generated a core
lib/autoloader......ok
lib/basename........ok
lib/bigint..........ok
lib/bigintpm........ok
lib/cgi-form........ok
lib/cgi-function....ok
lib/cgi-html........ok
lib/cgi-request.....ok
lib/checktree.......ok
lib/complex.........ok
lib/db-btree........skipping test on this platform
lib/db-hash.........skipping test on this platform
lib/db-recno........skipping test on this platform
lib/dirhand.........ok
lib/dosglob.........ok
lib/dumper-ovl......dubious
  Test returned status 0 (wstat 132, 0x84)
  test program seems to have generated a core
lib/dumper..........dubious
  Test returned status 0 (wstat 138, 0x8a)
  test program seems to have generated a core
lib/english.........ok
lib/env.............ok
lib/errno...........ok
lib/fatal...........ok
lib/fields..........ok
lib/filecache.......ok
lib/filecopy........dubious
  Test returned status 0 (wstat 139, 0x8b)
  test program seems to have generated a core
  after all the subtests completed successfully
lib/filefind........ok
lib/filehand........dubious
  Test returned status 0 (wstat 138, 0x8a)
  test program seems to have generated a core
  after all the subtests completed successfully
lib/filepath........ok
lib/filespec........ok
lib/findbin.........ok
lib/gdbm............skipping test on this platform
lib/getopt..........ok
lib/h2ph............ok
lib/hostname........ok
lib/io_dup..........dubious
  Test returned status 0 (wstat 139, 0x8b)
  test program seems to have generated a core
  after all the subtests completed successfully
lib/io_pipe.........ok
lib/io_sel..........ok
lib/io_sock.........dubious
  Test returned status 0 (wstat 138, 0x8a)
  test program seems to have generated a core
  after all the subtests completed successfully
lib/io_taint........Illegal Instruction - core dumped
dubious
  Test returned status 132 (wstat 33792, 0x8400)
lib/io_tell.........dubious
  Test returned status 0 (wstat 138, 0x8a)
  test program seems to have generated a core
lib/io_udp..........dubious
  Test returned status 0 (wstat 138, 0x8a)
  test program seems to have generated a core
  after all the subtests completed successfully
lib/io_xs...........dubious
  Test returned status 0 (wstat 132, 0x84)
  test program seems to have generated a core
lib/ipc_sysv........dubious
  Test returned status 0 (wstat 138, 0x8a)
  test program seems to have generated a core
lib/ndbm............dubious
  Test returned status 0 (wstat 139, 0x8b)
  test program seems to have generated a core
lib/odbm............dubious
  Test returned status 0 (wstat 139, 0x8b)
  test program seems to have generated a core
lib/opcode..........dubious
  Test returned status 0 (wstat 138, 0x8a)
  test program seems to have generated a core
  after all the subtests completed successfully
lib/open2...........dubious
  Test returned status 0 (wstat 132, 0x84)
  test program seems to have generated a core
  after all the subtests completed successfully
lib/open3...........dubious
  Test returned status 0 (wstat 132, 0x84)
  test program seems to have generated a core
  after all the subtests completed successfully
lib/ops.............dubious
  Test returned status 0 (wstat 139, 0x8b)
  test program seems to have generated a core
lib/parsewords......ok
lib/ph..............dubious
  Test returned status 0 (wstat 139, 0x8b)
  test program seems to have generated a core
lib/posix...........ok
lib/safe1...........ok
lib/safe2...........dubious
  Test returned status 0 (wstat 132, 0x84)
  test program seems to have generated a core
  after all the subtests completed successfully
lib/sdbm............dubious
  Test returned status 0 (wstat 139, 0x8b)
  test program seems to have generated a core
lib/searchdict......ok
lib/selectsaver.....ok
lib/socket..........ok
lib/soundex.........ok
lib/symbol..........ok
lib/textfill........ok
lib/texttabs........ok
lib/textwrap........ok
lib/thread..........skipping test on this platform
lib/tie-push........ok
lib/tie-stdarray....ok
lib/tie-stdpush.....ok
lib/timelocal.......ok
lib/trig............ok
Failed Test Status Wstat Total Fail Failed List of failed


comp/cpp.t ?? ?? % ??
lib/anydbm.t 0 139 ?? ?? % ??
lib/dumper-ovl. 0 132 ?? ?? % ??
lib/dumper.t 0 138 ?? ?? % ??
lib/filecopy.t 0 139 11 0 0,00% ??
lib/filehand.t 0 138 11 0 0,00% ??
lib/io_dup.t 0 139 6 0 0,00% ??
lib/io_sock.t 0 138 5 0 0,00% ??
lib/io_taint.t 132 33792 ?? ?? % ??
lib/io_tell.t 0 138 ?? ?? % ??
lib/io_udp.t 0 138 3 0 0,00% ??
lib/io_xs.t 0 132 ?? ?? % ??
lib/ipc_sysv.t 0 138 ?? ?? % ??
lib/ndbm.t 0 139 ?? ?? % ??
lib/odbm.t 0 139 ?? ?? % ??
lib/opcode.t 0 138 25 0 0,00% ??
lib/open2.t 0 132 7 0 0,00% ??
lib/open3.t 0 132 21 0 0,00% ??
lib/ops.t 0 139 ?? ?? % ??
lib/ph.t 0 139 ?? ?? % ??
lib/safe2.t 0 132 32 0 0,00% ??
lib/sdbm.t 0 139 ?? ?? % ??
op/goto_xs.t 0 139 10 0 0,00% ??
pragma/locale.t 132 33792 ?? ?? % ??
5 tests skipped, plus 14 subtests skipped.
Failed 24/190 test scripts, 87.37% okay. 0/6050 subtests failed, 100.00% okay.
Segmentation Fault - core dumped
===========8<=========snip========8<========
When I run one of the failing tests manually, I also get a coredump.

Here's the output from gcc -v​:
# /usr/local/bin/gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.1/specs
gcc version 2.95.1 19990816 (release)

Unfortunately, I do not have another C compiler.
Here is my environment​:

# env
AB_CARDCATALOG=/usr/dt/share/answerbooks/de.ISO8859-15/ab_cardcatalog
DISPLAY=bronco​:0.0
DTAPPSEARCHPATH=//.dt/appmanager​:/usr/dt/appconfig/appmanager/%L​:/usr/dt/appconfig/appmanager/C
DTDATABASESEARCHPATH=//.dt/types,/usr/dt/appconfig/types/%L,/usr/dt/appconfig/types/C
DTHELPSEARCHPATH=//.dt/help/root-bronco-0/%H​://.dt/help/root-bronco-0/%H.sdl​://.dt/help/root-bronco-0/%H.hv​://.dt/help/%H​://.dt/help/%H.sdl​://.dt/help/%H.hv​:/usr/dt/appconfig/help/%L/%H​:/usr/dt/appconfig/help/%L/%H.sdl​:/usr/dt/appconfig/help/%L/%H.hv​:/usr/dt/appconfig/help/C/%H​:/usr/dt/appconfig/help/C/%H.sdl​:/usr/dt/appconfig/help/C/%H.hv
DTSCREENSAVERLIST=StartDtscreenSwarm StartDtscreenQix StartDtscreenFlame StartDtscreenHop StartDtscreenImage StartDtscreenLife StartDtscreenRotor StartDtscreenPyro StartDtscreenWorm StartDtscreenBlank
DTSOURCEPROFILE=true
DTUSERSESSION=root-bronco-0
DTXSERVERLOCATION=local
EDITOR=/usr/dt/bin/dtpad
HELPPATH=/usr/openwin/lib/locale​:/usr/openwin/lib/help
HOME=/
LC_COLLATE=de.ISO8859-15
LC_MONETARY=de.ISO8859-15
LC_NUMERIC=de.ISO8859-15
LC_TIME=de.ISO8859-15
LOGNAME=root
MAIL=/var/mail/root
MANPATH=/usr/dt/man​:/usr/man​:/usr/openwin/share/man
OPENWINHOME=/usr/openwin
PATH=/bin​:/usr/bin​:/usr/dt/bin​:/usr/openwin/bin​:/usr/dt/bin​:/usr/openwin/bin​:/bin​:/usr/bin​:/usr/ucb​:/usr/sbin
PWD=/
SESSION_SVR=bronco
SHELL=/sbin/sh
TERM=xterm
TERMINAL_EMULATOR=dtterm
TZ=MET
USER=root
WINDOWID=121634829
XFILESEARCHPATH=/usr/openwin/lib/locale/%L/%T/%N%S​:/usr/openwin/lib/%T/%N%S
XMBINDDIR=/usr/dt/lib/bindings
XMICONBMSEARCHPATH=//.dt/icons/%B%M.bm​://.dt/icons/%B%M.pm​://.dt/icons/%B​:/usr/dt/appconfig/icons/%L/%B%M.bm​:/usr/dt/appconfig/icons/%L/%B%M.pm​:/usr/dt/appconfig/icons/%L/%B​:/usr/dt/appconfig/icons/C/%B%M.bm​:/usr/dt/appconfig/icons/C/%B%M.pm​:/usr/dt/appconfig/icons/C/%B
XMICONSEARCHPATH=//.dt/icons/%B%M.pm​://.dt/icons/%B%M.bm​://.dt/icons/%B​:/usr/dt/appconfig/icons/%L/%B%M.pm​:/usr/dt/appconfig/icons/%L/%B%M.bm​:/usr/dt/appconfig/icons/%L/%B​:/usr/dt/appconfig/icons/C/%B%M.pm​:/usr/dt/appconfig/icons/C/%B%M.bm​:/usr/dt/appconfig/icons/C/%B
_=/usr/dt/bin/dtaction
_INIT_PREV_LEVEL=S
_INIT_RUN_LEVEL=3
_INIT_RUN_NPREV=0
_INIT_UTS_ISA=sparc
_INIT_UTS_MACHINE=sun4u
_INIT_UTS_NODENAME=bronco
_INIT_UTS_PLATFORM=SUNW,UltraSPARC-IIi-Engine
_INIT_UTS_RELEASE=5.7
_INIT_UTS_SYSNAME=SunOS
_INIT_UTS_VERSION=Generic_106541-07
dtstart_sessionlogfile=/dev/null
===========8<=========snip========8<========

Here's the output of "perl -V" when I'm in the "t" directory​:
# ./perl -V -I../lib
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration​:
  Platform​:
  osname=solaris, osvers=2.7, archname=sun4-solaris
  uname='sunos bronco 5.7 generic_106541-07 sun4u sparc sunw,ultrasparc-iii-engine '
  hint=recommended, useposix=true, d_sigaction=define
  usethreads=undef useperlio=undef d_sfio=undef
  Compiler​:
  cc='gcc -B/usr/ccs/bin/', optimize='-O', gccversion=2.95.1 19990816 (release)
  cppflags='-I/usr/local/include'
  ccflags ='-I/usr/local/include'
  stdchar='char', d_stdstdio=define, usevfork=false
  intsize=4, longsize=4, ptrsize=4, doublesize=8
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
  alignbytes=8, usemymalloc=y, prototype=define
  Linker and Libraries​:
  ld='gcc -B/usr/ccs/bin/', ldflags =' -L/usr/local/lib'
  libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
  libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
  libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
  cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

Characteristics of this binary (from libperl)​:
  Built under solaris
  Compiled at Sep 7 1999 14​:43​:03
  @​INC​:
  ../lib
  /usr/local/lib/perl5/5.00503/sun4-solaris
  /usr/local/lib/perl5/5.00503
  /usr/local/lib/perl5/site_perl/5.005/sun4-solaris
  /usr/local/lib/perl5/site_perl/5.005
  .

@p5pRT
Copy link
Author

p5pRT commented Sep 7, 1999

From [Unknown Contact. See original ticket]

sn@​neopoly.de [sn@​neopoly.de] quoth​:
*>
*>I just setup a new Ultra 10 (clone)​:
*>
*>Installed a fresh Solaris 7 (german).
*>
*>I applied all the latest solaris patches as of 09/03/1999.
*>"uname -a" output after patching​:
*>SunOS bronco 5.7 Generic_106541-07 sun4u sparc SUNW,UltraSPARC-IIi-Engine
*>
*>I downloaded gcc 2.95.1 from sunfreeware.com.
*>
*>I got perl 5.005_03 from CPAN (I built it successfully on Linux).
*>
*>I compiled it with "./configure -des -Dcc=gcc".
*>"make" went just fine.

Since I justt installed 2.95.1 recently and have Solaris 7 I had to
run and check this for myself.

SunOS chaos 5.7 Generic_106541-05 sun4u sparc SUNW,Ultra-1
(minor patch rev behind)

gcc version 2.95.1 19990816 (release)
(built it myself)

I was able to build and test pe arl without trouble using the defaults as
well. I do know someone who has IIi sparc that has much trouble getting
64-bit applications to compile and I generally do it for them with
Sparcworks 5. More than likely the gcc package was made with gcc on
another architecture and may not be suitable..I wouldn't trust it anyway.

Run configure again and see if you notice anything weird. I noticed that
db.h didn't get found on this particular pass,but I forgot to add the
path. If that doesn't reveal anything you might try and build gcc from
scratch. And sunfreeware has a non-threaded-32bit package if you lose
hope.

Of course, there is always the possibility that sun broke something on the
last patch cluster...

@p5pRT
Copy link
Author

p5pRT commented Sep 7, 1999

From [Unknown Contact. See original ticket]

Nick Ing-Simmons [nick@​ing-simmons.net] quoth​:
*>Now you mention it there was talk recently on gcc list that one patch set
*>in which affected Sun as/ld and did not work well with gcc-2.95.*​:

It wouldn't be the first time and certainly not the last.

*>>> Dimitri Papadopoulos <dpo@​club-internet.fr> writes​:
*>>> ....
*>>> I realize that you're not having problems in the same place that I was,
*>>> but you're reporting "impossible" random crashes, which is precisely the
*>>> symptoms of the problem created by patch 107058-01 at least in my
*>>> experience.

This patch, according to sunsolve, was released in January. It wasn't
installed on the system I tested it on as I don't have 64-bit turned on.
It is a 64-bit OS specific patch. I'd be curious to see if removing the
patch fixed the problem. Sunsolve didn't have anything, as expected, about
it. Mr. Burlingson from Sun may have some insight.

It doesn't seem to effect sparcworks though :)

e.

@p5pRT
Copy link
Author

p5pRT commented Sep 7, 1999

From [Unknown Contact. See original ticket]

Happyfunball <elaine@​chaos.wustl.edu> writes​:

Of course, there is always the possibility that sun broke something on the
last patch cluster...

Now you mention it there was talk recently on gcc list that one patch set
in which affected Sun as/ld and did not work well with gcc-2.95.*​:

Dimitri Papadopoulos <dpo@​club-internet.fr> writes​:
....
I realize that you're not having problems in the same place that I was,
but you're reporting "impossible" random crashes, which is precisely the
symptoms of the problem created by patch 107058-01 at least in my
experience.

--
Nick Ing-Simmons

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