NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

[netcdfgroup] Another test failure

*** testing vlen (of ints) attribute copy...lt-tst_vl: nc4attr.c:680: rec_find_nc_type: Assertion `grp2 && type1 && type2 && *type2' failed.
/bin/sh: line 4: 27264 Aborted                 ${dir}$tst
FAIL: tst_vl


Does *type2 really not need to be null?

(gdb) bt
#0  0x00360416 in __kernel_vsyscall ()
#1 0x0059b7c1 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0x0059d092 in *__GI_abort () at abort.c:88
#3  0x005948ee in *__GI___assert_fail (
    assertion=0x2ccea4 "grp2 && type1 && type2 && *type2",
file=0x2cce60 "nc4attr.c", line=680, function=0x2ccf0b "rec_find_nc_type")
    at assert.c:78
#4  0x00265ecb in rec_find_nc_type (ncid1=<value optimized out>, type1=0x6,
    ncid2=393216, grp2=0x813d780, type2=0xbfffe6dc) at nc4attr.c:680
#5  0x00268151 in nc4_find_equal_type (xtype2=<value optimized out>,
    ncid2=<value optimized out>, xtype1=<value optimized out>,
    ncid1=<value optimized out>) at nc4attr.c:750
#6  nc_copy_att (xtype2=<value optimized out>, ncid2=<value optimized out>,
xtype1=<value optimized out>, ncid1=<value optimized out>) at nc4attr.c:828
#7  0x0804bd88 in main (argc=1, argv=0xbfffe984) at tst_vl.c:183
(gdb) up 4
#4  0x00265ecb in rec_find_nc_type (ncid1=<value optimized out>, type1=0x6,
    ncid2=393216, grp2=0x813d780, type2=0xbfffe6dc) at nc4attr.c:680
680        assert (grp2 && type1 && type2 && *type2);
(gdb) print grp2
$1 = (NC_GRP_INFO_T *) 0x813d780
(gdb) print type1
$2 = (NC_TYPE_INFO_T *) 0x6
(gdb) print type2
$3 = (NC_TYPE_INFO_T **) 0xbfffe6dc
(gdb) print *type2
$4 = (NC_TYPE_INFO_T *) 0x0

(gdb) up
#5  0x00268151 in nc4_find_equal_type (xtype2=<value optimized out>,
    ncid2=<value optimized out>, xtype1=<value optimized out>,
    ncid1=<value optimized out>) at nc4attr.c:750

type2 is no initialized in this function, presumably because it is a returned value.

--
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion@xxxxxxxxxxxxx
Boulder, CO 80301              http://www.cora.nwra.com



  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: