Bug 1291855

Summary: When aborting due to large distribution, Erlang does not produce a crash dump
Product: Red Hat OpenStack Reporter: John Eckersberg <jeckersb>
Component: erlangAssignee: John Eckersberg <jeckersb>
Status: CLOSED ERRATA QA Contact: Udi Kalifon <ukalifon>
Severity: unspecified Docs Contact:
Priority: high    
Version: 7.0 (Kilo)CC: apevec, fdinitto, jeckersb, lhh, nyechiel, plemenko, yeylon
Target Milestone: z4Keywords: ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: erlang-R16B-03.10min.4.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1291822 Environment:
Last Closed: 2016-02-18 16:10:16 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:
Bug Depends On: 1291822, 1291856, 1291857    
Bug Blocks:    

Description John Eckersberg 2015-12-15 17:50:46 UTC
+++ This bug was initially created as a clone of Bug #1291822 +++

Erlang aborts in dist_port_command with ERTS_ABORT_EXIT:

    if (size > (Uint) INT_MAX)
	erl_exit(ERTS_ABORT_EXIT,
		 "Absurdly large distribution output data buffer "
		 "(%beu bytes) passed.\n",
		 size);

However, ERTS_ABORT_EXIT inhibits erlang crash dump generation.  It would be better to exit with ERTS_DUMP_EXIT so a crash dump is generated, in order to help debug crashes from large messages.

Comment 2 Udi Kalifon 2016-01-19 10:47:38 UTC
I will need more info. Where in openstack is erlang used and where do I find the code lines that you mention? Do you have a scenario to recreate this large buffer?

Comment 3 John Eckersberg 2016-01-19 14:12:39 UTC
(In reply to Udi from comment #2)
> I will need more info. Where in openstack is erlang used and where do I find
> the code lines that you mention? Do you have a scenario to recreate this
> large buffer?

See https://bugzilla.redhat.com/show_bug.cgi?id=1291822#c4 from the original bug

Comment 4 Udi Kalifon 2016-01-20 17:50:22 UTC
Verified with the images that are shipped with 7.3.

Comment 7 errata-xmlrpc 2016-02-18 16:10:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0259.html