public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libmudflap/37927] Mudflap : invalid reads when accessing static objects in shared libraries
       [not found] <bug-37927-4@http.gcc.gnu.org/bugzilla/>
@ 2013-03-02 20:51 ` g_sauthoff at web dot de
  2013-11-10  5:49 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 5+ messages in thread
From: g_sauthoff at web dot de @ 2013-03-02 20:51 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37927

--- Comment #4 from Georg Sauthoff <g_sauthoff at web dot de> 2013-03-02 20:51:07 UTC ---
Can reproduce this with gcc 4.7.2:

$ cat setl.c

#include <locale.h>
#include <stdio.h>
#include <string.h>

int main()
{
  char *s = setlocale(LC_ALL, 0);
  char buffer[512] = {0};
  strcpy(buffer, s);
  printf("LC_ALL: %s\n", buffer);
  return 0;
}

$ ./setl                     
*******
mudflap violation 1 (check/read): time=1362257386.022152 ptr=0x3e76776aaf
size=2
pc=0x7f033ef2ade1 location=`(strcpy src)'
      /lib64/libmudflap.so.0(__mf_check+0x41) [0x7f033ef2ade1]
      /lib64/libmudflap.so.0(__mfwrap_strcpy+0x16e) [0x7f033ef2cd2e]
      ./setl(main+0x6d) [0x4009a9]
number of nearby objects: 0
LC_ALL: C

Not really a bug - but a possibility how to silent those false-positives would
be great.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libmudflap/37927] Mudflap : invalid reads when accessing static objects in shared libraries
       [not found] <bug-37927-4@http.gcc.gnu.org/bugzilla/>
  2013-03-02 20:51 ` [Bug libmudflap/37927] Mudflap : invalid reads when accessing static objects in shared libraries g_sauthoff at web dot de
@ 2013-11-10  5:49 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-11-10  5:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37927

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |WONTFIX
   Target Milestone|---                         |4.9.0

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
fmudflap support has been removed.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libmudflap/37927] Mudflap : invalid reads when accessing static objects in shared libraries
  2008-10-27 10:47 [Bug libmudflap/37927] New: " polettog at gmail dot com
  2008-10-27 10:49 ` [Bug libmudflap/37927] " polettog at gmail dot com
  2008-10-27 10:49 ` polettog at gmail dot com
@ 2008-10-27 10:49 ` polettog at gmail dot com
  2 siblings, 0 replies; 5+ messages in thread
From: polettog at gmail dot com @ 2008-10-27 10:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from polettog at gmail dot com  2008-10-27 10:48 -------
Created an attachment (id=16565)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16565&action=view)
main program using shared library


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37927


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libmudflap/37927] Mudflap : invalid reads when accessing static objects in shared libraries
  2008-10-27 10:47 [Bug libmudflap/37927] New: " polettog at gmail dot com
  2008-10-27 10:49 ` [Bug libmudflap/37927] " polettog at gmail dot com
@ 2008-10-27 10:49 ` polettog at gmail dot com
  2008-10-27 10:49 ` polettog at gmail dot com
  2 siblings, 0 replies; 5+ messages in thread
From: polettog at gmail dot com @ 2008-10-27 10:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from polettog at gmail dot com  2008-10-27 10:47 -------
Created an attachment (id=16563)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16563&action=view)
module.c of shared library


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37927


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libmudflap/37927] Mudflap : invalid reads when accessing static objects in shared libraries
  2008-10-27 10:47 [Bug libmudflap/37927] New: " polettog at gmail dot com
@ 2008-10-27 10:49 ` polettog at gmail dot com
  2008-10-27 10:49 ` polettog at gmail dot com
  2008-10-27 10:49 ` polettog at gmail dot com
  2 siblings, 0 replies; 5+ messages in thread
From: polettog at gmail dot com @ 2008-10-27 10:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from polettog at gmail dot com  2008-10-27 10:48 -------
Created an attachment (id=16564)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16564&action=view)
module.h of shared library


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37927


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-11-10  5:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-37927-4@http.gcc.gnu.org/bugzilla/>
2013-03-02 20:51 ` [Bug libmudflap/37927] Mudflap : invalid reads when accessing static objects in shared libraries g_sauthoff at web dot de
2013-11-10  5:49 ` pinskia at gcc dot gnu.org
2008-10-27 10:47 [Bug libmudflap/37927] New: " polettog at gmail dot com
2008-10-27 10:49 ` [Bug libmudflap/37927] " polettog at gmail dot com
2008-10-27 10:49 ` polettog at gmail dot com
2008-10-27 10:49 ` polettog at gmail 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).