bugPSPP - Bugs: bug #24557, crosstabs segfault

 
 

bug #24557: crosstabs segfault

Submitter:  Jason H Stover <jstover>
Submitted:  Tue 14 Oct 2008 02:50:10 PM UTC
   
 
Category:  Other Severity:  7 - Major
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 16 Oct 2008 02:03:26 PM UTC, comment #3: 


>It looks good; the result matches that of R.


Great, thanks.  I pushed this to stable.

Ben Pfaff <blp>
Group administrator
Thu 16 Oct 2008 01:52:44 PM UTC, comment #2: 

It looks good; the result matches that of R.

Jason H Stover <jstover>
Group Member
Thu 16 Oct 2008 03:48:33 AM UTC, comment #1: 

Thanks for the bug report.  The attachment fixes the crash for me, but I didn't verify that the results are correct.  If they are, then I'll check this in and close the bug.  Let me know.

(file #16681)

Ben Pfaff <blp>
Group administrator
Tue 14 Oct 2008 02:50:10 PM UTC, original submission:  

The following syntax crashes crosstabs, using the attached data file:

GET DATA
  /TYPE=TXT
  /FILE="sentence-data-sample.txt"
  /IMPORTCASES=ALL
  /ARRANGEMENT=DELIMITED
  /DELCASE=LINE
  /FIRSTCASE=2
  /DELIMITERS="\t"
  /VARIABLES=
    author A16
    title A27
    a F1.0
    and_A F2.0
    he F1.0
    i F1.0
    in F1.0
    of F1.0
    she F1.0
    that F1.0
    the F2.0
    to_A F1.0
    was F1.0.

CROSSTABS
/TABLES= author BY in
/FORMAT=AVALUE LABELS TABLES PIVOT
/STATISTICS=CHISQ
/CELLS=COUNT ROW COLUMN TOTAL.

Backtrace:
#0  0xb78d0864 in fork () from /lib/libc.so.6
#1  0x0804bbbb in connect_debugger () at src/ui/debugger.c:40
#2  0x0804a854 in bug_handler (sig=6) at src/ui/terminal/main.c:177
#3  <signal handler called>
#4  0xb7865c66 in raise () from /lib/libc.so.6
#5  0xb7867571 in abort () from /lib/libc.so.6
#6  0xb785ee60 in __assert_fail () from /lib/libc.so.6
#7  0xb7e7fc5f in sort (array=0x80fe2e0, count=109, size=8, compare=0xb7f3e2e7 <compare_value>, aux=0xbf993e40)
    at src/libpspp/array.c:796
#8  0xb7e7ec06 in sort_unique (array=0x80fe2e0, count=109, size=8, compare=0xb7f3e2e7 <compare_value>,
    aux=0xbf993e40) at src/libpspp/array.c:215
#9  0xb7f3e44b in enum_var_values (entries=0x8078620, entry_cnt=109, var_idx=0, values=0xb7fb0670,
    value_cnt=0xb7fb0674) at src/language/stats/crosstabs.q:1683
#10 0xb7f3d2f5 in output_pivot_table (pb=0x8078620, pe=0x80787d4, matp=0xbf9940f0, row_totp=0xbf9940ec,
    col_totp=0xbf9940e8, maxrows=0xbf9940e4, maxcols=0xbf9940e0, maxcells=0xbf9940dc)
    at src/language/stats/crosstabs.q:1241
#11 0xb7f3bc66 in postcalc () at src/language/stats/crosstabs.q:821
#12 0xb7f3a7e6 in internal_cmd_crosstabs (lexer=0x80758f8, ds=0x8075798) at src/language/stats/crosstabs.q:321
#13 0xb7f3a39a in cmd_crosstabs (lexer=0x80758f8, ds=0x8075798) at src/language/stats/crosstabs.q:192
#14 0xb7ed41e5 in do_parse_command (lexer=0x80758f8, ds=0x8075798, state=CMD_STATE_DATA)
    at src/language/command.c:235
#15 0xb7ed3eea in cmd_parse_in_state (lexer=0x80758f8, ds=0x8075798, state=CMD_STATE_DATA)
    at src/language/command.c:148
#16 0xb7ed3ff1 in cmd_parse (lexer=0x80758f8, ds=0x8075798) at src/language/command.c:165
#17 0x0804a725 in main (argc=2, argv=0xbf994304) at src/ui/terminal/main.c:124

Jason H Stover <jstover>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #16681:  bug-24557.patch added by blp (695B - text/x-diff)
file #16674:  sentence-data-sample.txt added by jstover (165KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by blp (Updated the item)
  • -email is unavailable- added by jstover (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-10-16 blp StatusReady for Test/Review Fixed
        Open/ClosedOpen Closed
    2008-10-16 blp Attached File- Added bug-24557.patch, #16681
        StatusNone Ready for Test/Review
    2008-10-14 jstover Attached File- Added sentence-data-sample.txt, #16674

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code