[Bug 314657] Re: smbd segfault in assert_uid

2009-03-19 Thread Thierry Carrez
*** This bug is a duplicate of bug 216358 ***
https://bugs.launchpad.net/bugs/216358

** This bug has been marked a duplicate of bug 216358
   Samba crashes repeatedly to assert_uid

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 314657] Re: smbd segfault in assert_uid

2009-03-17 Thread Keith Matthews
Paul Dufresne wrote:
> I think I found:
> o   Andrew Tridgell 
> * Avoid a race condition in glibc between AIO and setresuid().
> * Become root for AIO operations.
> taken from the latest (3.0.34 samba changelog):
> 
> 
> This would explain why 
> https://bugs.launchpad.net/ubuntu/+source/samba/+bug/341816
> say that Build the sernet samba packages from source (3.0.34):
> http://ftp.sernet.de/pub/samba/old/src/debian/3.0.34 fix it. (sorry for not 
> saying that before, I was searching where
> I did read that).
> http://www.samba.org/samba/history/samba-3.0.34.html
> 

Interesting, thanks for that Paul.

Not all of their conditions apply, we only have 4 clients that connect 
via SMB, but otherwise looks very similar.

I'll try upgrading (however I haven't seen the problem for a week or so 
now so don't expect quick results).


Keith


-- 
Theme Group
3 & 4 Grove Park
Waltham Road
White Waltham
MAIDENHEAD
Berkshire
England
SL6 3LW

E:   keith.matth...@themegroup.com
T: +44 (0) 1628 829090
F: +44 (0) 1628 828877
I: +44 (0) 1628 828899

http://www.themegroup.com 


Theme Group is a wholly owned trading style of This & That '95 Limited.
Registered in England No: 3092394 at 7/8 Eghams Court, Boston Drive, Bourne
End, Buckinghamshire. SL8 5YS.

This message and its attached file(s), is strictly confidential and intended
solely for the person whom it is addressed. It may contain personal and
confidential information and as such may be protected by the Data Protection
Act 1998. If you received this message in error, you must not copy,
distribute or take any action in reliance on it.  Please notify us as soon
as possible and delete it and any attached files from your system. Any views
expressed in this communication may not necessarily be the views held by
Theme Group. As Internet communications are not secure we do not accept
legal responsibility for the contents of this message nor responsibility for
any change made to this message after the original sender sent it. Although
we have taken steps to ensure that this email and attachments are free from
any virus, we advise that in keeping with good computer practice the
recipient should ensure they are actually virus free.  We advise you to
carry out your own virus check before opening any attachment, as Theme Group
is not liable for any loss or damage arising in any way from this message or
its attachments.  Thank you for taking the time to read this as it may have
been a complete waste of your time.  Very few people bother to read these
things but it proves how special you are 'cause you have, so thanks again.
Please take time to read our terms and conditions at
www.themegroup.co.uk/terms.pdf
http://www.themegroup.co.uk/terms.pdf>

 
---

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 314657] Re: smbd segfault in assert_uid

2009-03-16 Thread Paul Dufresne
** Bug watch added: Debian Bug tracker #510188
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510188

** Also affects: samba (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510188
   Importance: Unknown
   Status: Unknown

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 314657] Re: smbd segfault in assert_uid

2009-03-16 Thread Paul Dufresne
I think I found:
o   Andrew Tridgell 
* Avoid a race condition in glibc between AIO and setresuid().
* Become root for AIO operations.
taken from the latest (3.0.34 samba changelog):


This would explain why 
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/341816
say that Build the sernet samba packages from source (3.0.34):
http://ftp.sernet.de/pub/samba/old/src/debian/3.0.34 fix it. (sorry for not 
saying that before, I was searching where
I did read that).
http://www.samba.org/samba/history/samba-3.0.34.html

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 314657] Re: smbd segfault in assert_uid

2009-03-16 Thread Paul Dufresne
Just to remember it was reported in Debian as (closed because not 
reproductible) bug #501773:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=501773

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 314657] Re: smbd segfault in assert_uid

