HDTenEightyP/NetNews huggingface dataset:
From: david@wal6000b.udc.upenn.edu (R. David Murray)
Newsgroups: comp.unix.aix
Subject: Getting sendmail to be MXer (AIX 3.2)
Date: 19 Aug 92 18:58:42 GMT
Reply-To: david@penndrls.upenn.edu
Organization: University Data Center, University of Pennsylvania

What magic incantation do I need to put into the AIX 3.2 sendmail.cf
file that comes with 3.2 in order to get it to accept mail as an MX
host?  That is, the name server thinks my box is an MX for some
host name, but at the moment it just bounces such mail as 'unknown host'.
Newsgroups: comp.unix.aix
From: lpickup@xanadu.btv.ibm.com (Lance Pickup)
Subject: Re: Debuging Segmentation Violation Fault
Date: Fri, 14 Aug 92 12:16:19 GMT
Reply-To: lpickup@vnet.ibm.com
Organization: IBM Technology Products
Keywords: Segmentation Violation

In article <1992Aug14.040021.25316@mcs.kent.edu>, jhuang@Chaos.mcs.kent.edu (Jing Huang) writes:
|>      Dear netters, I have always wanted to ask this question. To me, the
|> most horrifying error a program can have is "segmentation violation". I never
|> have any clear idea about how to debug this kind of fault. Can someone give
|> me some advice from his own experience on how to solve this fault?
|>
|>      I have this HUGE C program (20,000 lines). Everything worked fine
|> until the other day I added a few (about 10) lines to it. Then all of a sudden,
|> it keeps giving me this "segmentation violation". I ran "dbx" to see if I can
|> get some clue, it gave me something like:
|>
|> segmentation violation in malloc_y at 0xd00d43f0
|> 0xd00d43f0 (malloc_y+0x2a8) 7c7c45aa       stsi   r3,r28,0x8
|>
|>      From these two lines, all I can guess is that the fault is related to
|> "malloc". But "malloc" is used more than dozens of times throughout the
|> program, how am I supposed to know "who steps on whose toe and where".
|>
|>      I am desperate. Could someone tell me what other things I should do
|> beyond these two lines? Or maybe what books or manuals should I read to get
|> more information? What do those address-like (?) numbers all mean?
...

Jing,

  The next step inside dbx would be to use the t command to get a
list of the traceback stack.  The line you see above will be at the
top, the function which called it will be on the next line, and so
on.  You will eventually see your functions in the traceback,
and if you compiled with -g you can even see line numbers and
parameters passed.  This should point you to the line in your code
which is calling malloc which fails.

  Usually malloc fails when it can't honor your request for storage.
i.e. you've requested a huge amount of memory (or even worse, a
negative amount--which I believe translates into a huge amount as
well!).
--
    ...Lance

-----------------------------------------------------------------------
Lance Pickup                VNET/IBM Internet: lpickup@btv
IBM/Vendor Systems                   Internet: lpickup@vnet.ibm.com
Technology Products
Burlington, VT                          Phone: (802) 769-7104 (tie 446)
-----------------------------------------------------------------------
From: engberg@raven.SLAC.Stanford.EDU (daVe)
Newsgroups: comp.unix.aix,slac.users.aix
Subject: gdb crashes AIX 3.2.2
Keywords: AIX 3.2.2 gdb gnu debugger slac slack
Date: 20 Aug 92 22:02:30 GMT
Followup-To: comp.unix.aix

we recently upgraded an RS6000 here on site to AIX 3.2.2, and seem to
have everything working correctly.

unfortunately, gnu's gdb debugger seems to completely crash the
system whenever a program is run from within it.  (i've tried
several times, with different programs)
considering this same version of gdb worked fine with 3.1.7 and
3.2.1, i'm inclined to think that it may have been a system
problem, but i thought i had better check to see if anyone else
had experienced similar difficulties.

daVe "no .signature" engberg


Newsgroups: comp.unix.aix
From: tody@noao.edu (Doug Tody)
Subject: catching integer divide by zero in C code
Reply-To: tody@noao.edu
Organization: National Optical Astronomy Observatories
Date: Wed, 12 Aug 1992 19:49:18 GMT

