Skip to content

Instantly share code, notes, and snippets.

@Tux
Created February 6, 2015 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tux/e398c043a80ecf498a05 to your computer and use it in GitHub Desktop.
Save Tux/e398c043a80ecf498a05 to your computer and use it in GitHub Desktop.
$ git clone github.com:Tux/CSV p6-Text-CSV
$ cd p6-Text-CSV
$ panda install Slang::Tuxic
$ mkdir Text
$ ln -s ../test-t.pl Text/CSV
$ perl6 -I. t/55_combi.t
ok 1 - -- qc ec sc ac aw
ok 2 - -- "'" "\t" ";" Bool::False Bool::False
ok 3 - No char conflict
ok 4 - check allow_whitespace
ok 5 - check always_quote
ok 6 - check escape_char
ok 7 - check quote_char
ok 8 - check sep_char
ok 9 - combine
:
:
ok 1327 - check sep_char
ok 1328 - combine
ok 1329 - string
# @78 ‹,1,1,1.4,1.4,' - 1,4',1+2=3,' ' ain 't it great '','"foo"! said the `bär','the ~ in "0 \0 this l 'ne is \r ; or " '"'›
not ok 1330 - parse
/pro/3gl/CPAN/rakudobrew/bin/perl6: line 2: 30112 Segmentation fault /pro/3gl/CPAN/rakudobrew/moar-nom/install/bin/perl6 "$@"
valgrind:
==30318== Invalid read of size 1
==30318== at 0x4FC4225: MVM_string_concatenate (in /pro/3gl/CPAN/rakudobrew/moar-nom/install/lib/libmoar.so)
==30318== by 0x4F5B889: MVM_interp_run (in /pro/3gl/CPAN/rakudobrew/moar-nom/install/lib/libmoar.so)
==30318== by 0x4FD5CFE: MVM_vm_run_file (in /pro/3gl/CPAN/rakudobrew/moar-nom/install/lib/libmoar.so)
==30318== by 0x400F39: main (in /pro/3gl/CPAN/rakudobrew/moar-nom/install/bin/moar)
==30318== Address 0x4 is not stack'd, malloc'd or (recently) free'd
==30318==
==30318==
==30318== Process terminating with default action of signal 11 (SIGSEGV)
==30318== Access not within mapped region at address 0x4
==30318== at 0x4FC4225: MVM_string_concatenate (in /pro/3gl/CPAN/rakudobrew/moar-nom/install/lib/libmoar.so)
==30318== by 0x4F5B889: MVM_interp_run (in /pro/3gl/CPAN/rakudobrew/moar-nom/install/lib/libmoar.so)
==30318== by 0x4FD5CFE: MVM_vm_run_file (in /pro/3gl/CPAN/rakudobrew/moar-nom/install/lib/libmoar.so)
==30318== by 0x400F39: main (in /pro/3gl/CPAN/rakudobrew/moar-nom/install/bin/moar)
==30318== If you believe this happened as a result of a stack
==30318== overflow in your program's main thread (unlikely but
==30318== possible), you can try to increase the size of the
==30318== main thread stack using the --main-stacksize= flag.
==30318== The main thread stack size used in this run was 8388608.
==30318==
==30318== HEAP SUMMARY:
==30318== in use at exit: 153,656,960 bytes in 500,169 blocks
==30318== total heap usage: 2,949,747 allocs, 2,449,578 frees, 1,179,191,917 bytes allocated
==30318==
==30318== LEAK SUMMARY:
==30318== definitely lost: 2,985,884 bytes in 138,174 blocks
==30318== indirectly lost: 468,107 bytes in 17,118 blocks
==30318== possibly lost: 1,502 bytes in 96 blocks
==30318== still reachable: 150,201,467 bytes in 344,781 blocks
==30318== suppressed: 0 bytes in 0 blocks
==30318== Rerun with --leak-check=full to see details of leaked memory
==30318==
==30318== For counts of detected and suppressed errors, rerun with: -v
==30318== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 1 from 1)
Segmentation fault
@FROGGS
Copy link

FROGGS commented Feb 6, 2015

line five should be $ ln -s ../test-t.pl Text/CSV.pm, and, I can reproduce the segfault on my machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment