realloc(0) maybe rld problem?

New Message Reply Date view Thread view Subject view Author view

Marc Erich Latoschik (marcl++at++TechFak.Uni-Bielefeld.DE)
Wed, 06 Jan 1999 16:36:10 +0100


Hi all again,

if there is somebody still interested in my described problem, here is a
new guess:

Summarize:
I am trying to run a performer2.2 based app under irix6.4 as a port from
irix6.2 and performer 2.0 where it smoothly runs.

About 1 out of 10-15 times the ported viewer runs fine.
But usually, in PipeWin->open(), it creates a

"realloc(0) returnes NULL" error and Performer exits!!!

I tried out lots of things including all combinations of MP modes, but
no difference.

You might allready know the difference in behaviour the different
libmallocs have. E.g. only the SGI version of realloc returns a valid
pointer to a 0 byte allocated area. This is obviously the one, performer
has to use
(see the error it produces), i call it lib1.
My guess is now that, if other libraries that are linked to the
viewer themself have references to a malloc from a library
(i call it lib2) that does not return a valid pointer after realloc(0),
rld looks for the malloc symbol in the allready loaded shared libraris.
Whichever is loaded first is used!!!!
Is the lib1 is loaded, good, the app runs, is lib2 loaded because of as
symbol
resolvation, bad, performer exits.
To me that sound like a valid explanation. Depending on what is loaded
when,
it sometimes runs, sometimes not. (Look at my former mails, there are
allways two processes i think)

What do you think?
If that is so, there is obviously a major bug in a)Performer2.2
or b)in Irix6.4.
If you have no ideas abut, this one is going to be a new bug report ;).

thx in advance

-- 

bye Marc

******************************************************************************** Marc Erich Latoschik, AG-WBS, Technische Fakultaet der Universitaet Bielefeld

Universitaetsstrasse 25 Postfach 100 131 33501 Bielefeld Raum M4-122 Fon: (0521) 106 2919 Fax: (0521) 106 2962

marcl++at++techfak.uni-bielefeld.de http://www.TechFak.Uni-Bielefeld.DE/techfak/persons/marcl/ ********************************************************************************


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Wed Jan 06 1999 - 07:37:45 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.