If I look at the assembler generated for an integer divide statement by the
AIX Fortran compiler I see the following:

	teqi   r0,0x0
	divs   r0,r4,r0

In C code however, the teqi instruction is missing.  This is the instruction
that checks for an integer divide by zero and traps if one is seen.

Looking through the documentation for the C compiler I don't see any way to
generate the integer divide by zero check (-qflttrap is similar but is only
for floating point).  Am I missing something?  Is there any way to do this?

-- 
Doug Tody	National Optical Astronomy Observatories
tody@noao.edu   P.O. Box 26732, Tucson, Arizona, 85726
Newsgroups: comp.unix.aix
From: jhuang@Chaos.mcs.kent.edu (Jing Huang)
Subject: Debuging Segmentation Violation Fault
Keywords: Segmentation Violation
Organization: Kent State University
Date: Fri, 14 Aug 1992 04:00:21 GMT

	Dear netters, I have always wanted to ask this question. To me, the
most horrifying error a program can have is "segmentation violation". I never
have any clear idea about how to debug this kind of fault. Can someone give
me some advice from his own experience on how to solve this fault?

	I have this HUGE C program (20,000 lines). Everything worked fine
until the other day I added a few (about 10) lines to it. Then all of a sudden,
it keeps giving me this "segmentation violation". I ran "dbx" to see if I can
get some clue, it gave me something like:

segmentation violation in malloc_y at 0xd00d43f0
0xd00d43f0 (malloc_y+0x2a8) 7c7c45aa       stsi   r3,r28,0x8

	From these two lines, all I can guess is that the fault is related to
"malloc". But "malloc" is used more than dozens of times throughout the 
program, how am I supposed to know "who steps on whose toe and where".

	I am desperate. Could someone tell me what other things I should do
beyond these two lines? Or maybe what books or manuals should I read to get
more information? What do those address-like (?) numbers all mean?

	Many thanks in advance.

--
Jing Huang  |  jhuang@Chaos.mcs.kent.edu
Department of Physics
Kent State University
Kent, OH 44242
From: koneru@tera.cs.umn.edu (Surya Prasad Koneru)
Newsgroups: comp.unix.aix
Subject: Network tracing on RS6000
Date: 13 Aug 92 20:43:12 GMT
Distribution: usa
Organization: University of Minnesota

Does anyone know how to do network tracing on the RS6000?

I am looking for something like the packet filter on DEC / NIT on the
SUN.

Thanx
SUrya
Newsgroups: comp.unix.aix
From: borchert@titania.mathematik.uni-ulm.de (Andreas Borchert)
Subject: Re: automounted /var/spool/mail
Organization: University of Ulm, SAI
Date: Thu, 13 Aug 92 14:07:21 GMT

In article <1992Aug6.225247.17865@awdprime.austin.ibm.com>, peter@ski.austin.ibm.com (Peter Jeffe 512.838.4019) writes:
> In article <tkevans.713073293@eplrx7.es.dupont.com> tkevans@eplrx7.es.dupont.com writes:
> >We automount /var/spool/mail from a Sun server everywhere.  The
> >AIX systems properly mount the mail spool, but can't write to it.
> >bellmail complains about permissions.  All the other Sun systems
> >around have no problem.  Ideas?  Thanks.
> 
> This is a common problem.  bellmail runs setuid root, and needs the
> mail directory to be exported with root access.  Then it will run
> just fine.  Be sure to get apar ix26324, though, which fixes mail
> locking in general, and over nfs in particular.
> 
> The Sun systems probably have no problems because you've defined
> the sendmail OR option that tells sendmail that the mail directory
> is remote, and to send all mail to the mailhost.  This is a Sunism
> and I haven't seen it on other sendmails, and AIX is no exception
> (for once :-).  There is a DCR 62782 open which suggests that AIX
> should do the same thing, but it won't happen in the very near
> future, so you can either export the mail directory with root
> access, or hack up your sendmail.cf file to send all mail to
> the mailhost.

