Skip to content

parser segfaults with empty values #2

@m1ari

Description

@m1ari
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions