Bug 8145 - ENOMEM loading winbindd, smbd on netbsd/atari
Summary: ENOMEM loading winbindd, smbd on netbsd/atari
Status: NEW
Alias: None
Product: Samba 3.5
Classification: Unclassified
Component: Winbind (show other bugs)
Version: 3.5.8
Hardware: Other NetBSD
: P5 minor
Target Milestone: ---
Assignee: Michael Adam
QA Contact: Samba QA Contact
Depends on:
Reported: 2011-05-18 05:51 UTC by David Ross
Modified: 2011-05-18 20:49 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description David Ross 2011-05-18 05:51:55 UTC
Don't laugh -- I really do have an Atari running Samba, and it really does have enough memory!  It runs Samba 3.3.15nb1 and 3.0.37nb7 just fine, just not 3.5.8nb1.  (These correspond to the versions of Samba available under NetBSD pkgsrc)

Specifically, this is a 16MB Atari TT030 with a decent amount of swap.  I have built/installed Sambe 3.5.8nb1 multiple times, each time getting "Cannot allocate memory" when attempting to start smbd and winbindd.  I've been able to upgrade the machine to 256MB of physical memory (!) and still see this issue, so I don't thin it has anything to do with actually running out of memory.

Results w/ktrace:
tt030: {89} ktrace -id /usr/pkg/sbin/winbindd
ktrace: exec of '/usr/pkg/sbin/winbindd' failed: Cannot allocate memory

I tried setting resource limits higher but no luck.

To some extent it makes sense that I'd be having these issues because these two binaries are likely the largest on the system.  But still, they should load.

I build Samba myself using -Os and -fomit-frame-pointer flags with gcc.  This should be pretty standard optimization.

I've also built and used Samba 3.5.8nb1 on x86 without issue.

I filed a corresponding NetBSD bug as this could be an issue on the NetBSD side:


Compile Samba 3.5.8nb1 (ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/net/samba35/) on NetBSD 5.1/atari via pkgsrc.  After installing it, try to run /usr/pkg/sbin/winbindd or /usr/pkg/sbin/smbd.  Observe the binaries will not load.

If you'd like I can provide a shell on my Atari to any Samba dev willing to take a look.
Comment 1 Jeremy Allison 2011-05-18 20:49:21 UTC
Sorry, but this is not a blocker. It would be nice to make it work, but we're not delaying a release for this :-).