[Top][All Lists]
[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
- Re: [Texmacs-dev] RE: Texmacs segfault, (continued)
- Re: [Texmacs-dev] RE: Texmacs segfault, Felix Breuer, 2002/10/23
- Re: [Texmacs-dev] RE: Texmacs segfault, Joris van der Hoeven, 2002/10/23
- Re: [Texmacs-dev] RE: Texmacs segfault, Felix Breuer, 2002/10/23
- Re: [Texmacs-dev] RE: Texmacs segfault, Joris van der Hoeven, 2002/10/11
- Re: [Texmacs-dev] RE: Texmacs segfault, David Allouche, 2002/10/15
[Texmacs-dev] RE: Texmacs segfault, Igor V. Kovalenko, 2002/10/13
[Texmacs-dev] RE: Texmacs segfault,
Igor V. Kovalenko <=