Summary: | base sendmail dies of signal 11 on freebsd in a virtualbox guest | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | g1pi <g1pi> | ||||||||||||||||||||||||||||
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||||||||||||||||||||||||||
Status: | Closed Overcome By Events | ||||||||||||||||||||||||||||||
Severity: | Affects Only Me | CC: | eugen | ||||||||||||||||||||||||||||
Priority: | Normal | ||||||||||||||||||||||||||||||
Version: | 8.2-RELEASE | ||||||||||||||||||||||||||||||
Hardware: | Any | ||||||||||||||||||||||||||||||
OS: | Any | ||||||||||||||||||||||||||||||
Attachments: |
|
Description
g1pi
2012-03-19 15:20:16 UTC
Responsible Changed From-To: freebsd-bugs->vbox reassign from misc. It looks like a bug in sendmail so could you please obtain a stacktrace from the failing sendmail? http://www.freebsd.org/doc/en/books/developers-handbook/debugging.html -- Bernhard Froehlich http://www.bluelife.at/ On Mon, Mar 26, 2012 at 02:17:09PM +0200, Bernhard Froehlich wrote:
> It looks like a bug in sendmail so could you please obtain a
> stacktrace from the failing sendmail?
> [...]
Since I succesfully ran several world builds in virtualbox, I agree with
Bernhard: looks like a bug in sendmail.
I am afraid the stack trace (sendmail-g-O2.stack.txt) is not very
informative.
The crash happens repeatably in the call hosts_ctl() at line 4032 of
contrib/sendmail/src/conf.c, which I verified by short-cutting through
the call. Unfortunately, I could not dig deeper, because if I rebuild
also libwrap with "-g" sendmail doesn't crash anymore.
A quick comparison of ktraces taken under virtualbox and qemu (binaries
ktrace.{vbox,qemu}.out, decoded as kdump.{vbox,qemu}.txt) shows signs
of memory corruption: the call
open("/etc/hosts.allow", ...) at kdump.qemu.txt:263
becomes
open(0x57e58955, ...) at kdump.vbox.txt:280
Rebuilding sendmail with -O or -O0 instead of -O2 makes the program
work correctly.
I managed to garble the attachments. Trying to resend them uuencoded. third attempt... GNATS hates me. hope someone can clean up, removing previous messages. Responsible Changed From-To: vbox->dougb This looks like a sendmail problem so I hope dougb has an idea. Responsible Changed From-To: dougb->freebsd-ports I have no connection to sendmail. You probably want to ask gshapiro. Responsible Changed From-To: freebsd-ports->freebsd-ports-bugs Canonicalize assignment. Responsible Changed From-To: freebsd-ports-bugs->dinoex Over to maintainer (via the GNATS Auto Assign Tool) State Changed From-To: open->feedback Does this problem exist with sendmail from ports too? Do you have any milters running? So far, I've not seen crashes of the port version of sendmail. However, I'd not draw conclusions yet, given that the behaviour is not deterministic, and even the "main" sendmail works, in a tiny minority of cases. I have no milters. Regards, g. State Changed From-To: feedback->open feedback received. Responsible Changed From-To: dinoex->freebsd-bugs port is not affected. FWIW, I suddenly have the same problem on a virtual machine running FreeBSD 8.3-stable. It has been running without trouble for a long time (it was upgraded to 8.3-stable about a year ago). From /var/log/messages: May 31 07:40:36 kg-v5 su: tingo to root on /dev/pts/0 Jun 1 03:01:49 kg-v5 kernel: pid 3029 (sendmail), uid 0: exited on signal 11 Jun 1 03:01:49 kg-v5 kernel: pid 3078 (sendmail), uid 0: exited on signal 11 Jun 1 03:01:49 kg-v5 kernel: pid 3081 (sendmail), uid 0: exited on signal 11 Jun 1 03:27:56 kg-v5 kernel: pid 3118 (sendmail), uid 0: exited on signal 11 Jun 1 03:57:57 kg-v5 kernel: pid 3171 (sendmail), uid 0: exited on signal 11 The guest machine has 512 MB RAM. Almost a gig of swap: root@kg-v5# swapinfo -h Device 1K-blocks Used Avail Capacity /dev/ad0s1b 1006400 0B 982M 0% Guest operating system: root@kg-v5# uname -a FreeBSD kg-v5.kg4.no 8.3-STABLE FreeBSD 8.3-STABLE #0: Wed May 2 00:12:29 CEST 2012 root@kg-v5.kg4.no:/usr/obj/usr/src/sys/GENERIC i386 The disk layout is this: root@kg-v5# gpart show ad0 => 63 41942977 ad0 MBR (20G) 63 41942817 1 freebsd [active] (20G) 41942880 160 - free - (80k) root@kg-v5# gpart show ad1 => 34 61439933 ad1 GPT (29G) 34 61439933 1 freebsd-ufs (29G) root@kg-v5# df -h Filesystem Size Used Avail Capacity Mounted on /dev/ad0s1a 989M 354M 555M 39% / devfs 1.0k 1.0k 0B 100% /dev /dev/ad0s1e 989M 26k 910M 0% /tmp /dev/ad0s1f 12G 3.3G 7.9G 29% /usr /dev/ad0s1d 4.3G 1.2G 2.8G 31% /var /dev/ad1p1 28G 18G 8.1G 69% /storage /etc/make.conf on guest machine: # added by use.perl 2012-05-03 21:47:34 PERL_VERSION=5.12.4 The host machine runs FreeBSD 8.2-stable: root@kg-vm# uname -a FreeBSD kg-vm.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #4: Sat Dec 17 17:47:43 CET 2011 root@kg-vm.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64 /etc/make.conf on host machine: NO_PROFILE= true # Avoid compiling profiled libraries # added by use.perl 2011-01-02 02:16:49 PERL_VERSION=5.10.1 Hypervisor is Virtualbox 4.0.8: root@kg-vm# pv virtual* virtualbox-ose-4.0.8 < needs updating (port has 4.0.10) virtualbox-ose-kmod-4.0.8 < needs updating (port has 4.0.10) -- Torfinn Ingolfsen For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped Believed to be fixed with supported versions of sendmail and Virtualbox. If you still have the problem, feel free to re-open this. |