Re: gmc crashes on right-click



On Wed, Mar 31, 1999 at 03:31:22PM -0500, Federico Mena Quintero was heard to say:
> >    If I right-click on a file in gmc (in this case it's an executable
> >  script called "install-gaime"), gmc dies with the following error and backtrace:
> [snip]
> >  #5  0x80b5d82 in create_mime_actions (menu=0x82365d0, panel=0x81dd920, pos=2, 
> >      dii=0x0) at gpopup2.c:360
> >  #6  0x80b609f in create_actions (menu=0x82365d0, flags=59, panel=0x81dd920, 
> >      dii=0x0) at gpopup2.c:447
> >  #7  0x80b650f in gpopup_do_popup2 (event=0xbffff724, panel=0x81dd920, dii=0x0)
> >                                                                        ^^^^^^^
> >      at gpopup2.c:558
> >  #8  0x80c3108 in panel_icon_list_select_icon (widget=0x821efa8, strchr=4, 
> >      event=0xbffff724, panel=0x81dd920) at gscreen.c:1409
> 
> This is not the problem.  The problem is that line 359 of gpopup2.c is
> thinking that you clicked on a desktop icon.  Can you please tell me
> how to duplicate this behavior?  This would indicate some weird
> corruption of a panel structure.

  Ah, that explains it.  But what I did to produce this was just to start gmc
and right-click on a file; perhaps this indicates some brokeness on my end :-(

> Also, if you can duplicate this, can you please go up to frame 7 and
> tell me the value of *panel?

(gdb) print panel
$1 = (WPanel *) 0x81ddac0
(gdb) print *panel
$2 = {widget = {x = 0, y = 0, cols = 60, lines = 14, color = -1, options = 4, 
    focused = 0, callback = 0x806f700 <panel_callback>, 
    destroy = 0x806cd00 <panel_destroy>, mouse = 0x806fbf0 <panel_event>, 
    parent = 0x81dcf78, wdata = 136434600, wcontainer = 0, 
    frame = 0x80fa880 "", tkname = 0x0, area = AREA_TOP, 
    layout = XV_WLAY_DONTCARE}, dir = {list = 0x81e1bc8, size = 128}, 
  list_type = 4, active = 0, 
  cwd = "/home/daniel/gaime", '\000' <repeats 4076 times>, 
  lwd = ".", '\000' <repeats 4093 times>, dir_history = 0x81dfe68, 
  hist_name = 0x81dfd78 "Dir Hist /home/daniel/gaime", count = 7, marked = 1, 
  dirs_marked = 0, total = 382, top_file = 0, selected = 4, reverse = 0, 
  case_sensitive = 1, split = 0, is_panelized = 0, frame_size = 1, 
  icons_per_row = 0, sort_type = 0x80892f0 <sort_name>, filter = 0x0, 
  dirty = 1, user_mini_status = 0, 
  user_format = 0x81e4de8 "half type,name,|,size,|,perm", 
  user_status_format = {0x81e4e10 "half type,name,|,size,|,perm", 
    0x81e4e38 "half type,name,|,size,|,perm", 
    0x81e4e60 "half type,name,|,size,|,perm", 
    0x81e4e88 "half type,name,|,size,|,perm", 
    0x81e4eb0 "half type,name,|,size,|,perm"}, format = 0x81e4ed8, 
  status_format = 0x81e4ff8, format_modified = 1, 
  panel_name = 0x81e4dd0 "/home/daniel/gaime", dir_stat = {st_dev = 0, 
    __pad1 = 0, st_ino = 0, st_mode = 0, st_nlink = 0, st_uid = 0, st_gid = 0, 
    st_rdev = 0, __pad2 = 0, st_size = 0, st_blksize = 0, st_blocks = 0, 
    st_atime = 0, __unused1 = 0, st_mtime = 0, __unused2 = 0, st_ctime = 0, 
    __unused3 = 0, __unused4 = 0, __unused5 = 0}, gc = 0x0, font = 0x0, 
  item_height = 0, total_width = 0, ascent = 0, descent = 0, searching = 0, 
  search_buffer = '\000' <repeats 255 times>, port_ui = 0x0, 
  xwindow = 0x81dfdd8, table = 0x821d3a8, view_table = 0x822b568, 
  pane = 0x82213b8, list = 0x821f3d0, tree = 0x821d5f8, icons = 0x821cce8, 
  notebook = 0x821cc80, status = 0x8228df0, ministatus = 0x821d2b8, 
  tree_scrolled_window = 0x821d438, filter_w = 0x8221578, 
  current_dir = 0x8221b88, estimated_total = 0, back_b = 0x82020f8, 
  fwd_b = 0x8223c30, up_b = 0x8223be8, maybe_start_drag = 0, click_x = 134, 
  click_y = 81, view_menu_items = 0x821ba98, view_toolbar_items = 0x82285a0, 
  dragging = 0, timer_id = 1, drag_motion_x = -1, drag_motion_y = 0, 
  panel_listbox = 0x0, is_a_desktop_panel = 136450864}

  Hmm, the is_a_desktop_panel member looks funny but that's all I can see.
Your call. :-)  [ I'm going to do a clean compile of gmc and see if that fixes
it ]

  Daniel

-- 
  Whoever created the human body left in a fairly basic design flaw.  It has a
tendency to bend at the knees.

             -- Terry Pratchett, _Men at Arms_



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