RE: snmpd under cygwin gdb.

2004-07-30 Thread William R. Buckley
Why does the error message, announcing the segmentation fault,
look as if it comes from the DLL (kernel32.dll), and not from snmpd?

Could it be that the segmentation fault owes its observation to a
failure of MS programmers to handle a GPF?

MS code is well know to be full of bugs, so perhaps the problem is
not with gdb, or snmpd, or cygwin.

I suppose I could be wrong but, on the face of it, the reported error
suggests (to me) that the problem is with MS code.

William R. Buckley

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of kumaresh
 malli
 Sent: Thursday, July 29, 2004 4:05 PM
 To: [EMAIL PROTECTED]
 Subject: snmpd under cygwin gdb.
 
 
 Hi All,
 I am getting this segmentation fault error while trying to run
 snmpd under cygwin gdb. Any suggestions or ideas? Thanks for your help
 in advance.
 
 Kmesh
 
 bash-2.05b$ cd
 bash-2.05b$ gdb
 GNU gdb 2003-09-20-cvs (cygwin-special)
 Copyright 2003 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB.  Type show warranty for details.
 This GDB was configured as i686-pc-cygwin.
 (gdb) file /usr/local/sbin/snmpd
 Reading symbols from /usr/local/sbin/snmpd...done.
 (gdb) run -f -L
 Starting program: /usr/local/sbin/snmpd.exe -f -L
 
 Program received signal SIGSEGV, Segmentation fault.
 0x77e75a3d in KERNEL32!IsBadWritePtr ()
from /cygdrive/c/WINDOWS/system32/kernel32.dll
 (gdb)
 
 
 ---
 This SF.Net email is sponsored by OSTG. Have you noticed the changes on
 Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
 one more big change to announce. We are now OSTG- Open Source Technology
 Group. Come see the changes on the new OSTG site. www.ostg.com
 ___
 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
 



---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
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


Re: snmpd under cygwin gdb.

2004-07-30 Thread Dave Shield

 I am getting this segmentation fault error while trying to run
 snmpd under cygwin gdb. Any suggestions or ideas?

This *might* be a bug in the Windows library, as William suggests.
But it might also be a result of a failure in higher level code.

I'd suggest that before trying to point the finger as MS code,
it would be worth looking a little more closely at exactly *where*
the agent is failing, and hopefully *why*.



 (gdb) file /usr/local/sbin/snmpd
 Reading symbols from /usr/local/sbin/snmpd...done.
 (gdb) run -f -L
 Starting program: /usr/local/sbin/snmpd.exe -f -L
 
 Program received signal SIGSEGV, Segmentation fault.
 0x77e75a3d in KERNEL32!IsBadWritePtr ()
from /cygdrive/c/WINDOWS/system32/kernel32.dll
 (gdb)

Try
(gdb)  bt

to display the stack trace of the agent at this point.
Then use up to go back up the stack, until you get to
Net-SNMP code.   What was the call that triggered the crash,
and what were the parameter values?

Dave




---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
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


Re: snmpd under cygwin gdb.

2004-07-30 Thread kumaresh malli
Hi Dave, William,
Here is some more details regarding the environment and back trace
information. Still the segmentation fault points to kernel32.dll.

Environment details:
Host Platform: Microsoft Windows XP professional version 2002 Service Pack 1
Cygwin Version : 2.427
Net-Snmp Version: 5.1.1
GDB Version: GNU gdb 2003-09-20-cvs (cygwin-special)


bash-2.05b$ gdb snmpd.exe
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type show copying to see the conditions.
There is absolutely no warranty for GDB.  Type show warranty for details.
This GDB was configured as i686-pc-cygwin...
(gdb) run -f -L
Starting program: /usr/local/sbin/snmpd.exe -f -L

Program received signal SIGSEGV, Segmentation fault.
0x77e75a3d in KERNEL32!IsBadWritePtr () from
/cygdrive/c/WINDOWS/system32/kernel32.dll
(gdb) bt
#0  0x77e75a3d in KERNEL32!IsBadWritePtr () from
/cygdrive/c/WINDOWS/system32/kernel32.dll
#1  0x0013 in ?? ()
#2  0x0022eb44 in ?? ()
#3  0x0012 in ?? ()
#4  0x0022e000 in ?? ()
#5  0x0022e000 in ?? ()
#6  0x0022d4fc in ?? ()
#7  0x0008 in ?? ()
#8  0x0022f090 in ?? ()
#9  0x77e94809 in SetThreadExecutionState () from
/cygdrive/c/WINDOWS/system32/kernel32.dll
#10 0x610a92ed in cygwin1!__getreent () from /usr/bin/cygwin1.dll
#11 0x0008 in ?? ()
#12 0x0022d558 in ?? ()
#13 0x610a9387 in cygwin1!__getreent () from /usr/bin/cygwin1.dll
#14 0x0a0521b0 in ?? ()
#15 0x0022d568 in ?? ()
#16 0x0022eb44 in ?? ()
(gdb)

Thanks 
Kumaresh Malli