Mounting /var/spool/mail without root access and without OR option
works on Suns (at least on our net).  The only problem is mail delivery
for the root itself but this can be solved by use of aliases.

-- 
_______________________________________________________________________________

Andreas Borchert, University of Ulm, SAI, D-W-7900 Ulm, Germany

Internet:	borchert@mathematik.uni-ulm.de
From: david@wal6000b.udc.upenn.edu (R. David Murray)
Newsgroups: comp.unix.aix
Subject: Re: Getting sendmail to be MXer (AIX 3.2)
Date: 20 Aug 92 13:57:57 GMT
Reply-To: david@penndrls.upenn.edu
Organization: University Data Center, University of Pennsylvania

In article <1992Aug20.002257.9099@mintaka.lcs.mit.edu>, mycroft@hal.gnu.ai.mit.edu (Charles Hannum) writes:
> (This is not specific to AIX.  It should be in comp.unix.questions, or
> a sendmail group if there is one.)
>  <answer deleted>
> But sendmail configurations vary so much that I cannot even tell you
> approximately where you would want to put that.

Well, the fact that they vary so much is why I posted to the AIX group and
specified that it was the IBM distributed AIX 3.2 sendmail.cf!  I was hoping
that somebody would know the answer off the top of the their head, but
if no one does I'll find our local sendmail experts and get them to help
me reconfigure the whole thing. 
Newsgroups: comp.unix.aix
From: gerth@watson.ibm.com (John Gerth)
Subject: Re: Help with nlist(), XCOFF, and memory architecture...
Date: Thu, 20 Aug 1992 01:24:57 GMT
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
Organization: IBM T.J. Watson Research Center

The call ld_getinfo() in <sys/ldr.h> is documented as something for
the kernel only and so there isn't any mention of it elsewhere.    
It's moral equivalent for us mere mortals is loadquery() with the
L_GETINFO request -- which is documented (and points to <sys/ldr.h>).

I'm pretty sure that the TOC and the 3-word function descriptor
is documented in the Assembler Language manual, along with all
the linkage conventions and whatnot.   The philosophical and design
rationales for the TOC are argued by the AIX architects in 
"RISC System/6000 Technology" (order SA23-2619) in an article
on dynamic loading.

The foregoing notwithstanding, I do believe that this stuff is not
adequately explained or cross-referenced.  Fundamental system services
like the binder and program contents management must be comprehensively
documented to encourage responsible use and exploitation of their
capabilities.  In these matters, ignorance is not bliss.

-- 
John Gerth	 gerth@watson.ibm.com		(914) 784-7639
From: bengsig@dk.oracle.com (Bjorn Engsig)
Newsgroups: comp.unix.aix
Subject: Re: Debuging Segmentation Violation Fault
Keywords: Segmentation Violation
Date: 17 Aug 92 10:24:37 GMT
Reply-To: bengsig@dk.oracle.com (Bjorn Engsig)
Organization: Oracle Denmark

Article <1992Aug14.040021.25316@mcs.kent.edu> by jhuang@Chaos.mcs.kent.edu (Jing Huang) says:
|it keeps giving me this "segmentation violation". I ran "dbx" to see if I can
|get some clue, it gave me something like:
|
|segmentation violation in malloc_y at 0xd00d43f0
|0xd00d43f0 (malloc_y+0x2a8) 7c7c45aa       stsi   r3,r28,0x8
In 99% of the cases when you get segmentation violation (or bus error) in
malloc, it's because you previously malloc'ed less than you actually used.
In some systems (including AIX 3.1), this was not always harmful, as malloc
often gave you (much) more than you asked for.  In other systems (including
AIX 3.2), malloc only gives you very little more than you asked for.  If you
are on 3.2, try running your program with the MALLOCTYPE=3.1 environment--
if that makes your problem disappear, then you surely ask for less than
you use.

