Bug 1759204 - [abrt] python3: solv_calloc(): python3.8 killed by SIGSEGV
Summary: [abrt] python3: solv_calloc(): python3.8 killed by SIGSEGV
Keywords:
Status: CLOSED DUPLICATE of bug 1758737
Alias: None
Product: Fedora
Classification: Fedora
Component: libsolv
Version: rawhide
Hardware: x86_64
OS: Unspecified
high
unspecified
Target Milestone: ---
Assignee: Lukáš Hrázký
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:78e76bd45bcbe53193f29a71a87...
: 1762279 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-07 15:32 UTC by Mikhail
Modified: 2019-10-23 08:39 UTC (History)
22 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-23 08:39:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (51.61 KB, text/plain)
2019-10-07 15:32 UTC, Mikhail
no flags Details
File: core_backtrace (16.13 KB, text/plain)
2019-10-07 15:32 UTC, Mikhail
no flags Details
File: cpuinfo (2.29 KB, text/plain)
2019-10-07 15:32 UTC, Mikhail
no flags Details
File: dso_list (13.55 KB, text/plain)
2019-10-07 15:32 UTC, Mikhail
no flags Details
File: environ (4.61 KB, text/plain)
2019-10-07 15:32 UTC, Mikhail
no flags Details
File: limits (1.29 KB, text/plain)
2019-10-07 15:32 UTC, Mikhail
no flags Details
File: maps (80.35 KB, text/plain)
2019-10-07 15:32 UTC, Mikhail
no flags Details
File: mountinfo (2.60 KB, text/plain)
2019-10-07 15:32 UTC, Mikhail
no flags Details
File: open_fds (4.88 KB, text/plain)
2019-10-07 15:32 UTC, Mikhail
no flags Details
File: proc_pid_status (1.31 KB, text/plain)
2019-10-07 15:32 UTC, Mikhail
no flags Details
dnf.log (864.52 KB, text/plain)
2019-10-07 15:37 UTC, Mikhail
no flags Details

Description Mikhail 2019-10-07 15:32:04 UTC
Description of problem:
# dnf upgrade --refresh -v --exclude=mutter

Version-Release number of selected component:
python3-3.8.0~rc1-1.fc32

Additional info:
reporter:       libreport-2.10.1
backtrace_rating: 4
cgroup:         0::/user.slice/user-1000.slice/user/gnome-terminal-server.service
cmdline:        /usr/bin/python3 /usr/bin/dnf upgrade --refresh -v --exclude=mutter
crash_function: solv_calloc
executable:     /usr/bin/python3.8
journald_cursor: s=af85196e12e64a24a411e7dfc5442bbf;i=35b308;b=1427d6151e494710a82e87f4b1145fb6;m=1a0da76fc4;t=59453a571f52f;x=f73aa61a81e06cca
kernel:         5.4.0-0.rc1.git1.1.fc32.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            0

Truncated backtrace:
Thread no. 0 (10 frames)
 #2 solv_calloc at ../src/util.c:79
 #3 pool_setarchpolicy at ../src/poolarch.c:114
 #5 dnf_sack_set_arch(DnfSack*, gchar const*, GError**) at /usr/src/debug/libdnf-0.35.5-2.fc32.x86_64/libdnf/dnf-sack.cpp:828
 #6 sack_init(_SackObject*, PyObject*, PyObject*) at /usr/src/debug/libdnf-0.35.5-2.fc32.x86_64/python/hawkey/sack-py.cpp:265
 #7 wrap_init at /usr/src/debug/python3-3.8.0
 #8 PyObject_Call at /usr/src/debug/python3-3.8.0
 #9 do_call_core at /usr/src/debug/python3-3.8.0
 #10 _PyEval_EvalFrameDefault at /usr/src/debug/python3-3.8.0
 #11 _PyEval_EvalCodeWithName at /usr/src/debug/python3-3.8.0
 #12 _PyFunction_Vectorcall at /usr/src/debug/python3-3.8.0

Comment 1 Mikhail 2019-10-07 15:32:08 UTC
Created attachment 1623197 [details]
File: backtrace

Comment 2 Mikhail 2019-10-07 15:32:10 UTC
Created attachment 1623198 [details]
File: core_backtrace

Comment 3 Mikhail 2019-10-07 15:32:11 UTC
Created attachment 1623199 [details]
File: cpuinfo

