[stunnel-users] SegFault with stunnel

Beyerle, Christian Beyerle at ewr.de
Thu Oct 12 14:49:55 CEST 2006


Hello Everyone,

I try to encrypt a Mysql-Connection between two host which run Suse
Linux 10.1. On the Server runs a mysql database, on the client runs
barnyard (a plugin for snort) which should write into the mysql
database.

I installed stunnel 4.14 on x86_64-suse-linux-gnu
UCONTEXT+POLL+IPv4+LIBWRAP with OpenSSL 0.9.8a 11 Oct 2005 on both
servers.

The Configuration file on the Server (mysql) looks like:
client = no
debug = 7777777
output = /var/log/stunnel.log

[mysqls]
accept = 10439
connect = 127.0.0.1:3306

Stunnel seems to run well:
lsof -i -n | grep stunnel
stunnel   25330 stunnel    6u  IPv4 371490       TCP *:10439 (LISTEN)

On the client:
[mysqls]
client = yes
accept = 127.0.0.1:3306
connect = 172.16.1.80:10439

Stunnel seems to run as well as on the server:

stunnel 16634 stunnel    6u  IPv4  22487       TCP 127.0.0.1:mysql
(LISTEN)

If i start barnyard that should connect to port 3306, barnyard cannot
open the port and quits.
I looked in my syslog and found the following entry:


Oct 12 14:10:28 CLIENT kernel: stunnel[10991]: segfault at
0000000055697fb0 rip 000055555555b793 rsp 00005555556b0520 error 4
Oct 12 14:10:28 CLIENT barnyard[10997]: FATAL ERROR: Failed to connect
to database snort:XXXXXXXX at 127.0.0.1/sensors: Lost connection to MySQL
server during query
Oct 12 14:10:28 CLIENT barnyard[10997]: Exiting

I find no log of stunnel which help me to understand the reason of the
crash. After this stunnel not too seem runnign anymore on the port:
lsof -i -n | grep stunnel
(no output)

Does anybody have an idea??? 
Thank you for the help,

-- Chris



More information about the stunnel-users mailing list