On Fri, 15 Aug 2025, Van Ly wrote:

The daily `makemandb -Q' drops core and gdb reads as follows.

Could that #2 line item be related to pkgsrc? as I've had to reset pkgsrc db 
and re‑install in response to `pkgin ug' dropping core.


That's very likely a function called by parse_escape[1] which abort()s.

  Core was generated by `makemandb'.
  Program terminated with signal SIGABRT, Aborted.
  (gdb) bt
  #0  0x00007030ab57eeea in _lwp_kill () from /usr/lib/libc.so.12
  #1  0x00007030ab5846e0 in abort () from /usr/lib/libc.so.12
  #2  0x0000000185249cf5 in ?? ()
  #3  0x000000018522b165 in parse_escape ()
  #4  0x000000018522b307 in append ()
  #5  0x000000018522b826 in pman_parse_node ()
  #6  0x000000018522ac19 in proff_node ()
  #7  0x000000018522abe2 in proff_node ()
  #8  0x000000018524af12 in main ()


Can you unpack the debug set (even makemandb alone might do) and then run this
command:

```
# makemandb -fv > /tmp/m.txt 2>&1
```

That should show what file it's choking on.

Do the backtrace with the debug symbol unpacked, too.

-RVP

[1]: 
https://github.com/NetBSD/src/blob/trunk/usr.sbin/makemandb/makemandb.c#L1995

Reply via email to