After a long struggle with khtmld, I finally managed to fix this damn bug. The new read_fifo() should now be running fine. Tested the function by running a loop cating a bookmark file, with around 280 links, 1000 time. No segmentation faults occured.
The download can be found at my wiki or sourceforge.
Link wiki: khtmld
Link sourceforge: https://sourceforge.net/projects/khtmld/