public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libmudflap/20339] New: mudflap abort
@ 2005-03-06  2:12 eyal at eyal dot emu dot id dot au
  2005-03-06  2:16 ` [Bug libmudflap/20339] " eyal at eyal dot emu dot id dot au
  2005-03-06  2:24 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 4+ messages in thread
From: eyal at eyal dot emu dot id dot au @ 2005-03-06  2:12 UTC (permalink / raw)
  To: gcc-bugs

gcc cvs head on Linux 2.6.11 on P4.

I am chasing a problem with mudflap. Running off uptodate cvs head.
To this end I created a simple test program (attached) which does
many memory malloc/free in a heavily multithreaded environment.

The sample program aborts regularly, while the problem I am after
is different - I get register violations where another object claims
to overlap the same new address. I am rather sure that this is not
the case with my program. I suspect that the two problems may be
related.

I observed the failure for a long while now, but did not have the
time to address it earlier.

It works OK without MF. The failure has different errors logged
each time before it aborts. Here is the output of one run:

eyal@e7:~/zz$ sh zz37.sh
/data2/usr/local/gcc-4.0.0-20050303-103350/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../../../libmudflapth.so:
warning: the use of `pthread_attr_setstackaddr' is deprecated, use
`pthread_attr_setstack'
/data2/usr/local/gcc-4.0.0-20050303-103350/bin/../lib/gcc/i686-pc-linux-gnu/4.1.0/../../../libmudflapth.so:
warning: the use of `pthread_attr_getstackaddr' is deprecated, use
`pthread_attr_getstack'
zz37.sh: line 144: 25027 Segmentation fault      $prog 2>$prog.out

eyal@e7:~/zz$ cat zz37.out
/home/eyal/zz/zz37.c(104) testing in main
/home/eyal/zz/zz37.c(109) testing in thread
/home/eyal/zz/zz37.c(79) created
free(): invalid pointer 0x80fc390!
free(): invalid pointer 0x80b2768!
free(): invalid pointer 0x810f6a8!
free(): invalid pointer 0x808ec70!
free(): invalid pointer 0x808a350!
free(): invalid pointer 0x8094430!
free(): invalid pointer 0x810bc28!
free(): invalid pointer 0x8110c98!
free(): invalid pointer 0x808d410!

And another run:

/home/eyal/zz/zz37.c(104) testing in main
/home/eyal/zz/zz37.c(109) testing in thread
/home/eyal/zz/zz37.c(79) created
mf: erroneous reentrancy detected in `__mf_register'

-- 
           Summary: mudflap abort
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libmudflap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: eyal at eyal dot emu dot id dot au
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: gcc version 4.1.0 20050302 (experimental)
  GCC host triplet: Linux 2.6.11 SMP  i686 GNU/Linux


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


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

* [Bug libmudflap/20339] mudflap abort
  2005-03-06  2:12 [Bug libmudflap/20339] New: mudflap abort eyal at eyal dot emu dot id dot au
@ 2005-03-06  2:16 ` eyal at eyal dot emu dot id dot au
  2005-03-06  2:24 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 4+ messages in thread
From: eyal at eyal dot emu dot id dot au @ 2005-03-06  2:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From eyal at eyal dot emu dot id dot au  2005-03-06 02:16 -------
Created an attachment (id=8340)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8340&action=view)
Sample program to demonstrate the problem

Adjust the compiler setup at the top ($cc is needed).
set 'prog=' to the directory where you have the sccript and where the output
will
go.

Run as 'sh zz37.sh'. The output is in zz37.out.


-- 


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


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

* [Bug libmudflap/20339] mudflap abort
  2005-03-06  2:12 [Bug libmudflap/20339] New: mudflap abort eyal at eyal dot emu dot id dot au
  2005-03-06  2:16 ` [Bug libmudflap/20339] " eyal at eyal dot emu dot id dot au
@ 2005-03-06  2:24 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-06  2:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-06 02:24 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-03-06 02:24:25
               date|                            |


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


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

* [Bug libmudflap/20339] mudflap abort
       [not found] <bug-20339-828@http.gcc.gnu.org/bugzilla/>
@ 2006-01-24 22:55 ` fche at redhat dot com
  0 siblings, 0 replies; 4+ messages in thread
From: fche at redhat dot com @ 2006-01-24 22:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from fche at redhat dot com  2006-01-24 22:54 -------
With today's svn snapshot on x86, nptl, test case works ok.
If you can reproduce a crash, it would be useful to first amend the test case
to keep a log of malloc/free operations.


-- 

fche at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fche at redhat dot com
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME


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


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

end of thread, other threads:[~2006-01-24 22:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-06  2:12 [Bug libmudflap/20339] New: mudflap abort eyal at eyal dot emu dot id dot au
2005-03-06  2:16 ` [Bug libmudflap/20339] " eyal at eyal dot emu dot id dot au
2005-03-06  2:24 ` pinskia at gcc dot gnu dot org
     [not found] <bug-20339-828@http.gcc.gnu.org/bugzilla/>
2006-01-24 22:55 ` fche 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).