logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: no memory in netsnmp_set_row_column: msg#00314

Subject: Re: no memory in netsnmp_set_row_column
        [Sorry for the delay in responding]

> I got this message when I start the snmpd and it tries to populate a 
> table! Can we assume safely that this is memory allocation failure? 

Probably.  There are three places where this message is produced.
Two of them are checks after simple memory allocations (in
netsnmp_set_row_column and netsnmp_mark_row_column_writable)

The third is a check after a 'memdup' call.   That's probably the
most likely of the three.


> the code is like:
> row = netsnmp_create_table_data_row();
> 
> netsnmp_table_row_add_index(row...
> netsnmp_set_row_column(row,...

If this is still a problem, you probably need to look at the parameters
that are being passed to the ns_set_row_column routine.  In particular,
the last two parameters (the pointer to the data, and its length).

If you can't spot the problem, we'd probably need to see the code in
a bit more detail.

Dave




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


<Prev in Thread] Current Thread [Next in Thread>