2009-03-16 Thread Bug Watch Updater
** Changed in: samba (Debian)
   Status: Unknown => New

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 314657] Re: smbd segfault in assert_uid

2009-03-16 Thread Paul Dufresne
A relatively good description of the bug:
http://www.nabble.com/segfault-with-failed-to-set-uid-td16137340.html

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 314657] Re: smbd segfault in assert_uid

2009-03-16 Thread Paul Dufresne
This link suggest bug may have been introduced in samba 3.0.23:
http://lists.zerezo.com/samba/msg26421.html

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 314657] Re: smbd segfault in assert_uid

2009-03-16 Thread Paul Dufresne
Just copying info from someone having this problem with no result.
Taken from http://linux.derkeiler.com/Mailing-Lists/Fedora/2007-08/msg03497.html

I was upgrade our Linux Samba server (Fedora Core 4, kernel 2.6.17,
samba 3.0.23d) to Fedora 7, kernel 2.6.22.2-57.fc7, samba 3.0.25bb-2.fc7
(SELinux in permissive mode), i386 Pentium D 3GHz CPU, 2GB RAM,
LAN with approx. <10 users.
But now users smb daemon sporadically (but frequently, 1-5 times/hour)
crashes. Machine log (Level 2) contain records like this:

[2007/08/21 08:53:18, 0] lib/util_sec.c:set_effective_uid(205)
setresuid failed with EAGAIN. uid(502) might be over its NPROC limit
[2007/08/21 08:53:18, 0] lib/util_sec.c:assert_uid(101)
Failed to set uid privileges to (-1,502) now set to (0,0)
[2007/08/21 08:53:18, 0] lib/util.c:smb_panic(1654)
PANIC (pid 13035): failed to set uid

[2007/08/21 08:53:18, 0] lib/util.c:log_stack_trace(1758)
BACKTRACE: 22 stack frames:
#0 smbd(log_stack_trace+0x2d) [0x802439fd]
#1 smbd(smb_panic+0x5d) [0x80243b2d]
#2 smbd [0x80249f4e]
#3 smbd [0x800b595c]
#4 smbd(pop_sec_ctx+0xa2) [0x800b5af2]
#5 smbd(unbecome_root+0x17) [0x800a9267]
#6 smbd(uid_to_sid+0x15c) [0x801fbc4c]
#7 smbd [0x800bc51d]
#8 smbd(get_nt_acl+0x4ac) [0x800c268c]
#9 smbd [0x800d887b]
#10 smbd(is_visible_file+0x2a0) [0x80060ee0]

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 314657] Re: smbd segfault in assert_uid

2009-03-16 Thread Keith Matthews
Paul Dufresne wrote:
> BTW, I determined that user 0 is root, and -1 is used to say, do not change 
> this value (real user or effective user).
> http://linux.die.net/man/2/setresuid
> Now my very BIG GUESS is that it could be that the code in Samba use -1 
> without a type cast to uid_t.
> And that the code would be ok say, on 32 bits, but not on 64 bits.
> Something like it is exepecting -1 on 32 bits, and received -1 on 64 bits.
> 
> Please provide the output:
> dpkg-query -W -f='${Package} ${Version} ${Source} ${Status}\n' | grep samba
> for the server and the client.
> 
> Then after that I intend to mark it as Confirmed for a developer to look
> at the bug.
> 


Client

libsmbclient 3.0.26a-1ubuntu2.5 samba install ok installed
samba-common 3.0.26a-1ubuntu2.5 samba install ok installed
smbclient 3.0.26a-1ubuntu2.5 samba install ok installed
smbfs 3.0.26a-1ubuntu2.5 samba install ok installed
winbind 3.0.26a-1ubuntu2.5 samba install ok installed


