GNOME Bugzilla – Bug 149268
http plugin crashes if you attempt to open "http:" or similar
Last modified: 2004-12-22 21:47:04 UTC
This one is pretty straight-forward. At a shell prompt, just type "eog http:". Backtrace was generated from '/usr/bin/eog' (no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1". (no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... 0x406709d8 in waitpid () from /lib/libpthread.so.0
+ Trace 49089
Setting as major/high because it's a crash bug.
I managed to reproduce the bug here and I'll have a look at this. Thanks.
do_get_file_info in http-neon-method.c: DEBUG_HTTP_FUNC (1); result = http_context_open (uri, &hctx); if (result == GNOME_VFS_OK) result = http_get_file_info (hctx, file_info, NULL); http_context_free (hctx); DEBUG_HTTP_FUNC (0); ie: context is free'd even if allocation fails. I've cooked two patches. The first patch corrects this function in a method that's consistent with all the other vfs functions in the module. The second patch corrects the function while preserving the weird DEBUG_HTTP_FUNC business. (only use this one if you like DEBUG_HTTP_FUNC) Sorry for not making ChangeLog updates. I don't have access to the CVS ChangeLog so my patch would probably reject anyway.
Created attachment 30319 [details] [review] the consistent patch
Created attachment 30320 [details] [review] the patch that keeps DEBUG_HTTP_FUNC if you like it
Nice catch again, thanks! Commited to cvs HEAD. (I would include you real name in the ChangeLog entries if I had it :)