[Pidgin] #841: File open dialog causes crash

Pidgin trac at pidgin.im
Sun May 27 19:24:03 EDT 2007


#841: File open dialog causes crash
---------------------------+------------------------------------------------
  Reporter:  klines        |       Owner:  seanegan                     
      Type:  defect        |      Status:  assigned                     
  Priority:  minor         |   Milestone:  2.0.2                        
 Component:  pidgin (gtk)  |     Version:  2.0                          
Resolution:                |    Keywords:  gtk file open dialog transfer
   Pending:  0             |  
---------------------------+------------------------------------------------
Comment (by mhuetsch):

 I seem to have conflated two different bugs.  I believe the first one I
 mentioned was caused by this:

 prpl notifies me that I'm to receive a file.  I get past the bug that this
 ticket is about (I'm not sure how it does it, but valgrind manages to keep
 pidgin running in some situations where it would otherwise crash).  I
 select where I want to save the file and start the transfer from address
 XYZ.  But address XYZ is being unresponsive, the connection times out, and
 we hit the disconnect code I mentioned earlier.  So we really do need a
 check there.

 For the second bug, the one this ticket is really about, I think nosnilmot
 is probably right.  It seems I'm using a similar setup to the other
 reporters:

 Ubuntu 7.04,
 libgtk2.0-common: 2.10,
 libglib2.0-0: 2.12

 (pkg-config couldn't find libgnomevfs2-common, only gnome-vfs-sharp-2.0,
 which I don't think is what we want to know about)

 Valgrind picks up the "Syscall param write(buf) points to uninitialised
 byte(s)" error whenever a new frame (or window or whatever they're called
 in gtkland) is opened (though obviously it's only crashing on the file
 select dialog).  More specifically, the last point in the pidgin code I
 can usually reach with gdb is:


 {{{
 1527 #if GTK_CHECK_VERSION(2,4,0) /* FILECHOOSER */
 1528         filesel = gtk_file_chooser_dialog_new(
 1529                                                 title ? title :
 (savedialog ? _("Save File...")
 1530
 : _("Open File...")),
 1531                                                 NULL,
 1532                                                 savedialog ?
 GTK_FILE_CHOOSER_ACTION_SAVE
 1533                                                                    :
 GTK_FILE_CHOOSER_ACTION_OPEN,
 1534                                                 GTK_STOCK_CANCEL,
 GTK_RESPONSE_CANCEL,
 1535                                                 savedialog ?
 GTK_STOCK_SAVE
 1536                                                                    :
 GTK_STOCK_OPEN,
 1537                                                 GTK_RESPONSE_ACCEPT,
 1538                                                 NULL);

 }}}

 Though sometimes I can make it past there and it dies later.

-- 
Ticket URL: <http://developer.pidgin.im/ticket/841#comment:21>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list