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

parser segfaults with empty values #2

Open
m1ari opened this issue Feb 10, 2015 · 1 comment
Open

parser segfaults with empty values #2

m1ari opened this issue Feb 10, 2015 · 1 comment

Comments

@m1ari
Copy link
Contributor

m1ari commented Feb 10, 2015

Feb 10 06:37:05 localhost ukhasnet[14597]: Starting
Feb 10 06:37:06 localhost ukhasnet[14597]: Processing Data "T,-273.2S48(9003937)
Feb 10 06:37:06 localhost ukhasnet[14597]: Processing Data "S48(9003937)
Feb 10 06:37:06 localhost kernel: ukhasnet.pl[14597]: segfault at 0 ip 00007f146621e80f sp 00007fff12ba8078 error 4 in libc-2.15.so[7f14660e4000+1b5000]
Feb 10 06:37:06 localhost kernel: init: ukhasnet-app main process (14597) killed by SEGV signal
Feb 10 06:37:06 localhost kernel: init: ukhasnet-app main process ended, respawning

Fixed by marking the row as Error state.
update ukhasnet.rawdata set state='Error' where id=9003937;

Code should detect and not insert empty data values alternatively the db should allow null values.

@m1ari
Copy link
Contributor Author

m1ari commented Jun 30, 2015

There's also a similar issue with - symbols in odd parts of the data string
2yV2.7T-00.-H61[MB2,MB30]

m1ari added a commit that referenced this issue Jul 4, 2015
m1ari added a commit that referenced this issue Jul 4, 2015
m1ari added a commit that referenced this issue Jul 4, 2015
m1ari added a commit that referenced this issue Jul 4, 2015
m1ari added a commit that referenced this issue Jul 4, 2015
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

1 participant