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 144462 Details for
Bug 201739
Macaulay2: ppc build hangs, never finishes
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.rh90 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]
fix endless loop
Macaulay2-0.9.95-personality.patch (text/plain), 1.07 KB, created by
David Woodhouse
on 2006-12-28 13:18:49 UTC
(
hide
)
Description:
fix endless loop
Filename:
MIME Type:
Creator:
David Woodhouse
Created:
2006-12-28 13:18:49 UTC
Size:
1.07 KB
patch
obsolete
>--- Macaulay2-0.9.95/Macaulay2/d/M2lib.c~ 2006-10-15 23:22:55.000000000 +0100 >+++ Macaulay2-0.9.95/Macaulay2/d/M2lib.c 2006-12-28 12:59:30.000000000 +0000 >@@ -368,7 +368,19 @@ char **argv; > personality(oldpersonality | ADDR_NO_RANDOMIZE); > newpersonality = personality(-1); > personality(oldpersonality | ADDR_NO_RANDOMIZE); /* just in case the previous line sets the personality to -1, which can happen */ >- if ((newpersonality & ADDR_NO_RANDOMIZE) != 0) return execvp(argv[0],argv); >+ if ((newpersonality & ADDR_NO_RANDOMIZE) != 0) { >+ /* Sometimes the personality isn't inherited. >+ Prevent endless loops by adding --no-personality to >+ the command line */ >+ char **new_argv = malloc((argc+2) * sizeof(char *)); >+ if (!new_argv) fatal("out of memory"); >+ >+ new_argv[0] = argv[0]; >+ new_argv[1] = "--no-personality"; >+ memcpy(&new_argv[2], &argv[1], sizeof(char *) * (argc)); >+ >+ return execvp(new_argv[0],new_argv); >+ } > } > else personality(oldpersonality); > }
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 201739
: 144462