[Pidgin] #1359: purple_mkstemp method change, now raises assertion failure ...

Pidgin trac at pidgin.im
Tue May 29 03:58:56 EDT 2007


#1359: purple_mkstemp method change, now raises assertion failure ...
------------------------+---------------------------------------------------
  Reporter:  msfbrasil  |       Owner:  datallah
      Type:  defect     |      Status:  new     
  Priority:  minor      |   Milestone:  2.0.2   
 Component:  libpurple  |     Version:  2.0.0   
Resolution:             |    Keywords:          
   Pending:  0          |  
------------------------+---------------------------------------------------
Comment (by QuLogic):

 Well, obviously, mixing runtime libraries is not a good idea. g_mkstemp
 calls open (from msvcrt.dll) and then libpurple uses the file descriptor
 with fdopen, but using msvcr71.dll. This doesn't work because the DLL's
 don't share state variables and stuff, such as fd's.[[BR]]
 I'm guessing the reason the old method works is because the FILE*
 structure holds enough data for the runtime to figure it all out, whereas
 the fd is quite possibly just an index into an array. Nevertheless, it's a
 bit of a guess whether things will continue to work. Since you're building
 libpurple, you might get it to work by compiling GLib yourself, too.[[BR]]
 Note: IANAD(eveloper)

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


More information about the Tracker mailing list