Server
libsmbclient 3.0.28a-1ubuntu4.7 samba install ok installed
samba 3.0.28a-1ubuntu4.7  install ok installed
samba-common 3.0.28a-1ubuntu4.7 samba install ok installed
samba-dbg 3.0.28a-1ubuntu4.7 samba install ok installed
samba-doc 3.0.28a-1ubuntu4.7 samba install ok installed
samba-doc-pdf 3.0.28a-1ubuntu4.7 samba install ok installed
smbclient 3.0.28a-1ubuntu4.7 samba install ok installed



Paul, one last point.

We used to have gutsy on the server, we were not getting this problem
then.

Keith


-- 
Theme Group
3 & 4 Grove Park
Waltham Road
White Waltham
MAIDENHEAD
Berkshire
England
SL6 3LW

E:   keith.matth...@themegroup.com
T: +44 (0) 1628 829090
F: +44 (0) 1628 828877
I: +44 (0) 1628 828899

http://www.themegroup.com 


Theme Group is a wholly owned trading style of This & That '95 Limited.
Registered in England No: 3092394 at 7/8 Eghams Court, Boston Drive, Bourne
End, Buckinghamshire. SL8 5YS.

This message and its attached file(s), is strictly confidential and intended
solely for the person whom it is addressed. It may contain personal and
confidential information and as such may be protected by the Data Protection
Act 1998. If you received this message in error, you must not copy,
distribute or take any action in reliance on it.  Please notify us as soon
as possible and delete it and any attached files from your system. Any views
expressed in this communication may not necessarily be the views held by
Theme Group. As Internet communications are not secure we do not accept
legal responsibility for the contents of this message nor responsibility for
any change made to this message after the original sender sent it. Although
we have taken steps to ensure that this email and attachments are free from
any virus, we advise that in keeping with good computer practice the
recipient should ensure they are actually virus free.  We advise you to
carry out your own virus check before opening any attachment, as Theme Group
is not liable for any loss or damage arising in any way from this message or
its attachments.  Thank you for taking the time to read this as it may have
been a complete waste of your time.  Very few people bother to read these
things but it proves how special you are 'cause you have, so thanks again.
Please take time to read our terms and conditions at
www.themegroup.co.uk/terms.pdf
http://www.themegroup.co.uk/terms.pdf>

 
---

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 314657] Re: smbd segfault in assert_uid

2009-03-13 Thread Paul Dufresne
Well, at first glace it does seems my guess is right.
I have downloaded samba 3.0.28aorig.tar.gz (need to learn the command to 
extract sources and apply ubuntu patches) and found this in util_sec.c:
void set_effective_gid(gid_t gid)
{
#if USE_SETRESUID
setresgid(-1,gid,-1);
#endif

#if USE_SETREUID
setregid(-1,gid);
#endif

#if USE_SETEUID
setegid(gid);
#endif

#if USE_SETUIDX
setgidx(ID_EFFECTIVE, gid);
#endif

assert_gid(-1, gid);
}

There is also:
void set_effective_uid(uid_t uid)
{
#if USE_SETRESUID
/* Set the effective as well as the real uid. */
if (setresuid(uid,uid,-1) == -1) {
if (errno == EAGAIN) {
DEBUG(0, ("setresuid failed with EAGAIN. uid(%d) "
  "might be over its NPROC limit\n",
  (int)uid));
}
}
#endif

#if USE_SETREUID
setreuid(-1,uid);
#endif

#if USE_SETEUID
seteuid(uid);
#endif

#if USE_SETUIDX
setuidx(ID_EFFECTIVE, uid);
#endif

assert_uid(-1, uid);
}

Looks like to me these -1 need to be casted to uid_t or gid_t for 64 bits 
machine to work.
But I am really not a true programmer, so I might be wrong... still, it looks 
bad to me.

I'll take a look at jaunty version to see if it is done the same way.

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 314657] Re: smbd segfault in assert_uid

2009-03-13 Thread Paul Dufresne
Seems in .orig of jaunty (lib/sec_util.c) the functions seems identical.
Oh well, seems there is enough info for at least let a developer verify my 
hypothesis.
Confirming the bug.


