Monitoring Splunk

Crash with error "/opt/splunk/p4/splunk/branches/prince/src/search/processors/SortProcessor.cpp:297: bool rescomp_t::operator<(rescomp_t) const: Assertion `first.size() == other.first.size()' failed."

zliu
Splunk Employee
Splunk Employee

Whenever do a particular search, Splunk always crashes with error

"/opt/splunk/p4/splunk/branches/prince/src/search/processors/SortProcessor.cpp:297: bool rescomp_t::operator<(rescomp_t) const: Assertion `first.size() == other.first.size()' failed."  in crash files. 

Search query:

host="m1pm*" OR host=m1crim* OR host=m1ph* OR host=m1prim* source="WMI:FreeDiskSpace" 
| stats first(FreeMegabytes) as free last(FreeMegabytes) as oldfree by host Name 
| eval "%Change from 24 hours ago (GB)" = tostring((((free - oldfree)/1024/oldfree)*100), "commas") 
| fields - oldfree | eval free=tostring(free/1024) | eval free=tostring(free, "commas") 
| rename free as "Free (GB)"
Tags (1)
0 Karma

jrodman
Splunk Employee
Splunk Employee

We should get the matching crashlog (and on windows DMP) files and get a bug opened. If you're hoping for a guess, you could ask Dr Z if he has any idea.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

Looks to me like a plain bug, but it might be helpful to know:

  • What OS and Splunk version are you on?
  • Does the plain search

    host="m1pm*" OR host=m1crim* OR host=m1ph* OR host=m1prim* source="WMI:FreeDiskSpace"
    

    (without any stats or other commands`) crash?

  • If not, does

    host="m1pm*" OR host=m1crim* OR host=m1ph* OR host=m1prim* source="WMI:FreeDiskSpace"
    | stats count by host Name
    

    (all one search, I split lines for readability) crash?

  • If not, what's the output of

    host="m1pm*" OR host=m1crim* OR host=m1ph* OR host=m1prim* source="WMI:FreeDiskSpace"
    | stats count by host Name | stats count by host
    

    and

    host="m1pm*" OR host=m1crim* OR host=m1ph* OR host=m1prim* source="WMI:FreeDiskSpace"
    | stats count by host Name | stats count by Name
    

    if they don't crash?

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...