[comp.unix.xenix] bug? with uname

qac@occrsh.ATT.COM (Quentin_Conner) (07/19/89)

Okay, this is a strange one.  What I want to know is if anyone else has
seen anything similar.  I was installing news 2.11B on my 386 box which
runs SCO Xenix 2.1.1.  When trying to run inews, I got a segmentation
violation (memory fault 11).  The weird part is that it happens upon
returning from pathinit() to main().  I looked at it with sdb adn did a
stack trace just before returning to main() and it showed pathinit()
was still there.

Anyway, I isolated the cause of the problem to a call to uname() in
pathinit.c.  The call was successful, and did indeed return the system's
name as expected.  But for some strange reason calling it makes core
dump when returning from pathinit.  I have "adjusted" the source so it
won't call uname() but now I can't sleep at night :-).  I guess it is
just a corrupted library...

Any similar experiences?

Quentin Conner
--------------
qac@occrsh.att.com
att!occrsh!qac