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;
}
|