** Changed in: samba (Ubuntu)
   Status: Incomplete => Confirmed

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 314657] Re: smbd segfault in assert_uid

2009-03-13 Thread Keith Matthews
Paul Dufresne wrote:
> Thanks you, for your comment.
> Happy to see that you are there to answer more questions.
> 
> Anyway, in an bug #216358, Steve Langasek say:
> "Hitting this assertion error should also generate log entries. Could you 
> please check /var/log/samba/log.smbd (or the per-host logfile) for entries of 
> the form "Failure to set uid privileges to [...]"? "
> 
> I guess, looking the said log file may give a hint.
> 

Paul,

there's nothing in log.smbd like this, but I found the following in one 
of the client logs (it's my Gutsy machine).

[2009/01/09 08:17:14, 0] lib/util.c:log_stack_trace(1737)
   BACKTRACE: 20 stack frames:
#0 /usr/sbin/smbd(log_stack_trace+0x1c) [0x613b4c]
#1 /usr/sbin/smbd(smb_panic+0x43) [0x613c33]
#2 /usr/sbin/smbd [0x618cf1]
#3 /usr/sbin/smbd [0x4ba5ae]
#4 /usr/sbin/smbd(pop_sec_ctx+0x96) [0x4ba726]
#5 /usr/sbin/smbd(unbecome_root+0x9) [0x4afef9]
#6 /usr/sbin/smbd(gid_to_sid+0x168) [0x5d36e8]
#7 /usr/sbin/smbd(get_nt_acl+0x44a) [0x4c435a]
#8 /usr/sbin/smbd(is_visible_file+0x26e) [0x46e09e]
#9 /usr/sbin/smbd [0x46e620]
#10 /usr/sbin/smbd(dptr_ReadDirName+0x54) [0x46e694]
#11 /usr/sbin/smbd [0x4a54e4]
#12 /usr/sbin/smbd [0x4a8b13]
#13 /usr/sbin/smbd(handle_trans2+0x1be) [0x4a92ae]
#14 /usr/sbin/smbd(reply_trans2+0x6ea) [0x4afc6a]
#15 /usr/sbin/smbd [0x4c87ce]
#16 /usr/sbin/smbd(smbd_process+0x7e2) [0x4c9bc2]
#17 /usr/sbin/smbd(main+0x8cd) [0x6c5fad]
#18 /lib/libc.so.6(__libc_start_main+0xf4) [0x7f97b2f641c4]
#19 /usr/sbin/smbd [0x45a899]
[2009/01/09 08:17:14, 0] lib/util.c:smb_panic(1638)
   smb_panic(): calling panic action [/usr/share/samba/panic-action 2141]
[2009/01/09 08:17:14, 0] lib/util.c:smb_panic(1646)
   smb_panic(): action returned status 0
[2009/01/09 08:17:14, 0] lib/fault.c:dump_core(181)
   dumping core in /var/log/samba/cores/smbd
[2009/01/09 08:17:14, 1] smbd/service.c:make_connection_snum(1033)
   10.0.0.203 (10.0.0.203) connect to service webtech initially as user 
kmatthews (uid=10009, gid=1009) (pid 2155)
[2009/01/09 08:17:14, 0] lib/util_sec.c:set_effective_uid(205)
   setresuid failed with EAGAIN. uid(10009) might be over its NPROC limit
[2009/01/09 08:17:14, 0] lib/util_sec.c:assert_uid(101)
   Failed to set uid privileges to (-1,10009) now set to (0,0)
[2009/01/09 08:17:14, 0] lib/util.c:smb_panic(1633)
   PANIC (pid 2155): failed to set uid



The line "uid(10009) might be over its NPROC limit"looks interesting.

Keith
-- 
Theme Group
3 & 4 Grove Park
Waltham Road
White Waltham
MAIDENHEAD
Berkshire
England
SL6 3LW

E:   keith.matth...@themegroup.com
T: +44 (0) 1628 829090
F: +44 (0) 1628 828877
I: +44 (0) 1628 828899

http://www.themegroup.com 


Theme Group is a wholly owned trading style of This & That '95 Limited.
Registered in England No: 3092394 at 7/8 Eghams Court, Boston Drive, Bourne
End, Buckinghamshire. SL8 5YS.

This message and its attached file(s), is strictly confidential and intended
solely for the person whom it is addressed. It may contain personal and
confidential information and as such may be protected by the Data Protection
Act 1998. If you received this message in error, you must not copy,
distribute or take any action in reliance on it.  Please notify us as soon
as possible and delete it and any attached files from your system. Any views
expressed in this communication may not necessarily be the views held by
Theme Group. As Internet communications are not secure we do not accept
legal responsibility for the contents of this message nor responsibility for
any change made to this message after the original sender sent it. Although
we have taken steps to ensure that this email and attachments are free from
any virus, we advise that in keeping with good computer practice the
recipient should ensure they are actually virus free.  We advise you to
carry out your own virus check before opening any attachment, as Theme Group
is not liable for any loss or damage arising in any way from this message or
its attachments.  Thank you for taking the time to read this as it may have
been a complete waste of your time.  Very few people bother to read these
things but it proves how special you are 'cause you have, so thanks again.
Please take time to read our terms and conditions at
www.themegroup.co.uk/terms.pdf
http://www.themegroup.co.uk/terms.pdf>

 
---

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://list

[Bug 314657] Re: smbd segfault in assert_uid

2009-03-13 Thread Paul Dufresne
BTW, I determined that user 0 is root, and -1 is used to say, do not change 
this value (real user or effective user).
http://linux.die.net/man/2/setresuid
Now my very BIG GUESS is that it could be that the code in Samba use -1 without 
a type cast to uid_t.
And that the code would be ok say, on 32 bits, but not on 64 bits.
Something like it is exepecting -1 on 32 bits, and received -1 on 64 bits.

Please provide the output:
dpkg-query -W -f='${Package} ${Version} ${Source} ${Status}\n' | grep samba
for the server and the client.

Then after that I intend to mark it as Confirmed for a developer to look
at the bug.

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 314657] Re: smbd segfault in assert_uid

