[exim-dev] [Bug 1839] New: store_malloc should use assert in…

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 1839] New: store_malloc should use assert in case of failure
https://bugs.exim.org/show_bug.cgi?id=1839

            Bug ID: 1839
           Summary: store_malloc should use assert in case of failure
           Product: Exim
           Version: N/A
          Hardware: All
                OS: All
            Status: NEW
          Severity: bug
          Priority: medium
         Component: General execution
          Assignee: nigel@???
          Reporter: ytrezq@???
                CC: exim-dev@???


Usually when a program abort because allocation fails, SIGABRT should be
raised.

This is usually done by calling assert.

However, exim currently end‑up using exim_exit for this which use a call to
debug_printf. So the trivial way to fix it is to drop some debugging output by
not calling debug_printf(">>>>>>>>>>>>>>>> Exim pid=%d terminating with rc=%d
".


If debugging output shouldn’t be lost while still using the ability of assert
to print messages, then several functions should be created adding 100 lines of
code.

--
You are receiving this mail because:
You are on the CC list for the bug.