[M3devel] problem using -DPTHREAD

Daniel Alejandro Benavides D. dabenavidesd at yahoo.es
Thu Feb 15 03:28:17 CET 2007


Hi:
Yes I have rebuilded with the cm3-5.4 bootstrap and it
is so much better.
Thanks so much.
Sometimes (rarely) views on mentor dont get repainted.
But I havent found a pattern of that effect. I will
let you know as soon as I can.
I tested this on ubuntu 6.06. Soon on ubuntu 6.10.
Please Elego folks, fix the m3commit list.
Thanks,

Daniel Benavides
Bogota, Colombia

--- Tony Hosking <hosking at cs.purdue.edu> escribió:

> With the latest check-ins to the cm3 CVS repository
> I am now able to  
> bootstrap and run programs (including those with X11
> graphics) on  
> Fedora Core 6 (Zod).  Please try rebuilding from
> sources.
> 
> On Feb 5, 2007, at 11:42 PM, Daniel Alejandro
> Benavides D. wrote:
> 
> > Hi Tony:
> > I could catch this too, but definitely is more
> easy with all the  
> > views all of the algorithm,
> > Bar Code view, Tree View, Modula-3 Code View, and
> Transcript View
> > of the same algorithm and same session, with 2
> views, is harder to  
> > end abnormally the process
> > under m3gdb.
> > Here it is the out of this mentor m3gdb session:
> >
> > Program received signal SIGXCPU, CPU time limit
> exceeded.
> >
> > Program received signal SIGXCPU, CPU time limit
> exceeded.
> >
> > Program received signal SIGXCPU, CPU time limit
> exceeded.
> > [Switching to Thread -1515197520 (LWP 1748)]
> >
> > Breakpoint 1, InnerUnlockMutex (m=16_b232fb40,
> self=16_acab94c4)
> > at ThreadPThread.m3:168
> > warning: Source file is more recent than
> executable.
> > ---Type <return> to continue, or q <return> to
> quit---
> > 168 Die(ThisLine(), "attempt to release an
> unlocked mutex");
> >
> > (m3gdb) where
> > #0 InnerUnlockMutex (m=16_b232fb40,
> self=16_acab94c4) at  
> > ThreadPThread.m3:168
> > #1 0xb70cff69 in UnlockMutex (m=16_b232fb40) at
> ThreadPThread.m3:189
> > #2 0xb7ae3ff9 in SyncDefault (v=16_b232fb40,
> ch=16_b344f164,  
> > wait=TRUE)
> > at VBTClass.m3:799
> > #3 0xb7addd9f in Sync (v=16_b344f164, wait=TRUE)
> at VBT.m3:1167
> > #4 0xb7b20371 in Sync (v=16_b232f9d0,
> ch=16_b232faac, wait=TRUE)
> > at JoinedVBT.m3:101
> > #5 0xb7ae3fd6 in SyncDefault (v=16_b232faac,
> ch=16_b232fa30,  
> > wait=TRUE)
> > at VBTClass.m3:797
> > #6 0xb7ae3fd6 in SyncDefault (v=16_b232fa30,
> ch=16_b232f1ac,  
> > wait=TRUE)
> > at VBTClass.m3:797
> > #7 0xb7ae3fd6 in SyncDefault (v=16_b232f1ac,
> ch=16_b1a7408c,  
> > wait=TRUE)
> > at VBTClass.m3:797
> > #8 0xb7ae3fd6 in SyncDefault (v=16_b1a7408c,
> ch=16_b1a742f8,  
> > wait=TRUE)
> > at VBTClass.m3:797
> > #9 0xb7ae3fd6 in SyncDefault (v=16_b1a742f8,
> ch=16_b1a7417c,  
> > wait=TRUE)
> > at VBTClass.m3:797
> > #10 0xb7addd9f in Sync (v=16_b1a7417c, wait=TRUE)
> at VBT.m3:1167
> > #11 0xb7d0e5f3 in MGRedisplay (v=16_b1a7417c, br=
> > RECORD r = RECORD west = 0; east = 0; north = 0;
> south = 0; END; p  
> > = NIL; END) at MGV.m3:146
> > #12 0xb7cfdb90 in DoAnimation (t=16_b1a836e0,
> time=1,  
> > timePrev=0.377209276,
> > v=16_b1a7417c, mg=NIL) at Animate.m3:57
> > ---Type <return> to continue, or q <return> to
> quit---
> > #13 0xb7cfdd2b in Do (t=16_b1a836e0, mg=NIL,
> v=16_b1a7417c,  
> > duration=1)
> > at Animate.m3:81
> > #14 0xb7d0f6d1 in Animation (v=16_b1a7417c,
> duration=1) at MGV.m3:313
> > #15 0xb7d3ffdc in AnimateGraph (graph=16_b1a7408c,
> t0=0, t1=1)
> > at GraphVBT.m3:656
> > #16 0x0815a814 in Pause (view=16_b232f1ac) at
> PQBarView.m3:262
> > #17 0x0815ac75 in Compare (view=16_b232f1ac, k=12,
> n=13) at  
> > PQBarView.m3:275
> > #18 0x0814c38f in OEDispatcher (v=16_b232f1ac,
> evt=16_b17ed424)
> > at PQueueIE.m3:120
> > #19 0xb7dad9db in ViewThread (self=16_acab94b8) at
> Zeus.m3:331
> > #20 0xb70d2382 in RunThread (me=16_08364ea8) at
> ThreadPThread.m3:548
> > #21 0xb70d1f61 in ThreadBase (param=16_08364ea8)
> at  
> > ThreadPThread.m3:518
> > #22 0xb6e70341 in start_thread () from
> /lib/tls/i686/cmov/ 
> > libpthread.so.0
> > #23 0xb6e044ee in clone () from
> /lib/tls/i686/cmov/libc.so.6
> > (m3gdb) step
> >
> > Program received signal SIG64, Real-time event 64.
> >
> >
> > ***
> > *** runtime error:
> > *** Thread client error: attempt to release an
> unlocked mutex
> > Program received signal SIG64, Real-time event 64.
> >
> > Program received signal SIG64, Real-time event 64.
> >
> > Program received signal SIG64, Real-time event 64.
> >
> > Program received signal SIG64, Real-time event 64.
> >
> > Thanks,
> > Daniel Benavides
> >
> > >Can you run under gdb and get a stack trace using
> the "where" command
> > >when the call to Die occurs?
> >
> > On Feb 1, 2007, at 3:34 PM, Daniel Alejandro
> Benavides D. wrote:
> >
> > > Hi:
> > >
> > > Some things besides what found with mentor:
> > >
> > > danielb at sl11:~$ mentor @M3stackdump
> > >
> > >
> > > ***
> > > *** runtime error:
> > > *** Thread client error: attempt to release an
> unlocked mutex
> > > *** file "ThreadPThread.m3", line 168
> > > ***
> > >
> > > ------------------ EXCEPTION HANDLER STACK
> ---------------------
> > > 0xa22bab80 LOCK mutex = 0xb241b164
> > > 0xa22babd0 LOCK mutex = 0xb2416c78
> > > 0xa22bac30 LOCK mutex = 0xb2416d54
> > > 0xa22bac80 LOCK mutex = 0xb2416cd8
> > > 0xa22bacd0 LOCK mutex = 0xb2410378
> > > 0xa22bad20 LOCK mutex = 0xb23fa104
> > > 0xa22bad70 LOCK mutex = 0xb23fa370
> > > 0xa22badc0 LOCK mutex = 0xb23fa1f4
> > > 0xa22bae20 LOCK mutex = 0xb23fa288
> > > 0xa22bae58 RAISES {}
> > > 0xa22bb170 TRY-EXCEPT {0x718ac4e9}
> > > 0xa22bb250 TRY-EXCEPT {0x718ac4e9}
> > >
>
----------------------------------------------------------------
> > > Cancelado
> > > danielb at sl11:~$
> > >
> > > I didn't debugged mentor, but I tried another
> program, cvsup,
> > > and with GUI problems after a seconds the
> process finishes
> > > but no advise of runtime error, however with
> no-gui It simply works
> > > well.
> > >
> > > Also Im trying the examples of the parallel
> chapter of the book
> > > "Programming in Modula-3" by Laszlo Boszormenyi
> & Carsten Weich,
> > > with the NThreads example (which you can
> download on the url
> > >
>
http://web.archive.org/web/19970814162826/www.ifi.uni-klu.ac.at/
> > > Modula-3/m3book/examples.html )
> > > You will need the m3local library shipped and a
> m3makefile like
> > > this below:
> > > import ("m3local")
> > > implementation("NThreads")
> > > program("NThreads")
> 
=== message truncated ===



		
______________________________________________ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com



More information about the M3devel mailing list