2009-03-13 Thread Paul Dufresne
Thanks you, for your comment.
Happy to see that you are there to answer more questions.

Then, looking the backtrace, I remark:
#2 0x00613c7b in smb_panic (why=)
at lib/util.c:1639
#3 0x00618cf1 in assert_uid (ruid=4294967295, euid=10009)
at lib/util_sec.c:102
#4 0x004ba5ae in become_id (uid=10009, gid=1009) at smbd/sec_ctx.c:57
#5 0x004ba726 in pop_sec_ctx () at smbd/sec_ctx.c:345
#6 0x004afef9 in unbecome_root () at smbd/uid.c:400
#7 0x005d3e31 in uid_to_sid (psid=0x7fffbddf39d0, uid=0)
at passdb/lookup_sid.c:1169
#8 0x004bfd3f in create_file_sids (psbuf=0x7fffbddf38f0,
powner_sid=0x4d34, pgroup_sid=0x0) at smbd/posix_acls.c:668

Well, I am just a bug triager that does try to understand a bit more Linux.
It is unclear to me if ruid=4294967295 is supposed to be Root user, or who else.
Looks like it have try to be user with id=10009, but with the real id of 
4294967295 (root?).
Which would seems ok, since it was called in the context of unbecome_root.

Anyway, in an bug #216358, Steve Langasek say:
"Hitting this assertion error should also generate log entries. Could you 
please check /var/log/samba/log.smbd (or the per-host logfile) for entries of 
the form "Failure to set uid privileges to [...]"? "

I guess, looking the said log file may give a hint.

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 314657] Re: smbd segfault in assert_uid

2009-03-13 Thread Keith Matthews
Paul Dufresne wrote:
> Looks like a dup of bug #216358.
> Posting the result of 'ulimit -S -u' could be usefull.
> 
matt...@r2-d2:~$ ulimit -S -u
86015


