Re: net-snmp function question

Jonathan Shan <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <Pine.GSO.4.60.0607111501230.21277@liman1a>
Nevermind... the problem was due to char array and pointers and struct and 
strcpy

On Tue, 11 Jul 2006, Jonathan Shan wrote:

> Hello all,
>
> The program works correctly if I run the asyncapp.c demo.
> http://www.net-snmp.org/tutorial/tutorial-4/toolkit/asyncapp/index.html
>
> When I change the code to generate hosts during runtime, the program gives
> me strange errors whenever it invokes snmp-related functions in the
> synchronous function block. I also commented out the asynchronous function
> code.
>
> The specific error is:
>
> lookup 0x08048000 0x00000398 -> 0xb7e52000 0x000294b0 /1 snmp_sess_init
> lookup 0x08048000 0x00000228 -> 0xb7d1a000 0x0006ded0 /1 strdup
> lookup 0x08048000 0x000002c8 -> 0xb7e52000 0x00036520 /1 snmp_open
> Segmentation fault
>
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Net-snmp-users mailing list
> [email protected]
> Please see the following page to unsubscribe or change other options:
> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.