Re: mib.c coredump

This is a discussion on Re: mib.c coredump within the SNMP Coders forums, part of the Networking and Network Related category; On Fri, Sep 16, 2005 at 04:39:12PM +0100, Patrick Welche wrote: > On Thu, Sep 15, 2005 at ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-16-2005
Patrick Welche
 
Posts: n/a
Default Re: mib.c coredump

On Fri, Sep 16, 2005 at 04:39:12PM +0100, Patrick Welche wrote:
> On Thu, Sep 15, 2005 at 11:46:10AM +0100, Patrick Welche wrote:
> > (gdb) frame 0
> > #0 0x080520d3 in _get_realloc_symbol (objid=0x80c5c44, objidlen=7,
> > subtree=0x0, buf=0xbfbfe4ec, buf_len=0xbfbfe4f0, out_len=0xbfbfe4f4,
> > allow_realloc=1, buf_overflow=0xbfbfe4f8, in_dices=0x80f8dc0,
> > end_of_known=0xbfbfe4fc) at mib.c:4201
> > 4201 if (tp->next_peer &&
> > (gdb) print *tp
> > Cannot access memory at address 0x0

>
> That bit of code is executed
>
> } else {
> numids = (size_t) * objid + 1;
> if (numids > objidlen) XXX
> goto finish_it;
> if (numids == 1) {
> ...
> } else {
> if (!*buf_overflow) {
>
> now do if ((NULL)->next_peer)
>
> It's odd that at the core dump objidlen=7 and numids=7. Is it possible
> that the line marked XXX should be a >= ? (Can't just try it because of
> the 'string' business..


Intriguing string business and configure patch later, changing the

(numids > objidlen) to (numids >= objidlen)

gets me a core dump at the same place in the code, but further down the
mib (after RMON-MIB::matrixSDErrors[65].. rather than
RMON-MIB::hostTimeOutMulticastPkts[65][995]). Now numids is still 7, but
objidlen is 14.

Thoughts?

Cheers,

Patrick


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
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 11:48 AM.


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