Re: [syslog-ng] Syslog-ng 3.0.1 seg fault with TLS support
I changed it in the source and now the compilation crashed for cfg-grammar.y :( :( -----Message d'origine----- De : syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] De la part de Xavier Lapie Envoyé : jeudi 5 mars 2009 12:12 À : Syslog-ng users' and developers' mailing list Objet : Re: [syslog-ng] Syslog-ng 3.0.1 seg fault with TLS support On Thu, Mar 05, 2009 at 10:50:29AM +0100, Xavier Lapie wrote:
On Thu, Mar 05, 2009 at 10:44:03AM +0100, Hahusseau, Thomas wrote:
Yeah I enable the debug mode and open the core file with gdb. I can see a huge backtrace with a lot of "index out of range" error inside. If you I can attach the backtrace on this mailing list.
I found something which could solve your problem. The tls context is not initialized when used in client mode, there is a typo in the cfg-grammar.y file. Just go to the line 899 and replace ENABLE_TLS by ENABLE_SSL. -- Xavier ____________________________________________________________________________ __ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
On Thu, Mar 05, 2009 at 01:52:27PM +0100, Hahusseau, Thomas wrote:
I changed it in the source and now the compilation crashed for cfg-grammar.y :( :(
It's just a macro, you must have done something wrong. You had this: dest_afinet_tcp_option : dest_afinet_option | KW_TLS { #if ENABLE_TLS last_tls_context = tls_context_new(TM_CLIENT); #endif } You should have this: dest_afinet_tcp_option : dest_afinet_option | KW_TLS { #if ENABLE_SSL last_tls_context = tls_context_new(TM_CLIENT); #endif } -- Xavier
participants (2)
-
bana@docisland.org
-
Hahusseau, Thomas