hedis icon indicating copy to clipboard operation
hedis copied to clipboard

Segmentation Fault in parse_yaml_entry function

Open ameanshinobu opened this issue 9 years ago • 0 comments

To test the compile result, I try reduce the hedis.yml as follow.

mysqltest: type: mysql username: root password: MY_PASSWORD host: localhost database: hedistest env: LD_LIBRARY_PATH: $LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu

I add some debug messages and show as follow.

root@8baeaa89a5cf:/home/amean/hedis/src# ./redis-server --hedis ../hedis.yml Close config file, and ready to add connector Finish zmalloc sizeof(hedisConnector), line_count = 9 Switch type 0, at i = 0 Switch type 1, at i = 1 Switch type 2, at i = 5 case 2 first step, finish zmalloc, entry_count=4 finish case 2, j= 4 Segmentation fault (core dumped)

If I use original hedis.yml file to test, there is no such problem. So I think there are some bugs in parse_yaml_entry function that cause segmention fault at initial stage of the program execute.

ameanshinobu avatar Aug 02 '16 06:08 ameanshinobu