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 926075 Details for
Bug 1113143
failing test exec-9.7
[?]
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.
Stripped down reproducer
test.c (text/plain), 1.25 KB, created by
Jaroslav Škarvada
on 2014-08-12 13:47:42 UTC
(
hide
)
Description:
Stripped down reproducer
Filename:
MIME Type:
Creator:
Jaroslav Škarvada
Created:
2014-08-12 13:47:42 UTC
Size:
1.25 KB
patch
obsolete
>#define _GNU_SOURCE >#include <stdlib.h> >#include <stdio.h> >#include <sys/types.h> >#include <sys/stat.h> >#include <sys/wait.h> >#include <fcntl.h> >#include <unistd.h> >#include <sched.h> >#include <fcntl.h> > >#define STACK_SIZE 16384 > >pid_t ctid1, ctid2, pid1, pid2; >int fd; >char *stack1, *stack2, *stacktop1, *stacktop2; >char loop = 0; >char buf[256] = {0}; > >int a() >{ > dup2(fd, 2); > write(2, "error msg1\n", 11); >} > >int b() >{ > dup2(fd, 2); > write(2, "error msg2\n", 11); >} > >int main(int argc, char argv[]) >{ > stack1 = malloc(STACK_SIZE); > stack2 = malloc(STACK_SIZE); > stacktop1 = stack1 + STACK_SIZE; > stacktop2 = stack2 + STACK_SIZE; > do > { > unlink("/tmp/tclaVlnpC"); > fd = open("/tmp/tclaVlnpC", O_RDWR | O_CREAT | O_EXCL, 0600); > if (fd < 0) > { > printf("open failed\n"); > return 1; > } > fcntl(fd, F_SETFD, FD_CLOEXEC); > pid1 = clone(a, stacktop1, CLONE_CHILD_CLEARTID | CLONE_CHILD_SETTID | SIGCHLD, NULL, NULL, NULL, &ctid1); > pid2 = clone(b, stacktop2, CLONE_CHILD_CLEARTID | CLONE_CHILD_SETTID | SIGCHLD, NULL, NULL, NULL, &ctid1); > waitpid(pid1, NULL, 0); > waitpid(pid2, NULL, 0); > lseek(fd, 0, SEEK_SET); > loop = read(fd, buf, 22) == 22; > close(fd); > } > while (loop); > free(stack1); > free(stack2); > return 0; >}
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 Raw
Actions:
View
Attachments on
bug 1113143
:
926075
|
928482
|
928486