BTW, 78.5% of all statistics are made up.
|
|	I am desperate. Could someone tell me what other things I should do
|beyond these two lines? Or maybe what books or manuals should I read to get
|more information?
It will most likely be very beneficial for you to learn how to use the
debugger (dbx).
-- 
Bjorn Engsig,		Internet: bengsig@oracle.com
ORACLE Corporation.	BANG-net: uunet!oracle!bengsig
			Private : bjorn@login.dkuug.dk.
From: etse@soda.berkeley.edu (Eric Tse)
Newsgroups: comp.unix.aix
Subject: Restoring sub-directory for tape
Date: 16 Aug 92 05:16:34 GMT
Article-I.D.: agate.16kobiINN7hr
Organization: U.C. Berkeley, CS Undergraduate Association
NNTP-Posting-Host: soda.berkeley.edu


Hi, 
	I have backup and whole /home using smit but now I only want
to restore some directoried in /home. How can I do that? I need to solve
this very badly and thanks for anyone who can help me.

Eric Tse
----
etse@soda.berkeley.edu
Newsgroups: comp.unix.aix
From: tom@bim.itc.univie.ac.at (Tom Kovar)
Subject: Re: 220 conf'ed for using /usr server
Organization: Inst.of Theor.Chemistry,Univ.of Vienna,Austria
X-Newsreader: Tin 1.1 PL3
Date: Thu, 13 Aug 1992 18:48:13 GMT

tom@bim.itc.univie.ac.at (Tom Kovar) writes:
:   I'am trying to configure our institute's 220's to use the /usr server, and
: have nice problems with it. (Running 3.2)
:   I am installing the system over network, as we have no tape stations on the
: 220's. I used various install images (copied from the original tape, generated
: using mksysb of a running 3.2 system, generated using mksysb of a running 3.2
: with applied 3.2 fixes, with applied patches upgrading the 3.2 to 3.2.1, and
: finaly after applying the patch U401209 and prereq., which should contain
: 220 corrections).
:   After copying a bunch of /usr files, the typical dd-command message comes
: (some thousands records in, 0 records out); after that a pax: error message
: comes, that the following files weren't found in the archive:
: 		/usr/lib/microcode/8d77.32.52
: 		/usr/lib/microcode/8d77.42.52
: 		/usr/lib/microcode/8d77.44.52
: As these files are not on the original installation machine, the only thing
: I could do was to require continuation. It tries to generate bos boot file
: and boot image on the disk, which aborts with the error message, that it
: cannot find the file
: 		/etc//microcode/8d77.32.04
: This file *is* on the original install machine, but it is of no help,as the
: installation is aborted and there is no boot image on the disk.

  Problem solved thanks to the hints from Bob Shair and Michael E. Fail from
IBM. Together with it, our old problems with the X11R4 on 220's (mentioned
already more times here) disappeared.

  Many thanks,
							Tom
Newsgroups: comp.unix.aix
From: nsysdbj@straylight.acs.ncsu.edu (David Joyner)
Subject: Re: SUMMARY: NIS under AIX 3.2
Organization: North Carolina State University
X-Newsreader: Tin 1.1 PL5
Date: Tue, 18 Aug 1992 14:25:41 GMT

Andrew R. Orndorff (drewo@dcatlas.dot.gov) wrote:
: 
: 	One othe question I do have though - has anyone been able to get
: NIS to work through a gateway?? For really idiotic reasons we have a couple
: of our workstations on different subnets and they are unable to 'talk' to
: the NIS servers - even when we try to set the server using the ypset 
: command.
: 

If you are using a bridged Token Ring network and a Cisco router, you
need to call IBM and request a fix for APAR #25227.  If you scream at
them long enough, you may even get the fix within a month or two.  I'm
still waiting...

--
David Joyner (david_joyner@ncsu.edu)
Unix Systems Programmer                            | Phone: (919) 515-2794  |
NCSU Administrative Computing Services             | FAX:   (919) 515-3787  |
From: jzwiebel@pgl-devsvr.den.mmc.com (John Zwiebel 303-977-1480 jzwiebel@pgl-devsvr.den.mmc.com)
Newsgroups: comp.unix.aix
Subject: RS6000 FDDI stack disconnect
Date: 19 Aug 92 23:54:46 GMT
Organization: PAGE @ Martin-Marietta

