[Mono-bugs] [Bug 398918] New: Error in g_log - runtime logging routine.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jun 10 11:22:06 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=398918


           Summary: Error in g_log - runtime logging routine.
           Product: Mono: Runtime
           Version: 1.9.0
          Platform: Other
        OS/Version: Windows Vista
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: migelU at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development


Hello.
I download sources of the Mono runtime and try build it myself using MS VC 2005
(8.0) compiler.
Runtime builds ok.
But during execution my test CLI executable under mono i ended up with strange
crash. 
After hours of digging code I found (IMHO) bug in the logging routine

void
g_log (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format,
..)
{
        char *fmt;
        va_list args;

        va_start (args, format);
        g_logv (log_domain, log_level, format, args);
        fmt = g_strdup_printf(format, args); ///!!!!!!! NOTEE
        va_end (args);
}

so MS compiler set invalid varargs in the called method 
Must it be g_strdup_vprintf ????
Also fmt allocated in the calling method was newer be freed IS IT by design or
may be there must be just missed free(fmt)??


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list