<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Sep 17, 2013 at 11:54 AM, Alexandre Biancalana <span dir="ltr">&lt;<a href="mailto:biancalana@gmail.com" target="_blank">biancalana@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="im">On Tue, Sep 17, 2013 at 10:30 AM, Gergely Nagy <span dir="ltr">&lt;<a href="mailto:algernon@balabit.hu" target="_blank">algernon@balabit.hu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div>Alexandre Biancalana &lt;<a href="mailto:biancalana@gmail.com" target="_blank">biancalana@gmail.com</a>&gt; writes:<br>


<br>
&gt; Hi list,<br>
&gt;<br>
&gt;  I&#39;m running syslog-ng 3.4.3 (installed from FreeBSD ports) on FreeBSD 9.1<br>
&gt; with self-written patterndb file to parse apache error_log, mod_security<br>
&gt; and pagespeed errors.<br>
&gt;<br>
&gt; The syslog-ng source is httpd error_log file, after starting syslog-ng it<br>
&gt; core dumps:<br>
&gt;<br>
&gt; ERROR:logmsg.c:1303:log_msg_unref: assertion failed:<br>
&gt; (LOGMSG_REFCACHE_VALUE_TO_REF(old_value) &gt;= 1)<br>
&gt; Abort trap (core dumped)<br>
&gt;<br>
&gt; Let me know if you need more info.<br>
<br>
</div></div>Could you post a backtrace too, please?<br>
<span></span></blockquote><div><br></div></div><div>Here we go:<br><br>GNU gdb 6.1.1 [FreeBSD]<br>Copyright 2004 Free Software Foundation, Inc.<br>GDB is free software, covered by the GNU General Public License, and you are<br>

welcome to change it and/or distribute copies of it under certain conditions.<br>Type &quot;show copying&quot; to see the conditions.<br>There is absolutely no warranty for GDB.  Type &quot;show warranty&quot; for details.<br>

This GDB was configured as &quot;amd64-marcel-freebsd&quot;...(no debugging symbols found)                                                                                                                                ...<br>

