Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: ross beazley <rossbeazley@lycos.co.uk>
To: buildroot@busybox.net
Subject: [Buildroot] mmap segfaults and samba - take 2!  (plain text mail)
Date: Fri, 25 May 2007 08:05:14 +0000	[thread overview]
Message-ID: <104683658812099@lycos-europe.com> (raw)

Hi,

First of all---   sorry for the total garbage i sent in my first email... this should be plain text now.... sorry!


ive recently got myhands on a hp thin client with a 32meg flash disk and transmeta crusoecpu. Ive been trying to get a uclibc system built with samba and dropbear ssh server on it so i can use it as a san style device. Samba however is causing my problems, everything builds ok but when the samba deamons are starting up they segfault.

I did a bit of a strace on the binary and it looks like the call to mmap is causing the problem.

galactica:/usr/sbin$ strace smbd
execve("/usr/sbin/smbd", ["smbd"], [/* 21 vars */]) = 0
mmap2(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ff4000
mprotect(0x80000000, 2528548, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=1393, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
mmap2(NULL, 1393, PROT_READ, MAP_SHARED, 3, 0) = 0xb7ff3000
close(3)                                = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 14335 detached

On my local full fat debian box the value looks like 4096, which seams correct from what i have read else where, something to do with kernel page sizes? im still very new at this im afraid.

Ive tried this with the snapshot from the 24th of may, latest snapshot of uclibc and the 0.9.29 version. Im using the 2.6.20.4 kernel and I think the version of samba is 3.0.23d, anyway its the one in the package selection.

So really im seeking advice on where to go from here?? Should i be speaking to kernel people, ive had a look through most of the kernel stuff and I cant find anything obvious to configure.

any help would be gratefully recieved...

cheers

Ross

ps hope this works this time....

Lycos email has 300 Megabytes of free storage... Get it now at mail.lycos.co.uk

                 reply	other threads:[~2007-05-25  8:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=104683658812099@lycos-europe.com \
    --to=rossbeazley@lycos.co.uk \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox