-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent allocation error #73
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fahmy-Mohammed
previously approved these changes
Jan 13, 2021
joshuabenuck
force-pushed
the
prevent-allocation-error
branch
2 times, most recently
from
January 13, 2021 22:26
3972f59
to
82d191c
Compare
* Log stack traces when an allocation error is encountered * Send a Supportability metric about the module length problem * Fix linker error during axiom lib check in agent build
joshuabenuck
force-pushed
the
prevent-allocation-error
branch
from
January 13, 2021 22:27
82d191c
to
ee6cdc0
Compare
kneitinger
previously approved these changes
Jan 21, 2021
zsistla
previously approved these changes
Jan 21, 2021
* Remove -ldl in agent autoconf axiom check on BSD * Move AXIOM_CHECK variable setting to system-dependent section
ok jenkins |
ok jenkins |
kneitinger
approved these changes
Jan 22, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-approval after autoconf fix was merged in. That PR was approved, as well as this PR prior to the merge.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR prevents an allocation error that occurs in the Drupal instrumentation and improves our logging when allocation errors do occur.
Specifically, these changes:
verbosedebug
when the Drupal framework instrumentation problem is detected. This is consistent with the other related log messages.Supportability
metric in addition to the log message.The name of the
Supportability
metric is either:Supportability/framework/Drupal/NegativeModuleLength
orSupportability/framework/Drupal8/NegativeModuleLength
. This is modeled after theMiddlewareNotCallable
supportability metric the Guzzle 6 instrumentation sends.The change to
config.m4
is done to fix a build error that occurs with the addition of the calls tonr_tracer_common
inutil_memory.c
(undefined reference todladdr
). The reason this problem occurs now is that our test program callsnro_new
fromutil_object.c
which in turn calls functions fromutil_memory.c
which now depend onutil_signals.c
and it has a reference todladdr
. Prior to this change, no symbols fromutil_signals
were needed so the linker never had to resolve thedladdr
reference when building the test.The fix is to ensure that the reference to the
dl
library occurs after the reference to theaxiom
library when linking. The problem is that the intuitive places to put the reference to thedl
library are all placed before the reference toaxiom
. By tacking on an-ldl
to the first argument ofPHP_CHECK_LIBRARY
, the library reference is placed in the appropriate place when building the lib axiom test program.