Chris Wilson <ch...@aptivate.org> wrote:
> On Mon, 13 Apr 2009, Johannes Formann wrote:

Hi Chris,

> >>> Apr 13 15:27:15 server kernel: pmacctd[1341]: segfault at f7002991 ip 
> >>> 00000000f7bfa9ca sp 00000000ffb88334 error 4 in 
> >>> libpthread-2.3.6.so[f7bf2000+e000]
> >>
> > I think I got it (using a written coredump):
> 
> Yes, that's it, thanks. I'm afraid it doesn't mean much to me, but I hope 
> it will help Paolo. What exact version of pmacct are you using?
> 
> > (gdb) bt
> > #0  0xf7ba29ca in pthread_getspecific () from
> > /lib/tls/i686/cmov/libpthread.so.0
> > #1  0xf7c8bf85 in inet_ntoa () from /lib/tls/i686/cmov/libc.so.6
> 
> Paolo, this looks weird to me. pthread_getspecific() should not crash, 
> that makes me think that the heap has been trashed (stack looks generally 
> OK as the backtrace is OK). Perhaps a Valgrind is in order? Any static 
> or fixed-size buffers in the mysql plugin that might be busted?

No Valgrind instaled.

I cleared the database, and observed what happend:
Apr 13 17:18:19 server1 pmacctd[12394]: INFO ( default/core ): Start logging ...
Apr 13 17:18:19 server1 pmacctd[12394]: OK ( default/core ): link type is: 1 
Apr 13 17:19:41 server1 pmacctd[12394]: Expiring orphan fragment:
ip_src=98.218.230.138 ip_dst=84.38.67.65 proto=17 id=33635 
Apr 13 17:19:47 server1 pmacctd[12394]: Expiring orphan fragment:
ip_src=98.218.230.138 ip_dst=84.38.67.65 proto=17 id=33756 
Apr 13 17:19:58 server1 pmacctd[12394]: Expiring orphan fragment:
ip_src=98.218.230.138 ip_dst=84.38.67.65 proto=17 id=33415 
Apr 13 17:20:01 server1 pmacctd[12419]: ERROR ( default/mysql ): Duplicate entry
'0-00:1b:8f:61:55:c9-00:1c:c0:ab:8a:48-0-91.22.172.35-84.38.74.24' for key 1  
Apr 13 17:20:01 server1 kernel: pmacctd[12419]: segfault at 3827208c ip
00000000f7c599ca sp 00000000ffde7894 error 4 in
libpthread-2.3.6.so[f7c51000+e000]

This means starting with the secound write it fails, in the database the
follwowing stamp-updated were found (later more)
2009-04-13 17:19:42
2009-04-13 17:20:01

BTW: tried to use v7 Schema, slightly other SQL-Error (as expeted), same
problem.

cheers

Johannes

_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to