[Bugs] [Bug 1608566] line coverage tests: glusterd crash in ./tests/basic/ sdfs-sanity.t

bugzilla at redhat.com bugzilla at redhat.com
Wed Jul 25 20:55:44 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1608566



--- Comment #2 from Shyamsundar <srangana at redhat.com> ---
On further debugging:

(gdb) p vol_list 
$12 = (volume_opt_list_t *) 0x7f2404203570
(gdb) p vol_list->given_opt 
$13 = (volume_option_t *) 0x7f240e02a680 <options>

So we are processing given_opt and which is dynamically loaded in the function
_gd_get_option_type from the xlator source.

Frame 3 suggests this is sdfs (as the test is for the same).

#3  0x00007f241353e76b in _gd_get_option_type (key=0x7f2408023df0
"features.sdfs") at glusterd-volgen.c:7209

Inspecting volume_options for sdfs, we can see that it is not NULL terminated,
and hence can cause list options to incorrectly parsed.

The patch posted in comment #1 addresses this issue.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list