🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #9699

Re: sendto() crashes my sun

#9699
From: Casper H.S. Dik
Date: Thu, 15 Dec 1988 22:10
36 lines
1814 bytes
stcspe!dfr@stcvax.UUCP (Dennis F. Reed) writes:
>i have a simple(?) application developed on a 4.3bsd vax which uses unix
>domain datagram sockets to communicate between processes.  most packets
>are small (<128 bytes).  i moved it over to a sun-3 running sunos 3.5
>(also tried a sun-2 running 3.4) and it appears that when a process calls
>sendto(), the system crashes with the message:
>
>panic: sbappendaddr
>
>is this a know problem?...

I had the same problem some time ago. SOCK_DGRAM in AF_UNIX is a *nightmare*.

I got various panics:

panic: sbappendaddr
    This happens when sending a zero length package,
    Work around: test on message length

panic: bread: size 0
    This happens when doing a cat > socket.

No SIGURG/SIGIO is send when FASYNC is specified.

Using MSG_OOB gives a panic(forgot which) too instead of
'Protocol not supported'

Also some bus errors occured, though seemingly random.  The programs I
wrote worked alright on a Gould running UTX 2/06.  Apparently, the code
for this little used protocol is very poor.

I stopped using SOCK_DGRAM,AF_UNIX and did a rm on the programs I wrote.

Casper H.S. Dik
University of Amsterdam     dik@uva.uucp
The Netherlands             ...!uunet!mcvax!uva!dik
Technical Details
Message-ID: <582@uva.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!ames!mailrus!cornell!uw-beaver!rice!sun-spots-request
References: <8812012039.AA00175@stcspe.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!lll-tis!ames!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: dik@uva.UUCP (Casper H.S. Dik)
Newsgroups: comp.sys.sun
Subject: Re: sendto() crashes my sun
Message-ID: <582@uva.UUCP>
Date: 15 Dec 88 22:10:12 GMT
References: <8812012039.AA00175@stcspe.UUCP>
Sender: usenet@rice.edu
Organization: Rice University, Houston, Texas
Lines: 35
Approved: Sun-Spots@rice.edu
Original-Date: 13 Dec 88 22:45:51 GMT
X-Sun-Spots-Digest: Volume 7, Issue 58, message 5 of 14
X-Issue-Reference: v7n49