texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Texmacs-dev] RE: Texmacs segfault


From: Igor V. Kovalenko
Subject: [Texmacs-dev] RE: Texmacs segfault
Date: Wed, 16 Oct 2002 01:03:58 +0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020809

Hi!

I added the following piece of code to src/Edit/Interface/edit_interface.cc
in function void edit_interface_rep::handle_clear(clear_event ev) :
-------------------------------------------------------------------
  win->set_background (dis->get_color (bg));
+
+ if (nil(eb))
+     cerr << "edit_interface.cc : eb is NULL\n" << endl;
+
  win->clear (max (eb->x1, X1), max (eb->y1, Y1),
              min (eb->x2, X2), min (eb->y2, Y2));
-------------------------------------------------------------------

So the crash I see is now isolated to this piece of code.
Here a NULL eb rep is dereferenced in the first call to max().
As I mentioned in previous mail the "-d" or "-e" command line args
are sufficient for this to not happen at all.

I see that this code will be rewritten soon, but
in the mean time any ideas?

--
Regards,
Igor V. Kovalenko    mailto: iko at crec dot mipt dot ru





reply via email to

[Prev in Thread] Current Thread [Next in Thread]