3.2.3 and qemu: could not init smb messaging context

Bug #278712 reported by Jan Evert van Grootheest
2
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: samba

I've got win2k in a qemu vm and I'm using '-smb' with my home directory. When I try to reach that network drive, smbd crashes. The log is below. And w2k reports that the network path was not found.
Smbd reports that it is dumping core in /var/log/samba/cores/smbd, but nothing shows up there.

So there might be two bugs here, one being that it crashes, as in the log below.
The second being that there is no coredump.

Note that I 'chgrp adm /var/*/samba' and 'chmod g+rw /var/*/samba' to be able to run samba as a regular user. This is because of bug 50385.

This is intrepid, uptodate to today, 5-oct-2008, it is 2:3.2.3-1ubuntu2. And this is a x86_64 install.
If there's something else you'd like me to do, just ask. It is very easy to reproduce.

This is all that is logged for the whole run in /var/log/samba/smbd.log:
[2008/10/05 19:30:12, 0] smbd/server.c:main(1213)
  smbd version 3.2.3 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2008
[2008/10/05 19:30:12, 0] lib/messages_local.c:messaging_tdb_init(96)
  ERROR: Failed to initialise messages database: Permission denied
[2008/10/05 19:30:12, 0] lib/messages.c:messaging_init(204)
  messaging_tdb_init failed: NT_STATUS_ACCESS_DENIED
[2008/10/05 19:30:12, 0] lib/util.c:smb_panic(1663)
  PANIC (pid 15018): Could not init smbd messaging context
[2008/10/05 19:30:12, 0] lib/util.c:log_stack_trace(1767)
  BACKTRACE: 6 stack frames:
   #0 /usr/sbin/smbd(log_stack_trace+0x1c) [0x7f526f56ec5d]
   #1 /usr/sbin/smbd(smb_panic+0x5b) [0x7f526f56ed6b]
   #2 /usr/sbin/smbd(smbd_messaging_context+0x3f) [0x7f526f42d4d7]
   #3 /usr/sbin/smbd(main+0x68d) [0x7f526f42de8a]
   #4 /lib/libc.so.6(__libc_start_main+0xe6) [0x7f526c0a0466]
   #5 /usr/sbin/smbd [0x7f526f42cd89]
[2008/10/05 19:30:12, 0] lib/fault.c:dump_core(201)
  dumping core in /var/log/samba/cores/smbd

Revision history for this message
Jan Evert van Grootheest (j-e-van-grootheest) wrote :

Please note that there's a simple 'chmod g+rw /var/run/samba/message.tbd' fixes the access denied and thus prevents the whole stacktrace.
But I just thought that I should report it anyways.

Revision history for this message
Thierry Carrez (ttx) wrote :

Thanks for reporting, this is really a dupe of bug 50385... though it exposes how much samba isn't resilient to file access trouble.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.