Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1510589

Summary: wsgi:pulp segfaults resulting in core dump of httpd
Product: Red Hat Satellite Reporter: Dylan Gross <dgross>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: UnspecifiedCC: bbuckingham, daviddavis, mhrivnak, pcreech, ttereshc
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-30 21:46:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dylan Gross 2017-11-07 18:14:33 UTC
Description of problem:

   During nightly pulp activity, httpd segfaults and coredumps.




Version-Release number of selected component (if applicable):

   Red Hat Satellite 6.2.12
   httpd-2.4.6-67.el7_4.2

How reproducible:   Unknown

Actual results:

   Segmentation fault on httpd

Expected results:

   No segmentation fault

Additional info:

Comment 3 pulp-infra@redhat.com 2017-11-13 21:04:50 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 4 pulp-infra@redhat.com 2017-11-13 21:04:53 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 5 Dylan Gross 2017-11-14 23:06:13 UTC
From the 11/02 coredump...

[New LWP 11566]
[New LWP 11568]
[New LWP 13421]
[New LWP 11131]
[New LWP 11567]
[New LWP 11569]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `(wsgi:pulp)     -DFOREGROUND'.
Program terminated with signal 11, Segmentation fault.
#0  _PyTrash_thread_destroy_chain () at /usr/src/debug/Python-2.7.5/Objects/object.c:2510
2510	        destructor dealloc = Py_TYPE(op)->tp_dealloc;


(gdb) info threads
  Id   Target Id         Frame 
  6    Thread 0x7f09f2ffd700 (LWP 11569) 0x00007f0a1f99590d in do_fcntl (arg=<optimized out>, cmd=7, fd=22) at ../sysdeps/unix/sysv/linux/fcntl.c:39
  5    Thread 0x7f09f3fff700 (LWP 11567) 0x00007f0a1f4af7a3 in select () at ../sysdeps/unix/syscall-template.S:81
  4    Thread 0x7f0a20eaf880 (LWP 11131) 0x00007f0a1f994a0b in futex_abstimed_wait (cancel=true, private=<optimized out>, abstime=0x0, expected=0, futex=0x55730f57c570)
    at ../nptl/sysdeps/unix/sysv/linux/sem_waitcommon.c:43
  3    Thread 0x7f09e6ff5700 (LWP 13421) 0x00007f0a1f47f1ad in nanosleep () at ../sysdeps/unix/syscall-template.S:81
  2    Thread 0x7f09f37fe700 (LWP 11568) 0x00007f0a1f4af7a3 in select () at ../sysdeps/unix/syscall-template.S:81
* 1    Thread 0x7f09f8f90700 (LWP 11566) _PyTrash_thread_destroy_chain () at /usr/src/debug/Python-2.7.5/Objects/object.c:2510


(gdb) frame 0
#0  _PyTrash_thread_destroy_chain () at /usr/src/debug/Python-2.7.5/Objects/object.c:2510
2510	        destructor dealloc = Py_TYPE(op)->tp_dealloc;


(gdb) list
2505	_PyTrash_thread_destroy_chain(void)
2506	{
2507	    PyThreadState *tstate = PyThreadState_GET();
2508	    while (tstate->trash_delete_later) {
2509	        PyObject *op = tstate->trash_delete_later;
2510	        destructor dealloc = Py_TYPE(op)->tp_dealloc;   <<< ?
2511	
2512	        tstate->trash_delete_later =
2513	            (PyObject*) _Py_AS_GC(op)->gc.gc_prev;
2514	

(gdb) print op
$1 = <unknown at remote 0x1d0>

Comment 6 pulp-infra@redhat.com 2017-11-17 16:02:12 UTC
The Pulp upstream bug priority is at High. Updating the external tracker on this bug.

Comment 7 Dylan Gross 2017-11-30 21:46:54 UTC

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