Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

double terminator trouble #1

Open
kristofer opened this issue Aug 8, 2014 · 2 comments
Open

double terminator trouble #1

kristofer opened this issue Aug 8, 2014 · 2 comments

Comments

@kristofer
Copy link

So I compiled the code, and tried to run a small text file thru the encode script...

'''
kristofer@black:~/DNAcodec/DNAcodec$ scripts/run_encode.sh machiavelli.txt machiavelli.bin
Encoded 3 blocks, source block size 512, encoded block size 1024
Position 472 to 512 of the last block was padded with double terminator
-:48: parser error : Extra content at the end of the document
?????????????????????????????????????????????????????????????????????????
^
scripts/run_encode.sh: line 8: 17212 Done lzma -z -9 -c $1
17213 Broken pipe | ./encode ECC.pchk ECC.gen - -
17214 Segmentation fault | ./DNAIO -f - $2
'''

If I break out the three steps of the script, skipping the lempel-ziv compress, just run ./encode ...
I end up with an intermediate file that has about a gigabyte of \377's after the last xml element.

I am running on this on a ubuntu box of recent release...

any ideas? Maybe you're not closing the tmp file before you copy to the output (or something?)

@a113n
Copy link
Owner

a113n commented Aug 13, 2014

Thanks for reporting this bug! I will look into this issue.

@a113n
Copy link
Owner

a113n commented Aug 25, 2014

Hi Kristofer,

I can't reproduce this bug, can you send me a minimal excerpt of your file that can cause such bug?

Thanks!
Allen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants