>>>>> Ivan Shmakov <i...@main.uusia.org> writes: [BTW, I've found that the issue exists down at the nc_open () call level, so this report should probably be reassigned to libnetcdf6 and retitled appropriately.]
[…] > On the other hand, the URI's of 55 characters and less are handled > differently, and the requests are being made: […] While checking strace(1) and ltrace(1) output, I've found that the correct behavior coincides with a single DNS request, while the buggy one coincides with three. Thus, I've breakpointed GDB at recvfrom () and got the backtraces MIME'd. As far as I can see, the URL is correctly passed down to the ocfetchurl () NetCDF internal function. Unfortunately, even though libcurl3-dbg is installed, the arguments to the Curl_* functions aren't shown. Any hints? $ dpkg -l \*-dbg | grep -E ^i ii libcurl3-dbg 7.21.0-1 libcurl compiled with debug symbols ii netcdf-dbg 1:4.1.1-5 debugging symbols for NetCDF $ -- FSF associate member #7257
(gdb) r Starting program: /usr/bin/ncdump -k http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd2011 # 128/gfs_hd_00z [Thread debugging using libthread_db enabled] Breakpoint 5, 0x00007ffff6934e20 in recvfrom () from /lib/libc.so.6 (gdb) bt #0 0x00007ffff6934e20 in recvfrom () from /lib/libc.so.6 #1 0x00007ffff5459b09 in ?? () from /lib/libresolv.so.2 #2 0x00007ffff5457a75 in __libc_res_nquery () from /lib/libresolv.so.2 #3 0x00007ffff5458031 in ?? () from /lib/libresolv.so.2 #4 0x00007ffff545843d in __libc_res_nsearch () from /lib/libresolv.so.2 #5 0x00007ffff3d15c37 in _nss_dns_gethostbyname4_r () from /lib/libnss_dns.so.2 #6 0x00007ffff691048c in ?? () from /lib/libc.so.6 #7 0x00007ffff6912782 in getaddrinfo () from /lib/libc.so.6 #8 0x00007ffff7bc8af2 in Curl_getaddrinfo_ex () from /usr/lib/libcurl-gnutls.so.4 #9 0x00007ffff7bc2818 in Curl_getaddrinfo () from /usr/lib/libcurl-gnutls.so.4 #10 0x00007ffff7b9976c in Curl_resolv () from /usr/lib/libcurl-gnutls.so.4 #11 0x00007ffff7b99897 in Curl_resolv_timeout () from /usr/lib/libcurl-gnutls.so.4 #12 0x00007ffff7babcb6 in ?? () from /usr/lib/libcurl-gnutls.so.4 #13 0x00007ffff7babd83 in Curl_connect () from /usr/lib/libcurl-gnutls.so.4 #14 0x00007ffff7bb646f in ?? () from /usr/lib/libcurl-gnutls.so.4 #15 0x00007ffff7650c61 in ocfetchurl (curl=0x665270, url=0x66e050 "http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd2011.dds", buf=0x64f1b0, filetime=0x7fffffffe038) at http.c:110 #16 0x00007ffff7658a75 in readpacket (curl=0x665270, url=<value optimized out>, packet=0x64f1b0, dxd=<value optimized out>, lastmodified=0x7fffffffb8c0) at read.c:76 #17 0x00007ffff7658bf9 in readDDS (state=0x66df50, tree=<value optimized out>) at read.c:31 #18 0x00007ffff764fdeb in ocfetch (state=0x66df50, constraint=0x0, kind=0, rootp=0x7fffffffe0d8) at ocinternal.c:255 #19 0x00007ffff764ba3a in oc_fetch (conn=7, constraint=0x7fffffffc5c0 "\001", dxdkind=0, rootp=0x7fffffffe158) at oc.c:593 #20 0x00007ffff7655c65 in dap_oc_fetch (drno=0x648000, conn=6741840, ce=0x0, dxd=0, rootp=0x7fffffffe158) at daputil.c:958 #21 0x00007ffff764d51b in fetchtemplatemetadata3 (drno=0x648000) at ncdap3.c:1323 #22 0x00007ffff764e89f in nc3d_open (path=<value optimized out>, mode=<value optimized out>, ncidp=0x647f50) at ncdap3.c:199 #23 0x00007ffff7612b19 in l4nc_open_file ( path=0x613040 "http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd2011", mode=0, basepe=0, chunksizehintp=0x0, use_parallel=<value optimized out>, comm=<value optimized out>, info=0, ncidp=0x7fffffffe3ec) at nc4file.c:2338 #24 0x00007ffff765f008 in nc4d_open_file ( path=0x613040 "http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd2011", mode=0, basepe=<value optimized out>, chunksizehintp=<value optimized out>, use_parallel=0, comm=0, info=0, ncidp=0x7fffffffe48c) at ncdap4.c:122 #25 0x00007ffff76103bf in nc_open (path=0x7 <Address 0x7 out of bounds>, mode=-14912, ncidp=<value optimized out>) at nc4file.c:2400 #26 0x0000000000405d39 in main (argc=<value optimized out>, argv=0x613160) at ncdump.c:2127 (gdb)
(gdb) r Starting program: /usr/bin/ncdump -k http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd2011128/gfs_hd_00z [Thread debugging using libthread_db enabled] Breakpoint 5, 0x00007ffff6934e20 in recvfrom () from /lib/libc.so.6 (gdb) bt #0 0x00007ffff6934e20 in recvfrom () from /lib/libc.so.6 #1 0x00007ffff5459b09 in ?? () from /lib/libresolv.so.2 #2 0x00007ffff5457a75 in __libc_res_nquery () from /lib/libresolv.so.2 #3 0x00007ffff5458031 in ?? () from /lib/libresolv.so.2 #4 0x00007ffff545843d in __libc_res_nsearch () from /lib/libresolv.so.2 #5 0x00007ffff3d15c37 in _nss_dns_gethostbyname4_r () from /lib/libnss_dns.so.2 #6 0x00007ffff691048c in ?? () from /lib/libc.so.6 #7 0x00007ffff6912782 in getaddrinfo () from /lib/libc.so.6 #8 0x00007ffff7bc8af2 in Curl_getaddrinfo_ex () from /usr/lib/libcurl-gnutls.so.4 #9 0x00007ffff7bc2818 in Curl_getaddrinfo () from /usr/lib/libcurl-gnutls.so.4 #10 0x00007ffff7b9976c in Curl_resolv () from /usr/lib/libcurl-gnutls.so.4 #11 0x00007ffff7b99897 in Curl_resolv_timeout () from /usr/lib/libcurl-gnutls.so.4 #12 0x00007ffff7babcb6 in ?? () from /usr/lib/libcurl-gnutls.so.4 #13 0x00007ffff7babd83 in Curl_connect () from /usr/lib/libcurl-gnutls.so.4 #14 0x00007ffff7bb646f in ?? () from /usr/lib/libcurl-gnutls.so.4 #15 0x00007ffff7650c61 in ocfetchurl (curl=0x6652e0, url=0x66e0c0 "http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd2011128/gfs_hd_00z.dds", buf=0x64f160, filetime=0x7fffffffe028) at http.c:110 #16 0x00007ffff7658a75 in readpacket (curl=0x6652e0, url=<value optimized out>, packet=0x64f160, dxd=<value optimized out>, lastmodified=0x7fffffffb8b0) at read.c:76 #17 0x00007ffff7658bf9 in readDDS (state=0x66dfc0, tree=<value optimized out>) at read.c:31 #18 0x00007ffff764fdeb in ocfetch (state=0x66dfc0, constraint=0x0, kind=0, rootp=0x7fffffffe0c8) at ocinternal.c:255 #19 0x00007ffff764ba3a in oc_fetch (conn=7, constraint=0x7fffffffc5b0 "\001", dxdkind=0, rootp=0x7fffffffe148) at oc.c:593 #20 0x00007ffff7655c65 in dap_oc_fetch (drno=0x648040, conn=6741952, ce=0x0, dxd=0, rootp=0x7fffffffe148) at daputil.c:958 #21 0x00007ffff764d51b in fetchtemplatemetadata3 (drno=0x648040) at ncdap3.c:1323 #22 0x00007ffff764e89f in nc3d_open (path=<value optimized out>, mode=<value optimized out>, ncidp=0x648010) at ncdap3.c:199 #23 0x00007ffff7612b19 in l4nc_open_file ( path=0x613040 "http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd2011128/gfs_hd_00z", mode=0, basepe=0, chunksizehintp=0x0, use_parallel=<value optimized out>, comm=<value optimized out>, info=0, ncidp=0x7fffffffe3dc) at nc4file.c:2338 #24 0x00007ffff765f008 in nc4d_open_file ( path=0x613040 "http://nomads.ncep.noaa.gov:9090/dods/gfs_hd/gfs_hd2011128/gfs_hd_00z", mode=0, basepe=<value optimized out>, chunksizehintp=<value optimized out>, use_parallel=0, comm=0, info=0, ncidp=0x7fffffffe47c) at ncdap4.c:122 #25 0x00007ffff76103bf in nc_open (path=0x7 <Address 0x7 out of bounds>, mode=-14928, ncidp=<value optimized out>) at nc4file.c:2400 #26 0x0000000000405d39 in main (argc=<value optimized out>, argv=0x6131a0) at ncdump.c:2127 (gdb)
pgpdyGr0LjKNS.pgp
Description: PGP signature