csvtool crashes when processing big file

Bug #1280046 reported by zasran
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ocaml-csv (Ubuntu)
New
Undecided
Unassigned

Bug Description

Problem: When processing big file (observed with 227MB file) csvtool exits and prints an error message 'Fatal error: exception Stack_overflow'.

Expected outcome: I expceted it to print first column of the file.

How to reproduce the problem:

erik@yummly-ubuntu-erik-gazelle:~/work/billingReports$ csvtool col 1 file.1000000.csv
Fatal error: exception Stack_overflow

erik@yummly-ubuntu-erik-gazelle:~/work/billingReports$ csvtool col 1 file.100000.csv | wc
 100000 100000 1000000

Files are same except for the number of lines (100,000 vs. 1,000,000 lines), these commands were used to generate files:

erik@yummly-ubuntu-erik-gazelle:~/work/billingReports$ for i in $(seq 1 1000000) ; do echo '1/01/2014,337616,something here,"Some ID for something",337593,"activity for entity",336896,one,5,1,0,0,two,"without image",three,search,site,publisher,1,1,phone,' ; done > file.1000000.csv

erik@yummly-ubuntu-erik-gazelle:~/work/billingReports$ for i in $(seq 1 100000) ; do echo '1/01/2014,337616,something here,"Some ID for something",337593,"activity for entity",336896,one,5,1,0,0,two,"without image",three,search,site,publisher,1,1,phone,' ; done > file.100000.csv

System info:

erik@yummly-ubuntu-erik-gazelle:~/work/billingReports$ lsb_release -rd
Description: Ubuntu 13.10
Release: 13.10

erik@yummly-ubuntu-erik-gazelle:~/work/billingReports$ apt-cache policy csvtool
csvtool:
  Installed: 1.3.0-3
  Candidate: 1.3.0-3
  Version table:
 *** 1.3.0-3 0
        500 http://us.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages
        100 /var/lib/dpkg/status

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.