Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 ggr 10/10/85; site bentley.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ihnp4!bentley!kwh From: kwh@bentley.UUCP (KW Heuer) Newsgroups: net.lang.c Subject: Dereferencing NULL (was: *p++ = *p results?) Message-ID: <684@bentley.UUCP> Date: Fri, 4-Apr-86 21:05:08 EST Article-I.D.: bentley.684 Posted: Fri Apr 4 21:05:08 1986 Date-Received: Sat, 5-Apr-86 12:31:57 EST References: <312@imagen.UUCP> <258@necis.UUCP>, <2412@utcsri.UUCP>, <678@bentley.UUCP> Organization: AT&T Bell Laboratories, Liberty Corner Lines: 19 In article <678@bentley.UUCP> I wrote: >On the 3b2, neither text or data space is anywhere near address zero, >page zero has no interesting contents, yet it is readable. Apparently >this is so that programs that dereference NULL can be ported! (I wish >they'd at least make it a loader option, so it could be turned off...) I've been informed by e-mail that there may be such a loader option (-z). After much searching I found a manual in which it was documented. The acid test failed, though. On my 3b2/300 running SVR2.0 (swapping), the -z flag was silently ignored (the a.out files compared identical except for timestamp). Apparently this has been implemented in the paging version. (I still think it should be the default.) Incidentally, *NULL bugs are especially elusive on a vax, since address zero normally contains (short)0 (the entry mask for start). Bonus question: Why does tabs.c call strcmp(set_tab,"f(") ? Karl W. Z. Heuer (ihnp4!bentley!kwh), The Walking Lint