GNOME Bugzilla – Bug 163285
http-protocol in gnome-vfs2 v2.8.3 causes crashes on 64-bit machines
Last modified: 2005-01-07 22:40:58 UTC
Distribution: Debian 3.1 Package: gnome-vfs Severity: critical Version: GNOME2.8.1 2.7.x Gnome-Distributor: Debian Synopsis: http-protocol in gnome-vfs2 v2.8.3 causes crashes on 64-bit machines Bugzilla-Product: gnome-vfs Bugzilla-Component: Module: http Bugzilla-Version: 2.7.x Description: Description of Problem: See also this Debian bug-report (includes patch): http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=285726 Steps to reproduce the problem: 1. invoke "bug-buddy" on a 64-bit machine (e.g., ia64 Linux) Actual Results: Bug-buddy crashes immediately with a SIGSEGV because libhttp.so has a pointer-truncation problem due to stpncpy() being implicitly declared to return a 32-bit "int", rather than a 64-bit "char *". Expected Results: Bug-buddy shouldn't crash. How often does this happen? Every time. Additional Information: The fix is simple: ensure that pre-processor-symbol _GNU_SOURCE is defined when imported/neon/ne_{string,session}.c get compiled. In the proposed Debian patch, I defined the symbols simply at the beginning of those files, but it may be better to do this via configure magic (i.e., check if you're using GNU libc and, if so, add -D_GNU_SOURCE to the CPP defines). ------- Bug moved to this database by unknown@bugzilla.gnome.org 2005-01-07 17:34 ------- Unknown platform unknown. Setting to default platform "Other". Unknown milestone "unknown" in product "gnome-vfs". Setting to default milestone for this product, '---' Setting to default status "UNCONFIRMED". Setting qa contact to the default for this product. This bug either had no qa contact or an invalid one.
*** This bug has been marked as a duplicate of 160052 ***