Hi all,

have recently had a problem where net-snmp cores

this is from config.log

  $ ./configure --disable-set-support --with-mib-modules=ucd-snmp/disk
ucd-snmp/diskio ucd-snmp/lmSensors ucd-snmp/loadave ucd-snmp/proc
 ucd-snmp/logmatch ucd-snmp/file disman/event disman/schedule host smux
mibII/mta_sendmail --with-cc=gcc --disable-shared --enable-static
--with-default-snmp-version=2 --enable-embedded-perl 

## --------- ##
## Platform. ##
## --------- ##

hostname = ***deleted***
uname -m = sun4v
uname -r = 5.10
uname -s = SunOS
uname -v = Generic_127111-11

and this is from a gdb session.

(gdb) bt
#0  0x000a1488 in netsnmp_cpu_arch_load (cache=0x26f450, magic=0x203c)
    at hardware/cpu/cpu_kstat.c:115
#1  0x000a0ce0 in _cpu_update_stats (reg=1677312, magic=0x2034)
    at hardware/cpu/cpu.c:207
#2  0x000f5de4 in run_alarms () at snmp_alarm.c:252
#3  0x0002ee98 in main (argc=1097728, argv=0x10c000) at snmpd.c:1229

Looking at the code...
cpu->kern_ticks += (unsigned long)cs.cpu_sysinfo.cpu[CPU_KERNEL];

(gdb) print cpu
$2 = (netsnmp_cpu_info *) 0x26f450
(gdb) print *cpu
$3 = {idx = -1, name = "Overall CPU statistics", '\0' <repeats 4073
times>, 
  descr = '\0' <repeats 4095 times>, status = 0, user_ticks = 17039217, 
  nice_ticks = 0, sys_ticks = 0, idle_ticks = 805616626, wait_ticks = 0,

  kern_ticks = 2042323, intrpt_ticks = 0, sirq_ticks = 0, 
  total_ticks = 824697665, sys2_ticks = 2042323, pageIn = 0, pageOut =
0, 
  swapIn = 0, swapOut = 0, nInterrupts = 126464574, nCtxSwitches =
237782279, 
  history = 0x341ea8, next = 0x2717a0}
(gdb) print cs
$4 = {__cpu_stat_lock = {0, 0}, cpu_sysinfo = {cpu = {820534778,
3621378, 
      542002, 0}, wait = {0, 0, 0}, bread = 273, bwrite = 20085, 
    lread = 2904122, lwrite = 169296, phread = 232872, phwrite = 0, 
    pswitch = 54429295, trap = 60491243, intr = 35970530, syscall =
128296534, 
    sysread = 48089496, syswrite = 8770364, sysfork = 283064, sysvfork =
64, 
    sysexec = 302488, readch = 301147927, writech = 1524928557, rcvint =
0, 
    xmtint = 0, mdmint = 0, rawch = 13523, canch = 12324, outch = 28043,

    msg = 6787, sema = 0, namei = 11819276, ufsiget = 305718, 
    ufsdirblk = 265015, ufsipage = 6829, ufsinopage = 204096, inodeovf =
0, 
    fileovf = 0, procovf = 0, intrthread = 825271, intrblk = 0, 
    idlethread = 26499445, inv_swtch = 430248, nthreads = 337619, 
    cpumigrate = 4324571, xcalls = 83725978, mutex_adenters = 2350053, 
    rw_rdfails = 3886, rw_wrfails = 445, modload = 0, modunload = 0, 
    bawrite = 1648, rw_enters = 0, win_uo_cnt = 0, win_uu_cnt = 0, 
    win_so_cnt = 0, win_su_cnt = 0, win_suo_cnt = 0}, cpu_syswait = {
    iowait = 0, swap = 0, physio = 0}, cpu_vminfo = {pgrec = 3846018, 
    pgfrec = 3846018, pgin = 26547, pgpgin = 75444, pgout = 0, pgpgout =
0, 
    swapin = 0, pgswapin = 0, swapout = 0, pgswapout = 0, zfod =
8104876, 
    dfree = 0, scan = 0, rev = 0, hat_fault = 0, as_fault = 29202035, 
    maj_fault = 18228, cow_fault = 9678134, prot_fault = 5553567, 
    softlock = 0, kernel_asflt = 2838661, pgrrun = 0, execpgin = 1771, 
    execpgout = 0, execfree = 0, anonpgin = 0, anonpgout = 0, anonfree =
0, 
    fspgin = 73673, fspgout = 0, fsfree = 0}}
(gdb) 


---
Nick Hindley
Senior Unix Systems Analyst
Hammersmith And Fulham Bridge Partnership
[email protected]
T: (020) 8753 2926



=======================================================================
    This email has been scanned for Virus infection by MessageLabs
     For more information please contact [email protected] 
=======================================================================

------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to