Core was generated by `syslog-ng&#39;.<br>Program terminated with signal 6, Aborted.<br>Reading symbols from /usr/local/lib/libsyslog-ng-3.4.3.so...done.<br>Loaded symbols for /usr/local/lib/<a href="http://libsyslog-ng-3.4.3.so" target="_blank">libsyslog-ng-3.4.3.so</a><br>

Reading symbols from /usr/lib/librt.so.1...done.<br>Loaded symbols for /usr/lib/librt.so.1<br>Reading symbols from /usr/local/lib/libgmodule-2.0.so.0...done.<br>Loaded symbols for /usr/local/lib/libgmodule-2.0.so.0<br>Reading symbols from /usr/local/lib/libgthread-2.0.so.0...done.<br>

Loaded symbols for /usr/local/lib/libgthread-2.0.so.0<br>Reading symbols from /usr/local/lib/libglib-2.0.so.0...done.<br>Loaded symbols for /usr/local/lib/libglib-2.0.so.0<br>Reading symbols from /usr/local/lib/libintl.so.9...done.<br>

Loaded symbols for /usr/local/lib/libintl.so.9<br>Reading symbols from /usr/local/lib/libiconv.so.3...done.<br>Loaded symbols for /usr/local/lib/libiconv.so.3<br>Reading symbols from /usr/local/lib/libevtlog.so.0...done.<br>

Loaded symbols for /usr/local/lib/libevtlog.so.0<br>Reading symbols from /usr/local/lib/libpcre.so.3...done.<br>Loaded symbols for /usr/local/lib/libpcre.so.3<br>Reading symbols from /lib/libthr.so.3...done.<br>Loaded symbols for /lib/libthr.so.3<br>

Reading symbols from /lib/libc.so.7...done.<br>Loaded symbols for /lib/libc.so.7<br>Reading symbols from /usr/local/lib/syslog-ng/libsystem-source.so...done.<br>Loaded symbols for /usr/local/lib/syslog-ng/libsystem-source.so<br>

Reading symbols from /usr/lib/libz.so...done.<br>Loaded symbols for /usr/lib/libz.so<br>Reading symbols from /usr/local/lib/syslog-ng/libconfgen.so...done.<br>Loaded symbols for /usr/local/lib/syslog-ng/libconfgen.so<br>
Reading symbols from /usr/local/lib/syslog-ng/libafsocket-tls.so...done.<br>
Loaded symbols for /usr/local/lib/syslog-ng/libafsocket-tls.so<br>Reading symbols from /usr/local/lib/syslog-ng/libsyslog-ng-crypto.so...done.<br>Loaded symbols for /usr/local/lib/syslog-ng/libsyslog-ng-crypto.so<br>Reading symbols from /usr/local/lib/libcrypto.so.8...done.<br>

Loaded symbols for /usr/local/lib/libcrypto.so.8<br>Reading symbols from /usr/local/lib/libssl.so.8...done.<br>Loaded symbols for /usr/local/lib/libssl.so.8<br>Reading symbols from /usr/local/lib/syslog-ng/libaffile.so...done.<br>

Loaded symbols for /usr/local/lib/syslog-ng/libaffile.so<br>Reading symbols from /usr/local/lib/syslog-ng/libdbparser.so...done.<br>Loaded symbols for /usr/local/lib/syslog-ng/libdbparser.so<br>Reading symbols from /usr/local/lib/syslog-ng/libafamqp.so...done.<br>

Loaded symbols for /usr/local/lib/syslog-ng/libafamqp.so<br>Reading symbols from /usr/local/lib/syslog-ng/libafuser.so...done.<br>Loaded symbols for /usr/local/lib/syslog-ng/libafuser.so<br>Reading symbols from /usr/local/lib/syslog-ng/libsyslogformat.so...done.<br>

Loaded symbols for /usr/local/lib/syslog-ng/libsyslogformat.so<br>Reading symbols from /libexec/ld-elf.so.1...done.<br>Loaded symbols for /libexec/ld-elf.so.1<br>#0  0x0000000801f9938c in thr_kill () from /lib/libc.so.7<br>

[New Thread 80240a800 (LWP 109042/syslog-ng)]<br>[New Thread 802409c00 (LWP 109041/syslog-ng)]<br>[New Thread 802409800 (LWP 109040/syslog-ng)]<br>[New Thread 802407400 (LWP 107992/syslog-ng)]<br>(gdb) bt<br>#0  0x0000000801f9938c in thr_kill () from /lib/libc.so.7<br>

#1  0x000000080203b99b in abort () from /lib/libc.so.7<br>#2  0x00000008011223f4 in g_assertion_message ()<br>   from /usr/local/lib/libglib-2.0.so.0<br>#3  0x00000008011229c2 in g_assertion_message_expr ()<br>   from /usr/local/lib/libglib-2.0.so.0<br>

#4  0x000000080084cc87 in log_msg_unref (self=Variable &quot;self&quot; is not available.<br>) at logmsg.c:1303<br>#5  0x0000000803d0836d in afamqp_worker_thread (arg=Variable &quot;arg&quot; is not available.<br>) at afamqp.c:479<br>

#6  0x000000080085b6de in worker_thread_func (st=0x802421fd0) at misc.c:580<br>#7  0x0000000801124a65 in g_thread_proxy ()<br>   from /usr/local/lib/libglib-2.0.so.0<br>#8  0x0000000801d220a4 in pthread_getprio () from /lib/libthr.so.3<br>

#9  0x0000000000000000 in ?? ()<br>Cannot access memory at address 0x7fffffbfe000<br> <br></div></div></div></div>
</blockquote></div><br></div><div class="gmail_extra">Hi,<br><br></div><div class="gmail_extra"> Any idea of why this is happening ?  Do you need anything else ?<br><br></div><div class="gmail_extra">Regards,<br></div><div class="gmail_extra">
<br>Alexandre<br></div></div>