[Lessfs-users] nullpointer segfault in lib_common.c (1.4.2)
Brought to you by:
mruijter
|
From: Märt B. <spa...@gm...> - 2011-05-24 18:14:57
|
Hi!
I can't find the bugzilla and sourceforge won't let me send a message to
mruijter. So I'll file my bug report here.
lessfs-1.4.2 crashes on my gentoo box with segfault. My use flags are:
USE="crypt -debug -lzo -memtrace". The segfault is created in
lib_common.c line 1276:
if (0 != strcmp(config->blockdata_io_type, "file_io")) {
In my case, config->blockdata_io_type is null and the program crashes.
blockdata_io_type is usually set in lib_common.c:3116 (parseconfig),
except #ifndef HAMSTERDB. Possible fix could be adding the following
lines (maybe? is "tokyocabinet" correct?):
@3153
#ifndef HAMSTERDB
+ config->blockdata_io_type = "tokyocabinet";
config->blockdatabs = read_val("BLOCKDATA_BS");
LINFO("The selected data store is tokyocabinet.");
#else
Regards,
Märt Bakhoff
|