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 648116 Details for
Bug 877381
ricci crashes upon the request when local cluster.conf file is too large
[?]
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]
This should be a proper patch for ricci side instead of pthread_attr_setstacksize change as in [attachment 579845].
bz877381.patch (text/plain), 709 bytes, created by
Jan Pokorný [poki]
on 2012-11-19 20:43:11 UTC
(
hide
)
Description:
This should be a proper patch for ricci side instead of pthread_attr_setstacksize change as in [attachment 579845].
Filename:
MIME Type:
Creator:
Jan Pokorný [poki]
Created:
2012-11-19 20:43:11 UTC
Size:
709 bytes
patch
obsolete
>--- common/File.cpp.orig 2012-11-19 20:40:31.635710508 +0100 >+++ common/File.cpp 2012-11-19 21:37:23.082560218 +0100 >@@ -138,18 +138,28 @@ > { > MutexLocker l(*_mutex); > >+ char *buff = NULL; > long len = size(); >- char buff[len]; >+ > try { >+ buff = new char[len]; >+ > ((fstream *) _pimpl->fs)->seekg(0, ios::beg); >- check_failed(); > ((fstream *) _pimpl->fs)->read(buff, len); > check_failed(); >+ if (len != ((fstream *) _pimpl->fs)->gcount()) >+ throw String("Read size mismatch: ") + _path; > String ret(buff, len); >+ > ::shred(buff, len); >+ delete[] buff; >+ > return ret; > } catch ( ... ) { >- ::shred(buff, len); >+ if (buff) { >+ ::shred(buff, len); >+ delete[] buff; >+ } > throw; > } > }
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 877381
:
646331
| 648116