From: Ralf Hornik Mailings on
Ralf Hornik Mailings schrieb:
> with linux compiling samba 4 works pretty fine but with opensolaris
> 'snv_111b' 64bit I have problems with the prototype declaration of
> getpwent_r():
I fixed this using --enable-nss-wrapper=yes to work around any NSS
incompatibilities. Now when I try to start samba I get this Error:

root(a)server01:/opt/samba4# ./sbin/samba -i -M single
samba version 4.0.0alpha9-GIT-4abd858 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
samba: using 'single' process model
Failed to bind to ipv4:0.0.0.0:389 - NT_STATUS_INVALID_PARAMETER
task_server_terminate: [cldapd failed to setup interfaces]
samba_terminate: cldapd failed to setup interfaces

The debug output shows:

root(a)server01:/opt/samba4# ./sbin/samba -i -M single -d 12
lp_load: refreshing parameters from /opt/samba4/etc/smb.conf
params.c:pm_process() - Processing configuration file
"/opt/samba4/etc/smb.conf"
Processing section "[globals]"
Processing section "[netlogon]"
Processing section "[sysvol]"
pm_process() returned Yes
adding hidden service IPC$
adding hidden service ADMIN$
samba version 4.0.0alpha9-GIT-4abd858 started.
Copyright Andrew Tridgell and the Samba Team 1992-2009
fcntl_lock 3 34 0 1 2
fcntl_lock: Lock call successful
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
GENSEC backend 'schannel' registered
GENSEC backend 'spnego' registered
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'ntlmssp' registered
NTPTR backend 'simple_ldb'
NTVFS backend 'simple' for type 1 registered
NTVFS backend 'cifs' for type 1 registered
NTVFS backend 'nbench' for type 1 registered
NTVFS backend 'unixuid' for type 1 registered
NTVFS backend 'unixuid' for type 3 registered
NTVFS backend 'unixuid' for type 2 registered
NTVFS backend 'cifsposix' for type 1 registered
NTVFS backend 'smb2' for type 1 registered
NTVFS backend 'default' for type 2 registered
NTVFS backend 'default' for type 3 registered
NTVFS backend 'default' for type 1 registered
NTVFS backend 'posix' for type 1 registered
PROCESS_MODEL 'standard' registered
PROCESS_MODEL 'prefork' registered
PROCESS_MODEL 'single' registered
AUTH backend 'winbind_samba3' registered
AUTH backend 'winbind' registered
AUTH backend 'winbind_wbclient' registered
AUTH backend 'server' registered
AUTH backend 'name_to_ntstatus' registered
AUTH backend 'fixed_challenge' registered
AUTH backend 'unix' registered
AUTH backend 'anonymous' registered
AUTH backend 'sam' registered
AUTH backend 'sam_ignoredomain' registered
SHARE backend [ldb] registered.
SHARE backend [classic] registered.
gendb_search_v: (&(objectclass=ldapSecret)(cn=SAMDB Credentials)) -> 0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
INTERNAL ERROR: Signal 11 in pid 1396 (4.0.0alpha9-GIT-4abd858)
Please read the file BUGS.txt in the distribution
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
PANIC: internal error
BACKTRACE: 17 stack frames:
#0 /opt/samba4/sbin/samba'call_backtrace+0x38 [0x8a41718]
#1 /opt/samba4/sbin/samba'smb_panic+0x29b [0x8a41adb]
#2 /opt/samba4/sbin/samba'fault_report+0x1b1 [0x8a41cb1]
#3 /opt/samba4/sbin/samba'sig_fault+0x4e [0x8a41d1e]
#4 /lib/libc.so.1'__sighndlr+0xf [0xfeaed0cf]
#5 /lib/libc.so.1'call_user_handler+0x2af [0xfeae01bf]
#6 /lib/libc.so.1'strlen+0x30 [0xfea647a0]
#7 /lib/libc.so.1'vsnprintf+0x65 [0xfeab31bd]
#8 /lib/libc.so.1'vasprintf+0x36 [0xfeaae14e]
#9 /opt/samba4/sbin/samba'dbgtext+0x53 [0x8a41113]
#10 /opt/samba4/sbin/samba'cli_credentials_set_secrets+0x1c5 [0x85029f5]
#11 /opt/samba4/sbin/samba'samdb_credentials+0xa2 [0x85aa3e2]
#12 /opt/samba4/sbin/samba'samdb_connect+0x41 [0x85aa481]
#13 /opt/samba4/sbin/samba'prime_ldb_databases+0x6c [0x816213c]
#14 /opt/samba4/sbin/samba'binary_smbd_main+0x6f0 [0x81629f0]
#15 /opt/samba4/sbin/samba'main+0x35 [0x8162c25]
#16 /opt/samba4/sbin/samba'_start+0x7d [0x816196d]
Abort (core dumped)

I read the BUGS.txt but I have no gdb here. Can I do something else to
troubleshoot this?
Regards

Ralf

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Volker Lendecke on
On Tue, Nov 24, 2009 at 02:07:12PM +0100, Ralf Hornik Mailings wrote:
> I installed gdb on Solaris since this seems to also work for sun cc.
> Here is a "bt full".
> Please give me feedback, if you need something else.

That's okay in principle, but please compile with -g to get
the debugging symbols.

Thanks,

Volker
From: Volker Lendecke on
On Tue, Nov 24, 2009 at 02:48:46PM +0100, Ralf Hornik Mailings wrote:
> Volker Lendecke <Volker.Lendecke(a)SerNet.DE> wrote:
>
> >That's okay in principle, but please compile with -g to get
> >the debugging symbols.
>
> It should have compiled with "-g -O":
>
> Samba will be compiled with flags:
> CPP = /opt/SunStudioExpress/bin/cc -E
> CPPFLAGS = -I./include -I. -I./lib -I./../lib/replace
> -I./../lib/talloc -I./.. -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H
> CC = /opt/SunStudioExpress/bin/cc
> CFLAGS = -g -O

Then try to run the command directly under the debugger,
maybe post-mortem analysis does not work for some reason.

Volker