Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 861413 Details for
Bug 1063322
multiple occurrences of abrt-java-connector on command line causes double-free error at then end of process
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch fixing this bug
Make-sure-that-agent_onload-and-agent_onunload-are-p.patch (text/plain), 1.36 KB, created by
Jakub Filak
on 2014-02-10 14:34:24 UTC
(
hide
)
Description:
Patch fixing this bug
Filename:
MIME Type:
Creator:
Jakub Filak
Created:
2014-02-10 14:34:24 UTC
Size:
1.36 KB
patch
obsolete
>From 304b4adbb916ee07db6b3ee3bf9a3de815269a96 Mon Sep 17 00:00:00 2001 >From: Jakub Filak <jfilak@redhat.com> >Date: Mon, 10 Feb 2014 15:33:13 +0100 >Subject: [PATCH] Make sure that agent_onload and agent_onunload are processed > only once > >Related to rhbz#1063322 >--- > src/abrt-checker.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > >diff --git a/src/abrt-checker.c b/src/abrt-checker.c >index 713053c..e9caada 100644 >--- a/src/abrt-checker.c >+++ b/src/abrt-checker.c >@@ -2923,10 +2923,17 @@ JNIEXPORT jint JNICALL Agent_OnLoad( > char *options, > void *reserved __UNUSED_VAR) > { >+ static int already_called = 0; > jvmtiEnv *jvmti_env = NULL; > jvmtiError error_code = JVMTI_ERROR_NONE; > jint result; > >+ /* we need to make sure the agent is initialized once */ >+ if (already_called) { >+ return JNI_OK; >+ } >+ >+ already_called = 1; > pthread_mutex_init(&abrt_print_mutex, /*attr*/NULL); > > INFO_PRINT("Agent_OnLoad\n"); >@@ -3001,6 +3008,15 @@ JNIEXPORT jint JNICALL Agent_OnLoad( > */ > JNIEXPORT void JNICALL Agent_OnUnload(JavaVM *vm __UNUSED_VAR) > { >+ static int already_called = 0; >+ >+ /* we need to make sure the agent is initialized once */ >+ if (already_called) { >+ return; >+ } >+ >+ already_called = 1; >+ > pthread_mutex_destroy(&abrt_print_mutex); > > INFO_PRINT("Agent_OnUnLoad\n"); >-- >1.8.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1063322
: 861413