Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Re: Answers to post: Malloc Problem, shared libs
       [not found] <1995Jan18.134122.14607@decvax.dec.com>
@ 1995-01-21  1:08 ` J Scott Peter
  0 siblings, 0 replies; only message in thread
From: J Scott Peter @ 1995-01-21  1:08 UTC (permalink / raw)


David Srebnick DEG (srebnick@zk3.dec.com) says:
> >Article: 10355
> >Newsgroups: comp.sys.dec
> >From: scotty@netcom.com (J Scott Peter)
> >Subject: Malloc problem, shared libs
> >Organization: NETCOM On-line Communication Services (408 261-4700 guest)
> >Date: Tue, 10 Jan 1995 03:55:07 GMT
> > 
> >2 questions: First, is anyone aware of a problem on a DEC Alpha OSF/1 whereby
> >certain programs under certain recursive conditions start to eat up virtual
> >memory far beyond what they are actually using on the stack or heap,
> >eventually using up all the swap space?

> Early releases of Alpha OSF/1 malloc() used a binary buddy allocation
> scheme.  This algorithm, although very fast, has a high level of
> overhead. For small applications, the overhead is typically about 40%.
> The overhead is not visible or tracked, but, does require swap space.
> The current malloc() algorithm is much more efficient.  Since you did
> not specify what release cause the problem, i assume this is the
> correct answer.

Thanks for your help.  We have OSF/1 V2.0.  Sorry I didn't mention it.

> >other libraries (libX11, libXm, etc) as shared.  How do you individually
> >specify libraries as shared/non-shared on the command line?  The -non_shared
> >and -call_shared flags are not positional.  They affect all the libraries on
> >the command line.

> ld .... foo.o libc.a ..... -lanotherlibs

> The linker will search the .a to resolve externals and the resolution will
> be with non_shared objects. then the .so objects will be used to continue
> the search.

Still not having any luck with the above.  If I add /usr/lib/libc.a into
the library list, whether it's before or after the -lotherlibs, and
whether I use `cc' or `ld -call_shared' to link, I get the following when the
program runs:

22533:test: /sbin/loader: Warning: Can't find strong symbol for dlopen 
22533:test: /sbin/loader: Warning: Can't find strong symbol for dlsym 

These messages repeat several times, then the program `test' seg faults.
Traceback indicates it died calling malloc.

-- 
J Scott Peter XXXIII   //  Wrong thinking is punishable.
scotty@netcom.com     //  Right thinking is as quickly rewarded.
Los Angeles          //  You will find it an effective combination.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-01-21  1:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1995Jan18.134122.14607@decvax.dec.com>
1995-01-21  1:08 ` Answers to post: Malloc Problem, shared libs J Scott Peter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox