Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 502086 Details for
Bug 708435
QMF Job Server returning empty/bad strings from live jobs
Home
New
Search
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.rh92 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]
Additional fix for GetStatus string deletion leading to crash
0002-Fix-for-GetStatus-crash-in-qmf-contrib-job-server.patch (text/plain), 1.87 KB, created by
Pete MacKinnon
on 2011-05-31 19:52:07 UTC
(
hide
)
Description:
Additional fix for GetStatus string deletion leading to crash
Filename:
MIME Type:
Creator:
Pete MacKinnon
Created:
2011-05-31 19:52:07 UTC
Size:
1.87 KB
patch
obsolete
>From bb83d8c4f70a2b452f139bd60e3c7fb5f28877b9 Mon Sep 17 00:00:00 2001 >From: Peter MacKinnon <pmackinn@redhat.com> >Date: Tue, 31 May 2011 15:44:55 -0400 >Subject: [PATCH 2/2] Fix for GetStatus crash in qmf contrib job server > >--- > src/condor_contrib/mgmt/qmf/daemons/Job.cpp | 8 ++++---- > src/condor_contrib/mgmt/qmf/daemons/Job.h | 2 +- > 2 files changed, 5 insertions(+), 5 deletions(-) > >diff --git a/src/condor_contrib/mgmt/qmf/daemons/Job.cpp b/src/condor_contrib/mgmt/qmf/daemons/Job.cpp >index 5af0978..6983e0e 100644 >--- a/src/condor_contrib/mgmt/qmf/daemons/Job.cpp >+++ b/src/condor_contrib/mgmt/qmf/daemons/Job.cpp >@@ -81,7 +81,7 @@ Attribute::Attribute ( AttributeType _type, const char *_value ) : > > Attribute::~Attribute() > { >- delete [] m_value; >+ // > } > > Attribute::AttributeType >@@ -93,7 +93,7 @@ Attribute::GetType() const > const char * > Attribute::GetValue() const > { >- return m_value; >+ return m_value.c_str(); > } > > ////////////// >@@ -181,12 +181,12 @@ LiveJobImpl::Get ( const char *_name, const Attribute *&_attribute ) const > } > case classad::Value::STRING_VALUE: > { >- MyString str; >+ std::string str; > if ( !m_full_ad->LookupString ( _name, str ) ) > { > return false; > } >- _attribute = new Attribute ( Attribute::STRING_TYPE, str.StrDup() ); >+ _attribute = new Attribute ( Attribute::STRING_TYPE, str.c_str() ); > return true; > } > default: >diff --git a/src/condor_contrib/mgmt/qmf/daemons/Job.h b/src/condor_contrib/mgmt/qmf/daemons/Job.h >index 55a861f..0537df2 100644 >--- a/src/condor_contrib/mgmt/qmf/daemons/Job.h >+++ b/src/condor_contrib/mgmt/qmf/daemons/Job.h >@@ -58,7 +58,7 @@ class Attribute > > private: > AttributeType m_type; >- const char * m_value; >+ std::string m_value; > }; > > >-- >1.7.4.4 >
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 708435
:
501425
| 502086