For those of you running FDDI on the RS6000...

I have about 20 RS6000s and 4 cisco routers on my ring.  Under certain conditions where the ring is forced to renegotiate token rotation time or to enter a beacon state (ring-wrap) several times in a fairly short time, the fddi protocol stack and the IP protocol stack seem to disconnect from one another.  After 22 minutes the stacks reconnect and things run fine again.

If you have the command 'fddistate' it shows that the fddi interface on the RS6000 is running fine yet you can not send any IP out that interface.  The other systems on the net do not report ring wrap and show the 'disconnected' host still operating corrrectly as far as the fddi layer is concerned yet there is no response to any IP traffic.

Anyone else seen this problem?

John Zwiebel
From: rse8135@dewie.tamu.edu (R.S. Etheredge)
Newsgroups: comp.unix.aix
Subject: nfs disc mount
Keywords: nfs, disc, mount
Date: 12 Aug 92 14:19:56 GMT
Organization: Texas A&M University, College Station

Howdee,
I have an RS/6000 with too small a disc. So I wanna nfs mount one of the  
big discs on one of my NeXT machines. Performing the required steps thru  
SMIT and thru NeXT gets me an error on the RS when i want to mount the  
volume tht says something to the order that privileges disallow this  
operation. Anybody have any hints?
Thank you, and have a happy day...
Rusty Etheredge
Political Science Department
Texas A&M University
Newsgroups: comp.unix.aix
From: gary@teal.csn.org (Gary Studwell)
Subject: Re: need help with aXe-3.0 and AIX3.2.0
Keywords: aXe editors AIX 3.2
Organization: Colorado SuperNet, Inc.
Distribution: usa
Date: Mon, 17 Aug 1992 19:35:55 GMT

aXe 3.0 is now working here. Thanks to those who offered advice.
The guts of the fix for AIX3.2 were:
1) The 3.1.6 patch was not needed.
2) Append Axe.ad to my .Xdefaults file and restart mwm.
   (I had assumed there would have been some generic defaults that
   would provide some functionality. Oh well. :-/  )
3) Compile with the MALLOCTYPE environment variable set to 3.1
4) Run with MALLOCTYPE set to 3.1.

  At this point there seems to be one bug  and one gotcha:
with the file nominator window, if the cursor enters the filter
input area at all, the whole thing dies, but I can live with that.
Also, the button shapes do not seem to be supported, but they work
just fine all the same.

-- 
  Gary D. Studwell        |  e-mail:  everest!gary@csn.org or gary@csn.org
  Jefferson County        |     fax:  +1 303 271-5790
    Mapping Department    |   voice:  +1 303 271-5776
  Golden, Colorado 80401  | Opinions?  Policies?  Quotes? NO WAY!
Newsgroups: comp.unix.aix
From: sohrab@seas.gwu.edu (Sohrab Aidun)
Subject: prints from caeds on rs6000 to hp Paintjet prt
Originator: sohrab@seas.gwu.edu
Organization: George Washington University
Date: Wed, 19 Aug 1992 13:08:13 GMT


Hello:

	We have a(n) HP Paintjet XL 300  with a(n) hpgl2 cartridge
connected to our IBM RISC 6000's.  We use the Paintjet to get
color prints of objects created with the CAEDS cad package.
The problem is that the quality of the prints is no where close
to what it should be.  When we talk to the IBM people they tell 
us "HP has to make the proper driver for it", when we talk to 
the HP people we get "IBM should make the driver".
	Presently we are using the xwd command to create screen dumps.
Converting the xwd format to hpgl format with the help of the pbmplus
package, and then send it to the printer.  This makes life hard
on users for they have to change the background color to white, and
by doing this they will not be able to read the numbers off of the
print.

	Can anybody out there help us to get better quality prints?

*****************************************************************************
*  Sohrab Aidun  	George Washington University     SEAS Computing     *
*  sohrab@seas.gwu.edu				  	 (202) 994-6853	    *
*****************************************************************************

