curl-library
Re: Values of CURLOPT_NETRC - patch
Date: Wed, 15 May 2002 17:32:11 +1200
Hello All,
On the way to re-delivering my patch, I am having problems with 32-bit curl
on 64-bit HP-UX 11, compiled for memory debugging.
It seems that malloc returns memory alligned on four-byte boundaries, but
that double's, which are 8 bytes, require 8-byte alignment. The resulting
alignment problem in the middle of a structure causes SIGBUS.
Could someone wiser than I am tell me whether I'm looking for a fault in
the system malloc, or a fault in curl, please?
(Don't take anything in the enclosed transcript too seriously, because it's
running my hacked version of the software, but it illustrates the problem
and the evidence for my conjecture above.)
Thank you,
James Cone.
=========================
$ ./runtests.pl -g 130
Use of uninitialized value in string eq at ./runtests.pl line 849.
Use of uninitialized value in string eq at ./runtests.pl line 849.
Use of uninitialized value in string eq at ./runtests.pl line 849.
Use of uninitialized value in string eq at ./runtests.pl line 849.
Use of uninitialized value in string eq at ./runtests.pl line 849.
Use of uninitialized value in string eq at ./runtests.pl line 849.
Use of uninitialized value in string eq at ./runtests.pl line 849.
Use of uninitialized value in string eq at ./runtests.pl line 849.
Use of uninitialized value in string eq at ./runtests.pl line 849.
Use of uninitialized value in pattern match (m//) at ./runtests.pl line 849.
Use of uninitialized value in pattern match (m//) at ./runtests.pl line 849.
********* System characteristics ********
* curl 7.9.5 (hppa2.0w-hp-hpux11.00)
* libcurl 7.9.5 (netrcDebug*)
* Host: hp5
* System: HP-UX hp5 B.11.00 A 9000/785 2002388384 two-user license
* Memory debugging: ON
* Netrc debugging: ON
* HTTPS server: OFF
* FTPS server: OFF
* libcurl SSL: OFF
*****************************************
test 130...[FTP (optional .netrc; no user/pass) dir list PASV]
DEBUG: writing file logs/netrc
print() on closed filehandle main::OUTFILE at ./runtests.pl line 555.
Use of uninitialized value in string eq at ./runtests.pl line 563.
GNU gdb 4.18-hppa-991112
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions. This version of GDB is supported
for customers of Cygnus Solutions. Type "show warranty" for details.
This GDB was configured as "hppa1.1-hp-hpux11.00"...
Argument list to give program being debugged when it is started is
"--output log/curl130.out --include -v -n ftp://127.0.0.1:8921/".
(gdb) run
Starting program:
/export/home.nfs/jcone/dev/hpux_centretel/curl-7.9.5.sigbus/tests/../src/.libs/curl
--output log/curl130.out --include -v -n ftp://127.0.0.1:8921/
warning: Unable to find __d_pid symbol in object file.
warning: Suggest linking with /opt/langtools/lib/end.o.
warning: GDB will be unable to track shl_load/shl_unload calls
Program received signal SIGBUS, Bus error.
0x77e875e8 in Curl_open (curl=0x77ff0cdc) at url.c:257
257 data->state.current_speed = -1; /* init to negative == impossible */
(gdb) print data
$1 = (struct SessionHandle *) 0x400057b4
(gdb)
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth_at_sourceforge.net
Received on 2002-05-15