2.2-CVS failing on Solaris 8

Michael Collin Nielsen michael at hum.auc.dk
Thu Jun 21 19:52:31 GMT 2001


Forgot the stack trace:

#0  tdb_read (tdb=0x1c9968, off=172, buf=0xffbef5cc, len=4, cv=0) at
tdb/tdb.c:263
#1  0x109200 in ofs_read (tdb=0x1c9968, offset=172, d=0xffbef5cc) at
tdb/tdb.c:294
#2  0x10a3f8 in tdb_next_lock (tdb=0x1c9968, tlock=0xffbef5c8,
rec=0xffbef5d8) at tdb/tdb.c:985
#3  0x10a634 in tdb_traverse (tdb=0x1c9968, fn=0x2ff9c <count_fn>,
state=0xffbef678) at tdb/tdb.c:1071
#4  0x30228 in claim_connection (conn=0x0, name=0x118df0 "",
max_connections=100000, Clear=1) at smbd/connection.c:156
#5  0x2d6f8 in main (argc=-1, argv=0xffbef9d4) at smbd/server.c:755

regards

-Michael

On Thu, 21 Jun 2001, Michael Collin Nielsen wrote:
> 
> Hi
> 
> I ran gdb/xxgdb on smbd and placed a breakpoint just before the line in
> question, the variables has the following values:
> 
> 4: len = 4
> 3: (char *) tdb->map_ptr = 0xffffffff <Address 0xffffffff out of bounds>
> 2: off = 172
> 1: buf = (void *) 0xffbef5bc
> 
> is that close to what you need - map_ptr doesn't look good.
> 
> Unfurtunately I cannot get smbd to dump a core :-/
> 
> Regards
> 
> -Mcihael
> 
> On Thu, 21 Jun 2001, Jeremy Allison wrote:
> > Michael Collin Nielsen wrote:
> > > 
> > > Hi
> > > 
> > > Have been trying to get samba-2.2-cvs to run on one of my Sol8 boxes, but
> > > smbd bails out with an internal error.
> > > 
> > > I have traced my problem down to a memcpy in tdb.c:
> > > 
> > > static int tdb_read(TDB_CONTEXT *tdb,tdb_off off,void *buf,tdb_len len,int
> > > cv)
> > > {
> > >         if (tdb_oob(tdb, off + len, 0) != 0) return -1;
> > > 
> > >         if (tdb->map_ptr) memcpy(buf, off + (char *)tdb->map_ptr, len);
> > >                           ^^^^^^
> > > This is the memcpy that generates the internal error.
> > 
> > Can you grab a stack backtrace of this please, and post
> > it with the values of the variables in question.
> > 
> > Thanks,
> > 
> > 	Jeremy.
> > 
> > -- 
> > --------------------------------------------------------
> > Buying an operating system without source is like buying
> > a self-assembly Space Shuttle with no instructions.
> > --------------------------------------------------------
> > 
> 
> -- 
>    Michael Collin Nielsen  mailto:michael at hum.auc.dk
>    M.Sc.E.E.               http://www.hum.auc.dk/~michael
>    Sysadm in Faculty of Humanities, Aalborg University
> 
> 
> 
> 
> 

-- 
   Michael Collin Nielsen  mailto:michael at hum.auc.dk
   M.Sc.E.E.               http://www.hum.auc.dk/~michael
   Sysadm in Faculty of Humanities, Aalborg University






More information about the samba-technical mailing list