public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/15291] New: cannot enable executable stack as shared object requires
@ 2013-03-21 9:06 gauryogesh.nsit at gmail dot com
2013-03-22 3:27 ` [Bug libc/15291] " gauryogesh.nsit at gmail dot com
2014-06-13 18:41 ` fweimer at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: gauryogesh.nsit at gmail dot com @ 2013-03-21 9:06 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15291
Bug #: 15291
Summary: cannot enable executable stack as shared object
requires
Product: glibc
Version: 2.14
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: unassigned@sourceware.org
ReportedBy: gauryogesh.nsit@gmail.com
CC: drepper.fsp@gmail.com
Classification: Unclassified
I have taken the patch provided for the issue "do_lookup_x may access dangling
memory" fixed in bugzilla http://sourceware.org/bugzilla/show_bug.cgi?id=13579
With this patch crash issue of "do_lookup_x may access dangling memory" gets
solved but I am getting one more new issue on my MIPS target.
error : ./libjpeg.so: cannot enable executable stack as shared object requires:
Invalid argument.
--------------------------------------------------------------
cat test.c
#include <stdio.h>
#include <dlfcn.h>
#include <pthread.h>
void *handle;
static void *thread_abc()
{
handle = dlopen ("./libjpeg.so", RTLD_LAZY | RTLD_GLOBAL);
printf ("<thread_abc> Handle:%p\n", handle);
dlclose (handle);
return NULL;
}
static void *thread_xyz()
{
handle = dlopen ("./libjpeg.so", RTLD_LAZY | RTLD_GLOBAL);
printf ("<thread_abc> Handle:%p\n", handle);
dlclose (handle);
return NULL;
}
int main()
{
int i=0;
handle = dlopen ("./libjpeg.so", RTLD_LAZY | RTLD_GLOBAL);
printf ("<thread_abc> Handle:%p\n", handle);
if((error=dlerror()) != NULL)
printf("error : %s\n", error);
if(handle==NULL)
return 0;
printf ("<thread_abc> Handle:%p\n", handle);
dlclose (handle);
printf ("Returning from main\n");
return 0;
}
-------------------------------------------------
When I check my libjpeg.so with readelf it didn't have any STACK frame
$ mipsel-34kv3r1-linux-gnu-readelf -l libjpeg.so | grep "STACK"
$
Furthermore, I checked that if I removed the patch for BUG 13579, then this
issue is not occurring.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-13 18:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-21 9:06 [Bug libc/15291] New: cannot enable executable stack as shared object requires gauryogesh.nsit at gmail dot com
2013-03-22 3:27 ` [Bug libc/15291] " gauryogesh.nsit at gmail dot com
2014-06-13 18:41 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).