From owner-freebsd-questions@FreeBSD.ORG Fri Aug 24 09:30:33 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFE5216A417 for ; Fri, 24 Aug 2007 09:30:33 +0000 (UTC) (envelope-from raggen@passagen.se) Received: from av9-1-sn2.hy.skanova.net (av9-1-sn2.hy.skanova.net [81.228.8.179]) by mx1.freebsd.org (Postfix) with ESMTP id 8FBF613C4A3 for ; Fri, 24 Aug 2007 09:30:33 +0000 (UTC) (envelope-from raggen@passagen.se) Received: by av9-1-sn2.hy.skanova.net (Postfix, from userid 502) id EDDD33841D; Fri, 24 Aug 2007 11:30:31 +0200 (CEST) Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av9-1-sn2.hy.skanova.net (Postfix) with ESMTP id 738873855C for ; Fri, 24 Aug 2007 11:30:31 +0200 (CEST) Received: from [192.168.1.31] (90-230-142-213-no41.tbcn.telia.com [90.230.142.213]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id 6047B37E42 for ; Fri, 24 Aug 2007 11:30:31 +0200 (CEST) Message-ID: <46CEA517.8030204@passagen.se> Date: Fri, 24 Aug 2007 11:29:59 +0200 From: Roger Olofsson User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: User Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: FreeBSD and ImageMagick crashes OS? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2007 09:30:33 -0000 Dear mailing list, The other day I encountered a strange phenomena. Having run FreeBSD since 3.x I have never had a server crash on me until now. I completely blame the FreeBSD developers for spoiling me like that. Now, when I get spoiled, it's hard to go back so when my webserver tried to handle a 7Mb JPG using ImageMagick and managed to crash the server I naturally got curious. Turns out ImageMagick was called through php to resize the .JPG and most likely, the server runs out of memory/disk space. /var/tmp fills up and console spews as follows: Aug 22 19:29:49 rutilus kernel: vnode_pager_putpages: I/O error 28 Aug 22 19:29:49 rutilus kernel: vnode_pager_putpages: residual I/O 32768 at 62620 Aug 22 19:29:49 rutilus kernel: pid 29 (syncer), uid 0 inumber 49382 on /var: filesystem full Server drops net and does not respond to keyboard input, not even on console. Now, I realize that changing settings for ImageMagick and having a bigger /var disk and using a smaller .JPG of course would avoid the crash. But, I still am somewhat "kerfuffled" about the fact that it brings my favourite operating system to its knees........ I'd want FreeBSD to intercept and log the error, the application should in my world be contained by the operating system and never ever be allowed to crash it. As the old saying was once - "an operating system should emulate crashes, not crash while emulating". I know, I know, you can't stop applications from doing whatever crazy stuff they do and some might even crash the OS as it appears. Luckily there's 3 versions of the OS inbetween the crashes though ;^) Just thought I'd share this with the list. Greetings from Sweden /Roger