[comp.sys.mips] RISC/os 4.50 - poll

jmk@alice.UUCP (Jim McKie) (07/16/90)

		MIPS Bug Report Form

Synopsis: 
	The poll(2) system call causes the system to panic

User severity:
	Severe. We are unable to proceed with installation of our
	software on a newly purchased RC6280 or to upgrade our
	existing M/2000 and M/120's to RISC/os 4.50.

Description:
	The following short C programme will crash RISC/os 4.50:

		#include <stropts.h>
		#include <poll.h>
		
		main(int argc, char *argv[])
		{
			struct pollfd pollfd;
			int n;
		
			pollfd.events = POLLIN;
			pollfd.fd = 0;
			n = poll(&pollfd, 1, 5000);
			printf("poll returns %d\n", n);
			exit(0);
		}

		PC: 0x8005E4A8  RA: 0x8005E418
		EXC code: 16, `Read Address Error '
		Bad addr: 0x1A, cause: 0x30000010, sr: 0xFF34
		FID: 0xF85F<Cause:ProcBrd,,Type=Read,AccType=HALFWORD,Parity Error Bytes=None>
		FAR: 0x216D4

		PANIC: K_TRAP, proc = 80108A38

	dbx shows this PC to be

  		[poll:241, 0x8005e4a8] 	lw	r25,24(r3)

Package/Version:                                      OS:
	RISC/os						4.50

Configuration:
	RC6280, 96Mb
	M/120, 16Mb

Suggested workaround:
	none known

Report Date:             Submitter name:
	July 16, 1990		Jim McKie

Organization:
	Bell Laboratories

Submitter address:
	Room 2C-419, 600 Mountain Avenue, Murray Hill, NJ 07974

Electronic address:                                          Phone:
	jmk@research.att.com					(201)-582-3482