[Bug 1753470] Re: Postconf segfaults every 5 minutes

Andreas Hasenack andreas at canonical.com
Mon May 7 15:14:56 UTC 2018


The crash happens in vstream_fileno(fp), because fp is a null pointer:

        if ((fp = vstream_fopen(cf_file, O_RDONLY, 0)) == 0
            && errno != EACCES) {
            msg_warn("open \"%s\" configuration \"%s\": %m",
                     dp->db_type, cf_file);
            myfree(dict_spec);
            return;
        }
        if (fstat(vstream_fileno(fp), &st) == 0 && !S_ISREG(st.st_mode)) {
            msg_warn("open \"%s\" configuration \"%s\": not a regular file",
                     dp->db_type, cf_file);
            myfree(dict_spec);
            (void) vstream_fclose(fp);
            return;
        }

vstream_fopen() did return 0 and errno was set to EACCES, I don't know
why that check is excluding the permission problem. I emailed upstream
(couldn't find a bugtracker for it).

-- 
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1753470

Title:
  Postconf segfaults every 5 minutes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1753470/+subscriptions



More information about the Ubuntu-server-bugs mailing list