Keith

-- 
Theme Group
3 & 4 Grove Park
Waltham Road
White Waltham
MAIDENHEAD
Berkshire
England
SL6 3LW

E:   keith.matth...@themegroup.com
T: +44 (0) 1628 829090
F: +44 (0) 1628 828877
I: +44 (0) 1628 828899

http://www.themegroup.com 


Theme Group is a wholly owned trading style of This & That '95 Limited.
Registered in England No: 3092394 at 7/8 Eghams Court, Boston Drive, Bourne
End, Buckinghamshire. SL8 5YS.

This message and its attached file(s), is strictly confidential and intended
solely for the person whom it is addressed. It may contain personal and
confidential information and as such may be protected by the Data Protection
Act 1998. If you received this message in error, you must not copy,
distribute or take any action in reliance on it.  Please notify us as soon
as possible and delete it and any attached files from your system. Any views
expressed in this communication may not necessarily be the views held by
Theme Group. As Internet communications are not secure we do not accept
legal responsibility for the contents of this message nor responsibility for
any change made to this message after the original sender sent it. Although
we have taken steps to ensure that this email and attachments are free from
any virus, we advise that in keeping with good computer practice the
recipient should ensure they are actually virus free.  We advise you to
carry out your own virus check before opening any attachment, as Theme Group
is not liable for any loss or damage arising in any way from this message or
its attachments.  Thank you for taking the time to read this as it may have
been a complete waste of your time.  Very few people bother to read these
things but it proves how special you are 'cause you have, so thanks again.
Please take time to read our terms and conditions at
www.themegroup.co.uk/terms.pdf
http://www.themegroup.co.uk/terms.pdf>

 
---

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 314657] Re: smbd segfault in assert_uid

2009-03-13 Thread Keith Matthews
Paul Dufresne wrote:
> A closed (not because fixed) Debian bug: 
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468296
> suggests that this could be linked with roaming profiles:
> "Problem resolved, the workstation is not using roaming profiles anymore.
> Probably this was due to misconfigured (better: unconfigured) profile 
> settings in smb.conf."
> 


Paul,  I'm afraid 'could' is the operative word here.

We've seen it from WinXP machines (not using roaming profiles AFAIK) and 
my own Gutsy machine using smbclient.


Keith

-- 
Theme Group
3 & 4 Grove Park
Waltham Road
White Waltham
MAIDENHEAD
Berkshire
England
SL6 3LW

E:   keith.matth...@themegroup.com
T: +44 (0) 1628 829090
F: +44 (0) 1628 828877
I: +44 (0) 1628 828899

http://www.themegroup.com 


Theme Group is a wholly owned trading style of This & That '95 Limited.
Registered in England No: 3092394 at 7/8 Eghams Court, Boston Drive, Bourne
End, Buckinghamshire. SL8 5YS.

This message and its attached file(s), is strictly confidential and intended
solely for the person whom it is addressed. It may contain personal and
confidential information and as such may be protected by the Data Protection
Act 1998. If you received this message in error, you must not copy,
distribute or take any action in reliance on it.  Please notify us as soon
as possible and delete it and any attached files from your system. Any views
expressed in this communication may not necessarily be the views held by
Theme Group. As Internet communications are not secure we do not accept
legal responsibility for the contents of this message nor responsibility for
any change made to this message after the original sender sent it. Although
we have taken steps to ensure that this email and attachments are free from
any virus, we advise that in keeping with good computer practice the
recipient should ensure they are actually virus free.  We advise you to
carry out your own virus check before opening any attachment, as Theme Group
is not liable for any loss or damage arising in any way from this message or
its attachments.  Thank you for taking the time to read this as it may have
been a complete waste of your time.  Very few people bother to read these
things but it proves how special you are 'cause you have, so thanks again.
Please take time to read our terms and conditions at
www.themegroup.co.uk/terms.pdf
http://www.themegroup.co.uk/terms.pdf>

 
---

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 314657] Re: smbd segfault in assert_uid

