[Bug 217239] head (e.g.:) -r313864 arm64 vs. jemalloc without MALLOC_PRODUCTION: various examples of tbin->avail being zero lead to SIGSEGV's

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 20 21:30:35 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217239

--- Comment #6 from Mark Millard <markmi at dsl-only.net> ---
It turns out that for the script and powerd examples the whole
tsd->tcache[0] through tsd->tcache[40] area (__je_nhbins==41) is
all zeros. That includes the lg_fill_div members of each.

For the su examples there is a next_gc_bin in
tsd->tcache[2] that is non-zero:

print/x tsd->tcache[2]
(lldb) print/x tsd->tcache[2]
(tcache_t) $1 = {
  link = {
    qre_next = 0x0000000000000000
    qre_prev = 0x0000000000000000
  }
  prof_accumbytes = 0x0000000000000000
  gc_ticker = (tick = 0x00000000, nticks = 0x00000000)
  next_gc_bin = 0xffffffff
  tbins = {
    [0] = {
      tstats = (nrequests = 0x0000000000000000)
      low_water = 0x00000000
      lg_fill_div = 0x00000000
      ncached = 0x00000000
      avail = 0x0000000000000000
    }
  }
}

But the rest of the tsd->tcache area is zero.

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


More information about the freebsd-bugs mailing list