Comment 4 Mikhail 2019-10-07 15:32:13 UTC
Created attachment 1623200 [details]
File: dso_list

Comment 5 Mikhail 2019-10-07 15:32:14 UTC
Created attachment 1623201 [details]
File: environ

Comment 6 Mikhail 2019-10-07 15:32:16 UTC
Created attachment 1623203 [details]
File: limits

Comment 7 Mikhail 2019-10-07 15:32:18 UTC
Created attachment 1623204 [details]
File: maps

Comment 8 Mikhail 2019-10-07 15:32:20 UTC
Created attachment 1623205 [details]
File: mountinfo

Comment 9 Mikhail 2019-10-07 15:32:22 UTC
Created attachment 1623206 [details]
File: open_fds

Comment 10 Mikhail 2019-10-07 15:32:23 UTC
Created attachment 1623207 [details]
File: proc_pid_status

Comment 11 Mikhail 2019-10-07 15:37:36 UTC
Created attachment 1623211 [details]
dnf.log

Comment 12 Miro Hrončok 2019-10-07 17:33:14 UTC
I'm going to mark this as a duplicate. It is a bit different crash, but it seems relevant.

*** This bug has been marked as a duplicate of bug 1758850 ***

Comment 13 Lukáš Hrázký 2019-10-08 11:04:22 UTC
I'm actually going to unmark it... the other bug is a problem with g_log handler, this one seems to be crashing in libsolv. They may be related, but lets not let this one get lost.

Comment 14 Miro Hrončok 2019-10-08 11:15:54 UTC
OK. Sorry about that. Marking as libsolv bug. Let us know if you need some Python help.

Comment 15 Ian Wienand 2019-10-14 01:44:20 UTC
I initially saw a very similar bt in libsolv debugging #1761282

---
2019-10-14 00:10:41.251 | Thread 1 "python3" received signal SIGSEGV, Segmentation fault.
2019-10-14 00:10:41.251 | 0x00007ffff7e8611d in _int_malloc () from /lib64/libc.so.6
2019-10-14 00:10:41.254 | #0  0x00007ffff7e8611d in _int_malloc () from /lib64/libc.so.6
2019-10-14 00:10:41.254 | #1  0x00007ffff7e889c6 in calloc () from /lib64/libc.so.6
2019-10-14 00:10:41.276 | #2  0x00007ffff6787b90 in solv_calloc () from /lib64/libsolv.so.1
2019-10-14 00:10:41.276 | #3  0x00007ffff674fa8f in pool_setarchpolicy () from /lib64/libsolv.so.1
2019-10-14 00:10:41.277 | #4  0x00007ffff6bfaf24 in dnf_sack_set_arch () from /lib64/libdnf.so.2
2019-10-14 00:10:41.299 | #5  0x00007ffff51623e5 in sack_init(_SackObject*, _object*, _object*) () from /usr/lib64/python3.7/site-packages/hawkey/_hawkey.so
2019-10-14 00:10:41.299 | #6  0x00007ffff7bb3276 in ?? () from /lib64/libpython3.7m.so.1.0
...
---

as i started installing debug libraries and re-running, the problem seemed to move.  However, I strongly suggest that this suggests the issue is really something like #1758850, and not actually libsolv.

Comment 16 Lukáš Hrázký 2019-10-14 13:06:54 UTC
Mikhail, segfaults in memory allocation hint at corrupted heap, which could be caused by the same issue as https://bugzilla.redhat.com/show_bug.cgi?id=1758737.

The fix for that should be released this week and in the meantime, you can also use our nightly repositories: https://copr.fedorainfracloud.org/coprs/rpmsoftwaremanagement/dnf-nightly/ which have the fix already.

How often are you getting this or similar traceback? Please let us know after you install the fix.

If you can (semi-)consistently reproduce the segfault (after installing the fixed version), running under valgrind might find the problem.

Thanks!

Comment 17 Lukáš Hrázký 2019-10-21 12:13:47 UTC
*** Bug 1762279 has been marked as a duplicate of this bug. ***

Comment 18 Lukáš Hrázký 2019-10-23 08:39:21 UTC
At this stage I'm quite certain the crash was caused by the log handler issue, marking this as duplicate. The fix for it has been released. If the problems persist, feel free to reopen this.

*** This bug has been marked as a duplicate of bug 1758737 ***


Note You need to log in before you can comment on or make changes to this bug.