bugRamon - A RMON2 Network Monitoring Agent - Bugs: bug #20602, Bad system call

 
 

bug #20602: Bad system call

Submitted by:  Ricardo Nabinger Sanchez <rnsanchez>
Submitted on:  Thu 26 Jul 2007 08:58:17 PM UTC  
 
Category: RMON2Severity: 5 - Blocker
Priority: 5 - NormalStatus: Confirmed
Assigned to: NoneOpen/Closed: Open
Operating System: FreeBSDFixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 29 Feb 2008 08:39:27 PM UTC, comment #2:

This error happened again. It only happens when using the Net-SNMP module. I will try to use pthread-only stuff, nuking semaphores.

Ricardo Nabinger Sanchez <rnsanchez>
Project Administrator
Thu 28 Feb 2008 10:31:47 PM UTC, comment #1:

This error doesn't happen anymor with FreeBSD-6.1 and newer, so it became invalid. I'm not sure, but it may have to do with huge POSIX threading changes in FreeBSD during 5 -> 6 transition.

Ricardo Nabinger Sanchez <rnsanchez>
Project Administrator
Thu 26 Jul 2007 08:58:17 PM UTC, original submission:

I think this is related to semaphores:

(gdb) bt f
#0 0x284c592b in ksem_init () from /lib/libc.so.6
No symbol table info available.
#1 0x284bc1f5 in sem_init () from /lib/libc.so.6
No symbol table info available.
#2 0x2857d327 in fila_inicializa () at src/conversor.c:287
No locals.
#3 0x2857d999 in captura_processa_pacote () at src/conversor.c:645
prepacote = {is_broadcast = 0, prot_enlace = 0, prot_rede = 0,
prot_transporte = 0, rede_sport = 0, rede_dport = 0, interface = 0, tamanho = 0,
uptime = 0, ip_orig = 0, ip_dest = 0, nl_localindex = 0, al_localindex = 0,
offset_rede = 0, offset_trans = 0, offset_aplic = 0}
#4 0x28857319 in pthread_create () from /usr/lib/libpthread.so.2
No symbol table info available.
#5 0x28522637 in _ctx_start () from /lib/libc.so.6
No symbol table info available.

Code:

static int fila_inicializa()
{
287: if (sem_init(&fila_semaforo, 0, 0) != 0) {
return ERROR_PKTQUEUE;
}

return SUCCESS;
}

Ricardo Nabinger Sanchez <rnsanchez>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rnsanchez (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 29 Feb 2008 08:39:27 PM UTCrnsanchezStatusInvalid=>Confirmed
      Open/ClosedClosed=>Open
    Thu 28 Feb 2008 10:31:47 PM UTCrnsanchezStatusConfirmed=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1