Edd
2008-Apr-25 09:29 UTC
[Samba] Samba segs when serving files from a windows partition on OpenBSD-4.2
Hi, Before I file a bug report, I just wanted to check that samba is capable of serving files from a FAT32 partition. I have here an OpenBSD-4.2 i386 machine here with a second disk containting files that I will be sharing via both NFS and samba. The NFS share work great, but samba seg faults upon a windows client connecting. This occurs when using the OpenBSD package, and also when built from scratch using the most recent version of samba (downloaded yesterday). If I change the share path to a directory on a UFS partition, all is well. I can not get a stack trace, as even with symbols enabled, the log tells me that it cannot make a core dump for this architecure. I can however get a "log level = 10" paste later today if needed. Is this a bug or a limitation in samba? Thanks -- Best Regards Edd http://students.dec.bmth.ac.uk/ebarrett
Volker Lendecke
2008-Apr-25 09:33 UTC
[Samba] Samba segs when serving files from a windows partition on OpenBSD-4.2
On Fri, Apr 25, 2008 at 10:14:07AM +0100, Edd wrote:> Before I file a bug report, I just wanted to check that samba is capable > of serving files from a FAT32 partition. I have here an OpenBSD-4.2 > i386 machine here with a second disk containting files that I will be > sharing via both NFS and samba. The NFS share work great, but samba seg > faults upon a windows client connecting. This occurs when using the > OpenBSD package, and also when built from scratch using the most recent > version of samba (downloaded yesterday). > > If I change the share path to a directory on a UFS partition, all is > well. > > I can not get a stack trace, as even with symbols enabled, the log tells > me that it cannot make a core dump for this architecure. > > I can however get a "log level = 10" paste later today if needed. > > Is this a bug or a limitation in samba?Without that debug log it's kindof hard to say. Volker -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.samba.org/archive/samba/attachments/20080425/ad78e9bc/attachment.bin
Uwe Laverenz
2008-Apr-25 09:55 UTC
[Samba] Samba segs when serving files from a windows partition on OpenBSD-4.2
Edd schrieb:> Before I file a bug report, I just wanted to check that samba is capable > of serving files from a FAT32 partition. I have here an OpenBSD-4.2This reminds me of https://bugzilla.samba.org/show_bug.cgi?id=4715 Short description: Samba crashes on any filesystem except UFS. You could test wether it is the same problem or not by installing Samba 3.023 or 3.024. If they work with FAT32, it's probably the same Problem that bites us on FreeBSD (and keeps us from using Samba+FreeBSD in production). :-/ bye, Uwe -- Molkerei Ammerland eG Oldenburger Landstra?e 1a 26215 Wiefelstede Phone : +49-04458-9111- 23 Fax : +49-04458-9111-980 Email : laverenz@molkerei-ammerland.de Web-Site: http://www.molkerei-ammerland.de eG mit Sitz in Wiefelstede, Registergericht Oldenburg, GnR 120009 Vorstand: Gerd Wemken (Vorsitzender), Herbert Heyen (stellv. Vorsitzender), Hermann Boekhoff, Frank Caspers, Werner Freese, Johann Gieseke, Heiko Hinrichs, Fritz-Harald Strodthoff-Schneider, Heino Suhr, Diedrich Wilken Aufsichtsratsvorsitzender: Justus Ackermann
Stephen Borrill
2008-May-13 17:19 UTC
[Samba] Re: Samba segs when serving files from a windows partition on OpenBSD-4.2
On Tue, Apr 29, Jeremy Allison wrote:> On Mon, Apr 28, 2008 at 09:05:29PM +0100, Edd Barrett wrote: >> I am sure that the OpenBSD team will be interested in fixing these bugs >> if they still exist, as they take pride making good quality code. I >> can't speak for NetBSD or FreeBSD. > >> As for the "directory name cache size = 0" it does not work for me. On >> OpenBSD. I used this configuration: > >> [global] >> workgroup = MYGROUP >> server string = Samba Server >> security = share >> log file = /var/log/smbd.%m >> directory name cache size = 0 > >> [public] >> comment = Public Stuff >> path = /mnt/hot/sd0i >> public = yes >> writable = yes >> printable = no > >> I tested this with samba-latest.tgz from your web-page. > >> If I change the path to someplace else on a UFS slice, all is well. > > Did you remove the lib/replace/repdir_getdirentries.c code as > well ? The aborts will still trigger even with "directory name cache > size = 0" if that code is in place.As a data point, I'm getting crashes on NetBSD 3.1 and samba 3.0.28a on a FFSv2 partition. Removing the lib/replace/repdir_getdirentries.c gets it working (even without "directory name cache size = 0"). I'm not sure of the canonical way to remove it, the patch at https://bugzilla.samba.org/attachment.cgi?id=2905 does not work, nor does removing repdir.m4 entirely. I ended up editing source/Makefile and removing the .o files from LIBREPLACE_OBJ. I note the changes in OpenBSD and NetBSD to fix the seekdir() problem, but they didn't seem to help me. -- Dr. Stephen Borrill