FLTK logo

Re: [fltk.coredev] Windows 11 crash (still investigating)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Windows 11 crash (still investigating) Gonzalo Garramuño 03:34 Apr 28  
 

On 4/28/2024 6:29 AM, Manolo wrote:
Fl_Window.cxx line 595 :
  Fl_Widget* p = parent(); for (;p->visible();p = p->parent()) {}
has been unchanged since at least 30 october 2002 (22 years). So, it's surprising a null pointer derefencing popups up today. We should know exactly if the crash is caused by p being null and p->visible() being attempted. It could be that p has been deleted before which would be another kind of
error, more likely in the client program.

Now that I know where to look, I printed out the pointers with:

          if (visible()) {
              printf("FL_HIDE:\n");
            Fl_Widget* p = parent();
            for (;p->visible();p = p->parent())
            {
                printf("\t%p\n", p);
                printf("\tparent=%p\n", p->parent());
            }
            if (p->type() >= FL_WINDOW) break; // don't do the unmap
          }


FL_HIDE:
        0000016A4D2ED8B0
        parent=0000000000000000

I don't know what more proof do you want.

--
Gonzalo Garramuño
ggarra13@gmail.com

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/55d8ab70-387c-45c7-9143-9e78615524ed%40gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.