Messaggio archiviato #175

Da: "Steven Levine" <> Intestazioni complete
Messaggio non codificato
Oggetto: Re: [eCS-ISP] Stunnel 5.58
Data: Sun, 07 Mar 2021 18:48:37 -0800
A: "eCS ISP Mailing List" <>

In <>, on 03/07/21
   at 08:15 PM, "Massimo S." <> said:

Hi Massimo,

>i alredy have log to debug level 7
>but this not help, since the new version crash before creating the log

The log file logic is bit complicated and it appears we have an issue in
the stunnel patches.

When you define a log file, you can lose log output in some cases and an
abort (it's not a crash) is one of those cases.

When the abort occurs, it causes the code that would write the cached log
files to the log file to by bypassed.

The workaround is to disable the output setting with:

  ; output = r:\stunnel.log

and to add

  foreground = yes

which has the side effect of routing log output to the console.

However, this is not going to help you in this case, because it appears
that this is really the first and only line of log output.  I faked the
ssl_init() failure under the debugger to check this.

This is where I found we have an issue in the patches.  Since we don't
support daemonize(), I patched the code a while ago to default to make
forground mode the default.  The patch is still there:

#if !defined(__OS2__)
        // 2011-01-07 SHL
// default to foreground mode because this better matches older builds
        // suppressed daemonize which forground implies, but did not set
the flag
        // so some of the code still acted as if daemonize was in effect

However, it looks like I missed a line of code or the sources have changed
since 2011. :-)

The current code for forground = yes does:

        if(!strcasecmp(arg, "yes")) {
        } else if(!strcasecmp(arg, "quiet")) {

so the patch needs to be updated to include:


Paul, can you do this for us for the next build?  There's not rush

Massimo, the evidence implies you have an out of sync DLL.  Are you fully
updated according to ANPM or yum or whatever you use?


"Steven Levine" <>  Warp/DIY/BlueLion etc.

Isriviti: Feed, Riassunto, Indice.
Scrivi a ListMaster