Bug #13841 2008-05-20 07:39

jenslody

memory dump does randomly not work

On (some) linux systems the memory dump randomly shows nothing but blanks.

The problem is using of wxString::Format with format-string "%s" to show the wxChar[] m_LineText in ExamineMemoryDlg::AddHexByte.

The Format-function for char-arrays needs either a null-terminated string or an explicitely given precision to know the end of the string.

In some cases the last byte after m_LineText is not 0 and the function tries to read more what leads to the following error-message in the console (if C::B is started from commandline):

"(codeblocks:890): Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion `g_utf8_validate (text, len, NULL)' failed".

I will post a patch for this bug.

Category
Debugger
Group
 
Status
Closed
Close date
2008-05-20 15:03
Assigned to
biplab
jenslody 2008-05-20 07:44

Just uploaded Patch #002475

biplab 2008-05-20 15:03

This bug is now fixed in HEAD.

Thank you for reporting it.