Article View: comp.soft-sys.andrew
Article #1340Re: Font Problem
From: Todd Inglett
Date: Thu, 08 Oct 1992 14:44
Date: Thu, 08 Oct 1992 14:44
49 lines
2243 bytes
2243 bytes
Excerpts from ext.misc.info-andrew: 8-Oct-92 Re: FontProblem "Z.
Horvat"@RCHGATE.rchl (2018+0)
> One thing i noticed with ATK 5.1 under AIX 3.2 is that
> withoutANDREW_MALLOC_ENV defined any program with the menu point "Delete
> window"would crash by using it. I have built with ANDREW_MALLOC_ENV and
DEBUG_MALLOC(or something similar, i can't remember
Well, unfortunately ANDREW_MALLOC_ENV will cause problems. Tryrunning
bush for example. You can work around the problem by setting
theMALLOCTYPE environment variable to the value "3.1". You can apply
thefollowing patch to atk/apps/runapp.c to permanently "fix" the problem.
*** /tmp/T0WFACzR Thu Oct 8 09:42:34 1992
--- runapp.c Thu Oct 8 09:42:34 1992
***************
*** 86,91 ****
--- 86,111 ----
fd = open("/dev/zero", O_RDWR);
dup(fd); /* one greater */
close(fd);
+ #endif
+
+ #if SY_AIX32
+ {
+ /* This masks some memory corruption problems. */
+ extern char **environ;
+ char *envent = environ[0];
+ void *foo;
+
+ /* This is tricky. The first call to malloc checks
+ * MALLOCTYPE, but putenv uses malloc so we can't use
+ * it. We probably don't want to propogate MALLOCTYPE
+ * to other progs either, so we temporarly put it into
+ * our environment, call malloc, then put things back.
+ */
+ environ[0] = "MALLOCTYPE=3.1";
+ foo = malloc(1);
+ free(foo);
+ environ[0] = envent;
+ }
#endif
initClass();
These problems will be fixed "for real" in the next release of Andrew.
-todd inglett
Technical Details
Message-ID:
<sep4YuQ91JbdB=31xG@rchland.ibm.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!ames!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!rchland.ibm.com!tinglett+References:
<sep4MwY000001G50hS@nike.rz.uni-konstanz.de>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!ames!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!rchland.ibm.com!tinglett+ From: tinglett+@rchland.ibm.com (Todd Inglett) Newsgroups: comp.soft-sys.andrew Subject: Re: Font Problem Message-ID: <sep4YuQ91JbdB=31xG@rchland.ibm.com> Date: 8 Oct 92 14:44:10 GMT References: <sep4MwY000001G50hS@nike.rz.uni-konstanz.de> Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: "Todd Inglett" <tinglett@vnet.ibm.com> Distribution: world Organization: The Internet Lines: 49