﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
1253	DVO seg faults with mextract on 2.3 million+ measures from ThreePi.Run2.v0 catdir	Michael Wood-Vasey	magnier	"dvo compiled as of May 6 from SVN head that (or previous) day seg faults when reading lots of records.  I can only suspect that there's an int that's not long long enough.

[wwoodvas@heroint2 data]$ gdb `which dvo`
GNU gdb Red Hat Linux (6.5-25.el5rh)
Copyright (C) 2006 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.
There is absolutely no warranty for GDB.  Type ""show warranty"" for details.
This GDB was configured as ""x86_64-redhat-linux-gnu""...Using host libthread_db library ""/lib64/libthread_db.so.1"".

(gdb) set args -D CATDIR ThreePi.Run2.v0/ -D CAMERA gpc1
(gdb) run
Starting program: /odyssey/apps/ipp/ipp-dev-welling/psconfig/ipp-dev-welling.linrh64/bin/dvo -D CATDIR ThreePi.Run2.v0/ -D CAMERA gpc1
[Thread debugging using libthread_db enabled]
[New Thread 47658106601360 (LWP 32164)]
no file /n/home/wwoodvas/.dvorc

Welcome to DVO - desktop virtual observatory


dvo: $KAPA = kapa -noX
dvo: region 0 0 180
dvo: mextract -region xccd, yccd, mag, mag:err, ra, dec, time, ra:ave, dec:ave,objID, catID, photcode, fwhm, mag:cat, phot_flags
reading images (mode DVO_MODE_MEF)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47658106601360 (LWP 32164)]
0x0000000000433a5c in mextract (argc=15, argv=0xd36f4b0)
    at /odyssey/apps/src/ipp/ipp-dev-welling/ipp/Ohana/src/opihi/dvo/mextract.c:149
149		    vec[n][0].elements.Flt[Npts] = values[n].Flt;
(gdb) bt
#0  0x0000000000433a5c in mextract (argc=15, argv=0xd36f4b0)
    at /odyssey/apps/src/ipp/ipp-dev-welling/ipp/Ohana/src/opihi/dvo/mextract.c:149
#1  0x00002b5843851bcb in command (
    line=0xd36f380 ""mextract -region xccd, yccd, mag, mag:err, ra, dec, time, ra:ave, dec:ave,objID, catID, photcode, fwhm, mag:cat, phot_flags"", 
    outline=0x7fff678d6ae0, VERBOSE=1)
    at /odyssey/apps/src/ipp/ipp-dev-welling/ipp/Ohana/src/opihi/lib.shell/command.c:46
#2  0x00002b584385978c in multicommand (
    line=0xd36f260 ""mextract -region xccd, yccd, mag, mag:err, ra, dec, time, ra:ave, dec:ave,objID, catID, photcode, fwhm, mag:cat, phot_flags"")
    at /odyssey/apps/src/ipp/ipp-dev-welling/ipp/Ohana/src/opihi/lib.shell/multicommand.c:79
#3  0x00002b584387ca1c in opihi (argc=1, argv=0x7fff678d6c78)
    at /odyssey/apps/src/ipp/ipp-dev-welling/ipp/Ohana/src/opihi/lib.shell/opihi.c:42
#4  0x000000000041e347 in main (argc=7, argv=0x7fff678d6c78)
    at /odyssey/apps/src/ipp/ipp-dev-welling/ipp/Ohana/src/opihi/dvo/dvo.c:71
(gdb) p n
$1 = 0
(gdb) p Npts
$2 = 268435000
(gdb) p values
$3 = (dbValue *) 0xdb08fd0
(gdb) p vec[n][0].elements.Flt
$4 = (double *) 0x2b613272a010
(gdb) p vec[n][0].elements.Flt[268435000]
Cannot access memory at address 0x2b61b27291d0
(gdb) p vec[n][0].elements.Flt[268434999]
Cannot access memory at address 0x2b61b27291c8
"	defect	new	normal		DVO	current	major			
