samba dumps core while starting
Richard Sharpe
realrichardsharpe at gmail.com
Tue Jan 13 08:09:36 MST 2015
On Tue, Jan 13, 2015 at 5:48 AM, dish kyao <dishkyaao at gmail.com> wrote:
> line 733 : regdb = db_open(NULL, state_path("registry.tdb"), 0,
>
OK, the only thing I can think that has gone wrong is that state_path
has seg faulted.
Perhaps you can run it under gdb to see where it actually failed
because that stacktrace you sent earlier had one weird entry in it
(the first line.)
>
> WERROR regdb_init(void)
>
> {
>
> int32_t vers_id;
>
> WERROR werr;
>
> NTSTATUS status;
>
>
>
> if (regdb) {
>
> DEBUG(10, ("regdb_init: incrementing refcount (%d->%d)\n",
>
> regdb_refcount, regdb_refcount+1));
>
> regdb_refcount++;
>
> return WERR_OK;
>
> }
>
>
>
> regdb = db_open(NULL, state_path("registry.tdb"), 0,
>
> REG_TDB_FLAGS, O_RDWR, 0600,
>
> DBWRAP_LOCK_ORDER_1);
>
> if (!regdb) {
>
> regdb = db_open(NULL, state_path("registry.tdb"), 0,
>
> REG_TDB_FLAGS, O_RDWR|O_CREAT, 0600,
>
> DBWRAP_LOCK_ORDER_1);
>
> if (!regdb) {
>
> werr =
> ntstatus_to_werror(map_nt_error_from_unix(errno));
>
> DEBUG(1,("regdb_init: Failed to open registry %s
> (%s)\n",
>
> state_path("registry.tdb"), strerror(errno)
> ));
>
> return werr;
>
> }
>
>
>
> werr = regdb_store_regdb_version(regdb, REGDB_CODE_VERSION);
>
> if (!W_ERROR_IS_OK(werr)) {
>
> DEBUG(1, ("regdb_init: Failed to store version:
> %s\n",
>
> win_errstr(werr)));
>
>
>
>
>
> On Mon, Jan 12, 2015 at 10:49 PM, Richard Sharpe
> <realrichardsharpe at gmail.com> wrote:
>>
>> On Wed, Jan 7, 2015 at 7:12 AM, dish kyao <dishkyaao at gmail.com> wrote:
>> > Samba version : samba-4.1.12, AIX 6.1,
>> >
>> >
>> > compilation was ok. but smbd not starting.
>> >
>> >
>> >
>> > gdb --dbx /opt/samba/sbin/smbd /root/core
>> >
>> > Core was generated by `smbd'.
>> >
>> > Program terminated with signal 4, Illegal instruction.
>> >
>> > #0 0x0000000000000000 in ?? ()
>> >
>> > (gdb) where
>> >
>> > #0 0x0000000000000000 in ?? ()
>> >
>> > #1 0x0900000008406760 in regdb_init () at
>> > ../source3/registry/reg_backend_db.c:733
>> >
>> > #2 0x0900000008414a98 in registry_init_common () at
>> > ../source3/registry/reg_init_basic.c:33
>> >
>> > #3 0x090000000826d590 in registry_init_full () at
>> > ../source3/registry/reg_init_full.c:80
>> >
>> > #4 0x0000000100002414 in main (argc=2, argv=0xffffffffffffab8) at
>> > ../source3/smbd/server.c:1414
>> >
>> > (gdb)
>>
>> Please show us the lines around 733 in source3/registry/reg_backend_db.c.
>>
>> > Last few lines of log file with debug 10
>> >
>> > ==================================
>> >
>> > [2015/01/07 23:08:32, 4, pid=36241414, effective(0, 0), real(0, 0)]
>> > ../source3/param/loadparm.c:4878(lp_load_ex)
>> >
>> > pm_process() returned Yes
>> >
>> > [2015/01/07 23:08:32, 7, pid=36241414, effective(0, 0), real(0, 0)]
>> > ../source3/param/loadparm.c:5168(lp_servicenumber)
>> >
>> > lp_servicenumber: couldn't find homes
>> >
>> > [2015/01/07 23:08:32, 4, pid=36241414, effective(0, 0), real(0, 0)]
>> > ../source3/smbd/sec_ctx.c:176(get_current_groups)
>> >
>> > get_current_groups: user is in 7 groups: 0, 2, 3, 7, 8, 10, 11
>> >
>> > [2015/01/07 23:08:32, 5, pid=36241414, effective(0, 0), real(0, 0)]
>> > ../source3/lib/messages.c:293(messaging_register)
>> >
>> > Registering messaging pointer for type 2 - private_data=0
>> >
>> > [2015/01/07 23:08:32, 5, pid=36241414, effective(0, 0), real(0, 0)]
>> > ../source3/lib/messages.c:293(messaging_register)
>> >
>> > Registering messaging pointer for type 9 - private_data=0
>> >
>> > [2015/01/07 23:08:32, 2, pid=36241414, effective(0, 0), real(0, 0)]
>> > ../source3/lib/tallocmsg.c:124(register_msg_pool_usage)
>> >
>> > Registered MSG_REQ_POOL_USAGE
>> >
>> > [2015/01/07 23:08:32, 5, pid=36241414, effective(0, 0), real(0, 0)]
>> > ../source3/lib/messages.c:293(messaging_register)
>> >
>> > Registering messaging pointer for type 11 - private_data=0
>> >
>> > [2015/01/07 23:08:32, 5, pid=36241414, effective(0, 0), real(0, 0)]
>> > ../source3/lib/messages.c:293(messaging_register)
>> >
>> > Registering messaging pointer for type 12 - private_data=0
>> >
>> > [2015/01/07 23:08:32, 2, pid=36241414, effective(0, 0), real(0, 0)]
>> > ../source3/lib/dmallocmsg.c:78(register_dmalloc_msgs)
>> >
>> > Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
>> >
>> > [2015/01/07 23:08:32, 5, pid=36241414, effective(0, 0), real(0, 0)]
>> > ../source3/lib/messages.c:293(messaging_register)
>> >
>> > Registering messaging pointer for type 1 - private_data=0
>> >
>> > [2015/01/07 23:08:32, 5, pid=36241414, effective(0, 0), real(0, 0)]
>> > ../source3/lib/messages.c:293(messaging_register)
>> >
>> > Registering messaging pointer for type 5 - private_data=0
>>
>>
>>
>> --
>> Regards,
>> Richard Sharpe
>> (何以解憂?唯有杜康。--曹操)
>
>
--
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)
More information about the samba-technical
mailing list