2009-03-12 Thread Paul Dufresne
Looks like a dup of bug #216358.
Posting the result of 'ulimit -S -u' could be usefull.

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 314657] Re: smbd segfault in assert_uid

2009-03-12 Thread Paul Dufresne
A closed (not because fixed) Debian bug: 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468296
suggests that this could be linked with roaming profiles:
"Problem resolved, the workstation is not using roaming profiles anymore.
Probably this was due to misconfigured (better: unconfigured) profile settings 
in smb.conf."

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 314657] Re: smbd segfault in assert_uid

2009-03-12 Thread Paul Dufresne
Marking bug #264982 as a duplicate of this one, because it does hang on
assert_uid too, although from a totally different backtrace. Not sure if
it is really same cause, but since there is no answer on that bug, seems
a better end, than marking it invalid for no answer.

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 314657] Re: smbd segfault in assert_uid

2009-02-20 Thread Keith Matthews
Mathias Gug wrote:
> Thank you for taking the time to report this bug and helping to make
> Ubuntu better. Could you post your smb.conf file? When does the crash
> happen ? at startup? when a specific client connects?
> 
> ** Changed in: samba (Ubuntu)
>Status: New => Incomplete
> 


Good morning Mathias.

config attached.

Crash happens during access of files, the user may have been connected 
for some time. Not every file and I've not yet managed to find a pattern 
to which ones. It doesn't happen every session either.

More than one user involved, though we don't have many, we're basically 
a Mac shop.

One point - when browsing the bug database a week or so back I noticed 
another report that mentioned problems in a setup with NAS connected 
storage using a Qlogic fibre-channel adaptor.  We have the same 
situation but with a different NAS device, although I've not noticed any 
problems with the other clients (most people connect via Netatalk due to 
Apple's UTF-8 handling differences)

Keith
-- 
Theme Group
3 & 4 Grove Park
Waltham Road
White Waltham
MAIDENHEAD
Berkshire
England
SL6 3LW

E:   keith.matth...@themegroup.com
T: +44 (0) 1628 829090
F: +44 (0) 1628 828877
I: +44 (0) 1628 828899

http://www.themegroup.com 


Theme Group is a wholly owned trading style of This & That '95 Limited.
Registered in England No: 3092394 at 7/8 Eghams Court, Boston Drive, Bourne
End, Buckinghamshire. SL8 5YS.

This message and its attached file(s), is strictly confidential and intended
solely for the person whom it is addressed. It may contain personal and
confidential information and as such may be protected by the Data Protection
Act 1998. If you received this message in error, you must not copy,
distribute or take any action in reliance on it.  Please notify us as soon
as possible and delete it and any attached files from your system. Any views
expressed in this communication may not necessarily be the views held by
Theme Group. As Internet communications are not secure we do not accept
legal responsibility for the contents of this message nor responsibility for
any change made to this message after the original sender sent it. Although
we have taken steps to ensure that this email and attachments are free from
any virus, we advise that in keeping with good computer practice the
recipient should ensure they are actually virus free.  We advise you to
carry out your own virus check before opening any attachment, as Theme Group
is not liable for any loss or damage arising in any way from this message or
its attachments.  Thank you for taking the time to read this as it may have
been a complete waste of your time.  Very few people bother to read these
things but it proves how special you are 'cause you have, so thanks again.
Please take time to read our terms and conditions at
www.themegroup.co.uk/terms.pdf
http://www.themegroup.co.uk/terms.pdf>

 
---


** Attachment added: "smb.conf"
   http://launchpadlibrarian.net/22907536/smb.conf

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 314657] Re: smbd segfault in assert_uid

2009-02-19 Thread Mathias Gug
Thank you for taking the time to report this bug and helping to make
Ubuntu better. Could you post your smb.conf file? When does the crash
happen ? at startup? when a specific client connects?

** Changed in: samba (Ubuntu)
   Status: New => Incomplete

-- 
smbd segfault in assert_uid 
https://bugs.launchpad.net/bugs/314657
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs