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 580886 Details for
Bug 817178
NSPR pthread_key_t leak and memory corruption
[?]
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.
memory leak reproducer from Joe Orton
tsdleak.c (text/x-csrc), 1.06 KB, created by
Elio Maldonado Batiz
on 2012-04-27 22:33:41 UTC
(
hide
)
Description:
memory leak reproducer from Joe Orton
Filename:
MIME Type:
Creator:
Elio Maldonado Batiz
Created:
2012-04-27 22:33:41 UTC
Size:
1.06 KB
patch
obsolete
>/* Copyright (C) 2010 Red Hat, Inc. All rights reserved. > * > * tsdleak.c -- repro case for #635519 > * > * Build with: > * > * $ make tsdleak CFLAGS="-Wall -O2 -I/usr/include/nspr4" LDFLAGS="-ldl -lpthread" > * > * Run with: > * > * $ MALLOC_CHECK_=2 ./tsdleak > */ > >#include <stdio.h> >#include <stdlib.h> >#include <pthread.h> >#include <dlfcn.h> > >#include <prlock.h> > >#define NSPR_SO "libnspr4.so" > >typedef typeof(PR_NewLock) fn_PR_NewLock; > >int main(int argc, char **argv) >{ > int n = 0; > > for (n = 0; n < 10000; n++) { > void *soh; > fn_PR_NewLock *prlock; > > printf("opening %s, try #%d\n", NSPR_SO, n); > > soh = dlopen(NSPR_SO, RTLD_NOW | RTLD_LOCAL); > if (soh == NULL) { > printf("dlopen failed: %s\n", dlerror()); > break; > } > > prlock = dlsym(soh, "PR_NewLock"); > if (prlock == NULL) { > printf("dlsym failed: %s\n", dlerror()); > break; > } > > puts("calling PR_NewLock"); > prlock(); > puts("closing"); > > dlclose(soh); > } > > 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 817178
: 580886 |
580887
|
580888