This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa libmudflap long] multithreading fixes, build reorg, testsuite extensions


"Frank Ch. Eigler" wrote:
> > BTW, this error did show up once, very early in the tests, in
> > a non-critical program. [...] It logged a line identical to
> > the first above and aborted.
> 
> A program like that should be added to the test suite.

And I will once I manage to reproduce it, so far this program
did not repeat it.

Here is one that does fail soon, but differently, with an
unregister violation. Looks like some limit on number of
threads (always fails at attempt 1021) even though I do
join the threads as I go. It fails (hangs) with -mode-nop.
It works without -fmudflapth.

$ sh zz17.sh
/data2/usr/local/gcc-mudflap-20030704-095621/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.5-tree-ssa/../../../libmudflapth.so:
the use of `pthread_attr_setstackaddr' is deprecated, use
`pthread_attr_setstack'
/data2/usr/local/gcc-mudflap-20030704-095621/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.5-tree-ssa/../../../libmudflapth.so:
the use of `pthread_attr_getstackaddr' is deprecated, use
`pthread_attr_getstack'
/home/eyal/zz.c(23) will pthread_attr_init
/home/eyal/zz.c(26) pthread_attr_init=0

         1 created alive joined
         2 created alive joined
         3 created alive joined
         4 created alive joined
         5 created alive joined
         6 created alive joined
      1019 created alive joined
      1020 created alive joined
      1021 created alive*******
mudflap violation 1 (unregister): time=1057456845.599651 ptr=0x400358c0
size=1
pc=0x4001a140
      /usr/local/gcc-mudflap/lib/libmudflapth.so.0(__mf_unregister+0x60)
[0x4001a140]
      /usr/local/gcc-mudflap/lib/libmudflapth.so.0(__real_free+0xf4)
[0x4001cf74]
      /lib/libdl.so.2 [0x401923ad]
number of nearby objects: 0
*******
mudflap violation 2 (unregister): time=1057456845.599906 ptr=0x400368c0
size=1
pc=0x4001a140
      /usr/local/gcc-mudflap/lib/libmudflapth.so.0(__mf_unregister+0x60)
[0x4001a140]
      /usr/local/gcc-mudflap/lib/libmudflapth.so.0(__real_free+0xf4)
[0x4001cf74]
      /lib/libpthread.so.0 [0x400688c3]
number of nearby objects: 0

which decodes to:
*******
mudflap violation 1 (unregister): time=1057456488.218911 ptr=0x400358c0
size=1
pc=0x4001a140
      /usr/local/gcc-mudflap/lib/libmudflapth.so.0(__mf_unregister+0x60)
[0x4001a140] {../../../gcc/libmudflap/mf-runtime.c:1175}
      /usr/local/gcc-mudflap/lib/libmudflapth.so.0(__real_free+0xf4)
[0x4001cf74] {../../../gcc/libmudflap/mf-hooks1.c:229}
      /lib/libdl.so.2 [0x401923ad] {no debugging symbols found)...(gdb}
number of nearby objects: 0

which is
	__mf_unregister (buf, 0);
in the free wrapper.

--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>

Attachment: zz17.sh
Description: Bourne shell script


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]