Wednesday, July 12, 2023

[389-users] Re: Crash with SEGV after compacting

Hi,

The crash is already fixed in 1.4.4 with
https://github.com/389ds/389-ds-base/issues/4778
The fix was about scheduling of compaction but revisit this part of code
and actually fixed this crash.

I fully agree with Mark suggestion to move to 2.x as this branch is not
maintained except for few fixes like this one.

best regards
thierry

On 7/12/23 08:31, Mathieu Baudier wrote:
> Hello,
>
> please find a fresh backtrace below.
> Is it more usable?
> I can also send it directly to you per email, if more practical.
>
> GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
> Copyright (C) 2021 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> Type "show copying" and "show warranty" for details.
> This GDB was configured as "x86_64-linux-gnu".
> Type "show configuration" for configuration details.
> For bug reporting instructions, please see:
> <https://www.gnu.org/software/gdb/bugs/>.
> Find the GDB manual and other documentation resources online at:
> <http://www.gnu.org/software/gdb/documentation/>.
>
> For help, type "help".
> Type "apropos word" to search for commands related to "word"...
> Reading symbols from /usr/sbin/ns-slapd...
> Reading symbols from /usr/lib/debug/.build-id/0a/598ea0bea9a19f0b1b8a501f3a274de07ebe32.debug...
>
> warning: Can't open file /dev/shm/t4xNpb (deleted) during file-backed mapping note processing
> [New LWP 300787]
> [New LWP 300801]
> [New LWP 300790]
> [New LWP 300785]
> [New LWP 300793]
> [New LWP 300791]
> [New LWP 300796]
> [New LWP 300792]
> [New LWP 300802]
> [New LWP 300803]
> [New LWP 300794]
> [New LWP 300795]
> [New LWP 300811]
> [New LWP 300798]
> [New LWP 300805]
> [New LWP 300809]
> [New LWP 300800]
> [New LWP 300807]
> [New LWP 300806]
> [New LWP 300788]
> [New LWP 300804]
> [New LWP 300808]
> [New LWP 300799]
> [New LWP 300786]
> [New LWP 300810]
> [New LWP 300797]
> [New LWP 300789]
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> Core was generated by `/usr/sbin/ns-slapd -D /etc/dirsrv/slapd-argeo -i /run/dirsrv/slapd-argeo.pid'.
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0 0x00007f25f88f1c9c in bdb_db_compact_one_db (db=0x0, inst=0x7f25eec65ac4, inst@entry=0x55a07ecf9fc0)
> at ../ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c:2485
> 2485 ../ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c: No such file or directory.
> [Current thread is 1 (Thread 0x7f25eec67700 (LWP 300787))]
...
>
> Thread 1 (Thread 0x7f25eec67700 (LWP 300787)):
> #0 0x00007f25f88f1c9c in bdb_db_compact_one_db (db=0x0, inst=0x7f25eec65ac4, inst@entry=0x55a07ecf9fc0) at ../ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c:2485
> type = 21920
> rc = 0
> txn = {back_txn_txn = 0x7f25fc15bc48 <PR_Unlock+104>}
> c_data = {compact_fillpercent = 0, compact_timeout = 0, compact_pages = 0, compact_empty_buckets = 0, compact_pages_free = 0, compact_pages_examine = 0, compact_levels = 0, compact_deadlock = 0, compact_pages_truncated = 0, compact_truncate = 0}
> compact_flags = <optimized out>
> #1 0x00007f25f88f44c4 in checkpoint_threadmain (param=0x55a07ecaf3b0) at ../ldap/servers/slapd/back-ldbm/db-bdb/bdb_layer.c:3825
> rc = <optimized out>
> inst_obj = 0x55a07ecfafb0
> inst = 0x55a07ecf9fc0
> db = 0x0
> interval = 2500
> rval = <optimized out>
> li = 0x55a07ecaf3b0
> debug_checkpointing = 0
> home_dir = <optimized out>
> list = 0x0
> listp = <optimized out>
> penv = 0x55a07ecffff0
> checkpoint_expire = {tv_sec = 3547533, tv_nsec = 657553560}
> compactdb_expire = {tv_sec = 6139350, tv_nsec = 997512267}
> compactdb_interval_update = 300
> checkpoint_interval_update = <optimized out>
> compactdb_interval = 2592000
> checkpoint_interval = 60
> priv = 0x55a07ee01dc0
> pEnv = 0x55a07ecffff0
> #2 0x00007f25fc161941 in _pt_root (arg=0x55a07ee0d430) at ptthread.c:201
> rv = <optimized out>
> thred = 0x55a07ee0d430
> detached = 1
> tid = 300787
> #3 0x00007f25fc100ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
> ret = <optimized out>
> pd = <optimized out>
> unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139800896501504, 3890383068704389134, 140731200599582, 140731200599583, 139800896498944, 8396800, -3767622530549827570, -3767662504817477618}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
> not_first_call = 0
> #4 0x00007f25fbf69a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
> _______________________________________________
> 389-users mailing list -- 389-users@lists.fedoraproject.org
> To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.org
> Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
_______________________________________________
389-users mailing list -- 389-users@lists.fedoraproject.org
To unsubscribe send an email to 389-users-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-users@lists.fedoraproject.org
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

No comments:

Post a Comment