🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

3 total messages Started by grunwald Fri, 12 May 1989 03:06
Trouble getting 1.35.0- to run, sun3-os4
#1986
Author: grunwald
Date: Fri, 12 May 1989 03:06
40 lines
1571 bytes
Configuration: sun3-os4, sun3/60, sunos-4

installed g++.xtar.Z of may 11th out of the can with virgin (except RFG patch
to cccp.c) gcc-1.35, using 1.35 to compile.

recompiled and installed current libg++.

symptoms:
	when I try to run most programs, I get a seg fault with the following
trace:

free: illegal address (0x4c33a)
(gdb) where
#0  0x1ec08 in kill ()
#1  0x19906 in abort ()
#2  0x17620 in malloc_verify ()
#3  0x16ae0 in free ()
#4  0x1707c in realloc ()
#5  0x169d0 in malloc ()
#6  0x1a25c in on_exit ()

the on_exit is in crt0+.o -- it's line 457,
  ON_EXIT (_cleanup, 0);

what this seems to indicate is that something w.r.t. malloc is getting
mucked with. In this example, I was using the debugging malloc library
on the sun-3.

In other cases (libg++/tests/tFile), it justs dies in malloc(), presumably
for the same reasons.

libg++/tests/test0 *did* work, but it didn't get back the part where it
tells you that you have a bogus crt1+.o

Has anyone gotten this version to compile & run on a sun3? Any clues?
--
Dirk Grunwald
Univ. of Illinois
grunwald@flute.cs.uiuc.edu
g++-1.35.0- on sun4
#1987
Author: Youda He
Date: Fri, 12 May 1989 04:53
3 lines
719 bytes
I have spend 2 days try to bring g++-1.35.0- (latested) in sun4, I have 
g++-1.34.2 running, both use exact same crt1+.o, libg++/tests/test0 shows
good crt1+.o if compiled by g++-1.34.2, but bad crt1+.o if compiled by 1.35.0-, system is sun4-os4, any one has latest g++ running on sun4?
Re: Trouble getting 1.35.0- to run, sun3-os4 (malloc/SEGV)
#1991
Author: Kevin Sheehan {Consulting Poster...
Date: Sat, 13 May 1989 18:06
54 lines
2303 bytes
In article <GRUNWALD.89May11220605@flute.cs.uiuc.edu> grunwald@flute.cs.uiuc.edu writes:

This is the infamous "unaligned" problem.  What happens is that normal Sun
linker ensure that everything is 4-aligned, g++-ld doesn't.  Sooo, the
startup code calls on_exit(), who calls malloc(), which calls morecore(),
who hands back a 2-aligned chunk, on which free() barfs. (BTW, this was
the first time I got to use gdb - kinda fun!)

You have three options - fix morecore(), fix g++-ld, or add a bogus
short someplace to cause your data/bss to be aligned...
	
	l & h,
	kev

>
>Configuration: sun3-os4, sun3/60, sunos-4
>
>installed g++.xtar.Z of may 11th out of the can with virgin (except RFG patch
>to cccp.c) gcc-1.35, using 1.35 to compile.
>
>recompiled and installed current libg++.
>
>symptoms:
>	when I try to run most programs, I get a seg fault with the following
>trace:
>
>free: illegal address (0x4c33a)
>(gdb) where
>#0  0x1ec08 in kill ()
>#1  0x19906 in abort ()
>#2  0x17620 in malloc_verify ()
>#3  0x16ae0 in free ()
>#4  0x1707c in realloc ()
>#5  0x169d0 in malloc ()
>#6  0x1a25c in on_exit ()
>
>the on_exit is in crt0+.o -- it's line 457,
>  ON_EXIT (_cleanup, 0);
>
>what this seems to indicate is that something w.r.t. malloc is getting
>mucked with. In this example, I was using the debugging malloc library
>on the sun-3.
>
>In other cases (libg++/tests/tFile), it justs dies in malloc(), presumably
>for the same reasons.
>
>libg++/tests/test0 *did* work, but it didn't get back the part where it
>tells you that you have a bogus crt1+.o
>
>Has anyone gotten this version to compile & run on a sun3? Any clues?
>--
>Dirk Grunwald
>Univ. of Illinois
>grunwald@flute.cs.uiuc.edu
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads