From owner-freebsd-current Fri Feb 9 17:37:52 2001 Delivered-To: freebsd-current@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id B96BA37B6A1 for ; Fri, 9 Feb 2001 17:37:30 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.2/8.11.2) with ESMTP id f1A1bTR08154; Sat, 10 Feb 2001 01:37:29 GMT (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.2/8.11.1) with ESMTP id f19HgfN01528; Fri, 9 Feb 2001 17:42:41 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200102091742.f19HgfN01528@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Brian Somers Cc: domi@saargate.de, freebsd-current@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: Strange fopen() behaviour In-Reply-To: Message from Brian Somers of "Tue, 06 Feb 2001 03:23:59 GMT." <200102060324.f163O0610286@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 09 Feb 2001 17:42:41 +0000 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Just to follow up, this was fixed with v1.9 of src/lib/libc/stdio/findfp.c Thanks Maxim ! > > I've cc'd -current as I think something more sinister is going on. > > To recap, I'm having trouble running xsane on -current from about two > > days ago. fopen() is failing... > > > > The attached patch exposes more about what's wrong. Interestingly > > enough, the file it's trying to create is in /tmp (mode 1777, > > separate filesystem), and according to truss: > > > > lstat("/tmp//preview-level-0-15-b924dc",0xbfbfe894) ERR#2 'No such file or directory' > > umask(0x7f) = 7 (0x7) > > /tmp//preview-level-0-15-b924dc17767-microtek:_dev_scanner.ppm: could not create for preview-level 0: No such file or directory > > write(2,0xbfbfe48c,128) = 128 (0x80) > > getuid() = 15 (0xf) > > lstat("/tmp//preview-level-1-15-jNO6zx",0xbfbfe894) ERR#2 'No such file or directory' > > umask(0x7f) = 127 (0x7f) > > /tmp//preview-level-1-15-jNO6zx09158-microtek:_dev_scanner.ppm: could not create for preview-level 1: No such file or directory > > write(2,0xbfbfe48c,128) = 128 (0x80) > > getuid() = 15 (0xf) > > lstat("/tmp//preview-level-2-15-CO6k7w",0xbfbfe894) ERR#2 'No such file or directory' > > umask(0x7f) = 127 (0x7f) > > break(0x8134000) = 0 (0x0) > > /tmp//preview-level-2-15-CO6k7w39017-microtek:_dev_scanner.ppm: could not create for preview-level 2: No such file or directory > > write(2,0xbfbfe48c,128) = 128 (0x80) > > > > fopen() is failing after calling lstat() (I assume via _open()) !!! > > As if the "wb" didn't mean O_CREAT ??!? Very strange. > [.....] > > And just to top it all, I see this in my daily report (first time > I've ever seen it on this machine...): > > dev.lan.Awfulhak.org kernel log messages: > > microuptime() went backwards (18415.166882 -> 18415.158249) > > microuptime() went backwards (18490.192910 -> 18490.187579) > > microuptime() went backwards (19572.644000 -> 19572.638237) > > microuptime() went backwards (19878.637972 -> 19878.637330) > > microuptime() went backwards (20043.869158 -> 20043.868971) > > microuptime() went backwards (20074.159108 -> 20074.152253) > > microuptime() went backwards (20210.078270 -> 20210.072448) > -- > Brian > > Don't _EVER_ lose your sense of humour ! -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message