On Fri, 30 Jul 2004 09:37:00 +0100, Dave Shield
[EMAIL PROTECTED] wrote:
 
  I am getting this segmentation fault error while trying to run
  snmpd under cygwin gdb. Any suggestions or ideas?
 
 This *might* be a bug in the Windows library, as William suggests.
 But it might also be a result of a failure in higher level code.
 
 I'd suggest that before trying to point the finger as MS code,
 it would be worth looking a little more closely at exactly *where*
 the agent is failing, and hopefully *why*.
 
 
  (gdb) file /usr/local/sbin/snmpd
  Reading symbols from /usr/local/sbin/snmpd...done.
  (gdb) run -f -L
  Starting program: /usr/local/sbin/snmpd.exe -f -L
 
  Program received signal SIGSEGV, Segmentation fault.
  0x77e75a3d in KERNEL32!IsBadWritePtr ()
 from /cygdrive/c/WINDOWS/system32/kernel32.dll
  (gdb)
 
 Try
(gdb)  bt
 
 to display the stack trace of the agent at this point.
 Then use up to go back up the stack, until you get to
 Net-SNMP code.   What was the call that triggered the crash,
 and what were the parameter values?
 
 Dave
 



---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
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


Re: snmpd under cygwin gdb.

2004-07-30 Thread kumaresh malli
I just thought of adding this details too. I have not made any changes
to net-snmp code. Planning to extend MIB module using C code. But
right now, Just trying to set up development environment under cygwin.
Downloaded net-snmp, compiled and able to run successfully as  a stand
alone program but fails to run under cygwin gdb. Thanks

Kumaresh Malli

On Fri, 30 Jul 2004 09:13:19 -0400, kumaresh malli [EMAIL PROTECTED] wrote:
 Hi Dave, William,
Here is some more details regarding the environment and back trace
 information. Still the segmentation fault points to kernel32.dll.
 
 Environment details:
 Host Platform: Microsoft Windows XP professional version 2002 Service Pack 1
 Cygwin Version : 2.427
 Net-Snmp Version: 5.1.1
 GDB Version: GNU gdb 2003-09-20-cvs (cygwin-special)
 
 bash-2.05b$ gdb snmpd.exe
 GNU gdb 2003-09-20-cvs (cygwin-special)
 Copyright 2003 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB.  Type show warranty for details.
 This GDB was configured as i686-pc-cygwin...
 (gdb) run -f -L
 Starting program: /usr/local/sbin/snmpd.exe -f -L
 
 Program received signal SIGSEGV, Segmentation fault.
 0x77e75a3d in KERNEL32!IsBadWritePtr () from
 /cygdrive/c/WINDOWS/system32/kernel32.dll
 (gdb) bt
 #0  0x77e75a3d in KERNEL32!IsBadWritePtr () from
 /cygdrive/c/WINDOWS/system32/kernel32.dll
 #1  0x0013 in ?? ()
 #2  0x0022eb44 in ?? ()
 #3  0x0012 in ?? ()
 #4  0x0022e000 in ?? ()
 #5  0x0022e000 in ?? ()
 #6  0x0022d4fc in ?? ()
 #7  0x0008 in ?? ()
 #8  0x0022f090 in ?? ()
 #9  0x77e94809 in SetThreadExecutionState () from
 /cygdrive/c/WINDOWS/system32/kernel32.dll
 #10 0x610a92ed in cygwin1!__getreent () from /usr/bin/cygwin1.dll
 #11 0x0008 in ?? ()
 #12 0x0022d558 in ?? ()
 #13 0x610a9387 in cygwin1!__getreent () from /usr/bin/cygwin1.dll
 #14 0x0a0521b0 in ?? ()
 #15 0x0022d568 in ?? ()
 #16 0x0022eb44 in ?? ()
 (gdb)
 
 Thanks
 Kumaresh Malli
 
 
 
 On Fri, 30 Jul 2004 09:37:00 +0100, Dave Shield
 [EMAIL PROTECTED] wrote:
 
   I am getting this segmentation fault error while trying to run
   snmpd under cygwin gdb. Any suggestions or ideas?
 
  This *might* be a bug in the Windows library, as William suggests.
  But it might also be a result of a failure in higher level code.
 
  I'd suggest that before trying to point the finger as MS code,
  it would be worth looking a little more closely at exactly *where*
  the agent is failing, and hopefully *why*.
 
 
   (gdb) file /usr/local/sbin/snmpd
   Reading symbols from /usr/local/sbin/snmpd...done.
   (gdb) run -f -L
   Starting program: /usr/local/sbin/snmpd.exe -f -L
  
   Program received signal SIGSEGV, Segmentation fault.
   0x77e75a3d in KERNEL32!IsBadWritePtr ()
  from /cygdrive/c/WINDOWS/system32/kernel32.dll
   (gdb)
 
  Try
 (gdb)  bt
 
  to display the stack trace of the agent at this point.
  Then use up to go back up the stack, until you get to
  Net-SNMP code.   What was the call that triggered the crash,
  and what were the parameter values?
 
  Dave
 
 



---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
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