Newsgroups: comp.unix.aix
From: prener@watson.ibm.com (Dan Prener)
Subject: Re: Can I build static executables under AIX 3.2 ?
Date: Fri, 14 Aug 1992 02:04:41 GMT
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
Organization: IBM T.J. Watson Research Center, Hawthorne, New York

In article <BsxErE.H9r@news.cso.uiuc.edu> e-sink@uiuc.edu (Eric W. Sink) writes:

>How do I build an app which does NOT use shared libraries ?

Link with the (additional) options

        -bnso -bI:/lib/syscalls.exp

The first, "nso", means "no shared objects", i.e., link in a private
copy of normally shared libraries.  The second "I:..." explicitly 
imports the list of system calls in the named file, to make up for
the fact that these are normally made available by virtue of being
imported by the shared libc.
--
                                   Dan Prener (prener@watson.ibm.com)
From: matt@giskard.austin.ibm.com (Matthew S. Cronk)
Newsgroups: comp.unix.aix
Subject: Re: mksysb now fails
Date: 13 Aug 92 14:07:57 GMT
Reply-To: please don't
Distribution: usa
Organization: haphazard
Originator: matt@giskard.austin.ibm.com


In article <1992Aug12.195553.24130@agouron.com>, kupec@agouron.com
(John W. Kupec) writes:
> [Aug 08 1992, 06:39:40]
>
> mkinsttape failed
> 
> 0512-0016 mksysb: Attempt to create a bootable tape failed:
>         mkinsttape /dev/rmt0.1 failed with return code 5.
> 
> Reading the mksysb script it looks like this is the step where the
> bosinst image is written to tape.

The bosinst image is created by the mkinsttape command, which is a shell
script.  The only exit code of 5 from that script is when the restore command
fails as it attempts to extract some ODM stuff from an archive file.
The command is trying to restore the ODM stuff into a directory called
/tmp/stanzas.  Perhaps that directory is not writable, or the archive file may
be unavailable.
You can run the mkinsttape command from the command line and look for errors.
I would suggest editing /usr/sbin/mkinsttape and searching for the invocation of
restore that is failing (there is only ine such instance).  Remove the redirect
of stderr to /dev/null and watch for the error messages from restore.
Newsgroups: comp.unix.aix
From: jf@edv6000.tuwien.ac.at (Josef Fritscher (58801-5505))
Subject: Re: Equivalent of bar for AIX ?
Reply-To: fritscher@edvz.tuwien.ac.at
Organization: Technical University of Vienna
Date: Thu, 13 Aug 1992 09:51:18 GMT

In article <1992Aug12.162529.12480@iscnvx.lmsc.lockheed.com>, rahner@iscnvx.lmsc.lockheed.com (Mark Rahner) writes:
|> e-sink@uiuc.edu (Eric W. Sink) writes:
|> : Is there a program which will let me archive to floppy disk splitting
|> : across volumes ?  On the Sun, I use bar, which is just a tar lookalike
|> : that knows how to split across multiple floppy disks.  Is there a
|> : similar solution for AIX on my RS 6000 model 220 ?
|> 
|> GNU tar will do this on a NeXT, so there's a good chance that it will
|> work on an RS/6000 too.
|> -- 
|> Mark V. Rahner   rahner@iscnvx.lmsc.lockheed.com

However, IBM's tar does support multiple volumes (suc as disks, tapes, etc.).

-Joe
-- 
Josef Fritscher                     Internet: fritscher@edvz.tuwien.ac.at
Computing Center                      Bitnet: fritscher@awituw64.bitnet
Technical University of Vienna    in reality: jf@edv6000.tuwien.ac.at
Wiedner Hauptstrasse 8-10              Voice: ++431 58 801/5505
A-1040 Vienna, Austria/Europe		 Fax: ++431 58 74 211 
Member of the Austrian Center for Parallel Computation (ACPC)
-------------------------------------------------------------------------
The function of local-in-Universe critical information-gathering and
local-in-Universe problem-solving is manifest in the cockpit of all
great airplanes.                                  (R. Buckminster Fuller)