[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Charts
From: |
Ben Pfaff |
Subject: |
Re: Charts |
Date: |
Sun, 05 Dec 2004 13:20:27 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
John Darrington <address@hidden> writes:
> Are you still getting this problem?
>
> I've done quite a bit of tidying up of the chart stuff now, and I
> think it should now be reasonably robust.
Now I get a different problem. With this source file:
DATA LIST FIXED
FILE='cvs-hist'
/RTYPE 1-1 (A)
WHEND 3-12 (SDATE)
WHENT 14-18 (TIME)
WHO 26-33 (A)
WHAT 40-70 (A)
.
VALUE LABELS /RTYPE 'A' 'Added' 'M' 'Modified' 'R' 'Removed'.
VARIABLE LABEL WHAT 'Filename'.
VARIABLE LABEL WHO 'Developer'.
VARIABLE LABEL WHEND 'Date'.
SPLIT FILE BY WHO.
FREQUENCIES /RTYPE.
SPLIT FILE OFF.
COMPUTE T= 86400 * XDATE.JDAY(WHEND).
COMPUTE WHAT=RTRIM(WHAT).
SORT CASES BY WHAT, T (D).
SPLIT FILE BY WHAT.
* Number of days between file modification
COMPUTE DIFF = LAG(T) - T.
COMPUTE DIFF = DIFF / 3600 / 24.
VARIABLE LABEL DIFF 'Time between modification'.
LIST.
EXAMINE DIFF
/STATISTICS = DESCRIPTIVES
/PLOT = NPPLOT
.
I get a segfault:
(gdb) r
Program received signal SIGSEGV, Segmentation fault.
metrics_postcalc (m=0x810c8a8) at factor_stats.c:190
190 m->trimmed_mean += (m->n - m->wvp[k2 - 1]->cc - tc) *
m->wvp[k2]->v.f ;
(gdb) bt
#0 metrics_postcalc (m=0x810c8a8) at factor_stats.c:190
#1 0x08055c44 in run_examine (cf=0x89, cmd_=0x80e7e60) at examine.q:560
#2 0x080c4410 in multipass_split_output (aux=0xbffffb50) at vfm.c:970
#3 0x080c43df in multipass_split_callback (c=0xbffffb18, aux_=0xbffffb50)
at vfm.c:950
#4 0x080c32d1 in write_case (wc_data=0xbffffb10) at vfm.c:284
#5 0x080c39e7 in storage_source_read (source=0x89, output_case=0xbffffb18,
write_case=0x80c31a0 <write_case>, wc_data=0xbffffb10) at vfm.c:566
#6 0x080c2fe9 in internal_procedure (proc_func=0x89, aux=0x89) at vfm.c:165
#7 0x080c42d2 in multipass_procedure_with_splits (split_func=0x80559f0
<run_examine>, func_aux=0x89) at vfm.c:931
#8 0x08055061 in cmd_examine () at examine.q:153
#9 0x08077027 in cmd_parse () at command.c:207
#10 0x0809f30c in execute_command () at main.c:124
#11 0x0809f2bd in parse_script () at main.c:94
#12 0x0809f25f in main (argc=2, argv=0xbffffc64) at main.c:81
(gdb)
I think this is your code so I'll let you take the first stab at
it.
--
Peter Seebach on managing engineers:
"It's like herding cats, only most of the engineers are already
sick of laser pointers."
- Charts, John Darrington, 2004/12/04
- Re: Charts,
Ben Pfaff <=
- Re: Charts, John Darrington, 2004/12/06
- Re: Charts, Ben Pfaff, 2004/12/13
- Re: Charts, John Darrington, 2004/12/13
- Re: Charts, Ben Pfaff, 2004/12/13
- Re: Charts, John Darrington, 2004/12/13
- Re: Charts, Ben Pfaff, 2004/12/13
Trimmed mean calculation fixed [Was Re: Charts], John Darrington, 2004/12/10