Bluehost.com Web Hosting $6.95

Re: [Samba] [3.2.0] Off by one error

This is a discussion on Re: [Samba] [3.2.0] Off by one error within the Samba forums, part of the Networking and Network Related category; On Wed, Jul 02, 2008 at 12:32:46PM -0400, James Kosin wrote: > Jerry, > > The 3.2....


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-02-2008
Jeremy Allison
 
Posts: n/a
Default Re: [Samba] [3.2.0] Off by one error

On Wed, Jul 02, 2008 at 12:32:46PM -0400, James Kosin wrote:
> Jerry,
>
> The 3.2.0 release is reporting this in the log.nmbd
> [root@beta samba]# cat log.nmbd
> [2008/07/02 12:26:52,* 0] nmbd/nmbd.c:main(849)
> * nmbd version 3.2.0 started.
> * Copyright Andrew Tridgell and the Samba Team 1992-2008
> [2008/07/02 12:26:52,* 0] lib/util_str.c:safe_strcpy_fn(709)
> ERROR: string overflow by 1 (16 - 15) in safe_strcpy [192.168.100.20/24]
>
> Other than this issue; no real problems.


Great (the no problems part) ! Can you attach with gdb to this error
message and get a backtrace when it occurs please ?

Thanks,

Jeremy.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #2 (permalink)  
Old 07-02-2008
Jeremy Allison
 
Posts: n/a
Default Re: [Samba] [3.2.0] Off by one error

On Wed, Jul 02, 2008 at 02:09:48PM -0400, James Kosin wrote:
> -----Original Message-----
> From: Jeremy Allison [mailto:jra@samba.org]
> Sent: Wednesday, July 02, 2008 12:57 PM
> To: James Kosin
> Cc: samba@lists.samba.org
> Subject: Re: [Samba] [3.2.0] Off by one error
>
> On Wed, Jul 02, 2008 at 12:32:46PM -0400, James Kosin wrote:
> > Jerry,
> >
> > The 3.2.0 release is reporting this in the log.nmbd
> > [root@beta samba]# cat log.nmbd
> > [2008/07/02 12:26:52,* 0] nmbd/nmbd.c:main(849)
> > * nmbd version 3.2.0 started.
> > * Copyright Andrew Tridgell and the Samba Team 1992-2008
> > [2008/07/02 12:26:52,* 0] lib/util_str.c:safe_strcpy_fn(709)
> > ERROR: string overflow by 1 (16 - 15) in safe_strcpy [192.168.100.20/24]
> >
> > Other than this issue; no real problems.

>
> Great (the no problems part) ! Can you attach with gdb to this error
> message and get a backtrace when it occurs please ?
>
> Thanks,
>
> Jeremy.
>
> ---
> Jeremy,
>
> I'd need some pointers, I'm not all that familiar with gdb, and there is no way to stop on the error. NMDB still runs after displaying this; so, I don't think a back-trace will help find it when I kill the process.


What you can do is attach to the running process with :

gdb /usr/local/samba/sbin/nmbd
b lib/util_str.c:safe_strcpy_fn:709
attach <pid>
continue

Then when the breakpoint triggers you can type :

bt

to get the backtrace, and also go up the stack
and type out the local variables.

If it happens every time you start nmbd then
that's easier, just type :

gdb --args /usr/local/samba/sbin/nmbd -i
b lib/util_str.c:safe_strcpy_fn:709
run

Thanks !

Jeremy
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0