[M3devel] strange errors...

Daniel Alejandro Benavides D. dabenavidesd at yahoo.es
Thu Jul 5 20:46:21 CEST 2007


Hi Mika:
What I get here executing is sometimes an Illegal
intruction or Floating point exception (I guess OS
message when executing the program) or the CM3 runtime
error message.

Well I debugged a time and I got it breaks inside
RTType.m3, but m3gdb process ends, besides the tok
process.


(m3gdb) where
#0  FindType (id=995871772) at RTType.m3:137
#1  0x0809afb6 in ScanTypecase (ref=16_b7eeb0cc,
x=16_0815d844)
    at RTType.m3:123
#2  0x080b2bdf in Sub (t=16_b7eeb0cc, start=0,
length=10) at TextSub.m3:35
#3  0x0804a6ba in Base (t=16_b7eeb0cc,
suffix=16_081397a8) at TokParams.m3:22
#4  0x0804a700 in SetBaseFrom (t=16_b7eeb0cc,
suffix=16_081397a8)
    at TokParams.m3:40
#5  0x0804ab74 in Get (progName=16_08139798,
inSuffix=16_081397a8,
    outSuffix=16_081397b8, specifyTok=FALSE, _result=
    RECORD source = NIL; out = NIL; tokSource = NIL;
tokOut = NIL; outBase = NIL; tokOutBase = NIL;  END)
at TokParams.m3:63
#6  0x08049011 in Main (mode=1) at Main.m3:92
#7  0x080949d9 in RunMainBody (m=16_081504e0) at
RTLinker.m3:399
#8  0x0809347e in AddUnitI (m=16_081504e0) at
RTLinker.m3:113
#9  0x08093507 in AddUnit (b={"Main_M3", Declared at:
Main.m3:90})
    at RTLinker.m3:122
#10 0x08048217 in main (argc=4, argv=0xbf921b64,
envp=0xbf921b78)
    at _m3main.mc:4
(m3gdb) step
FindType (id=4) at RTType.m3:138
138     in RTType.m3
(m3gdb) step
Segmentation fault
danielb at danielb-desktop:~/code/caltech-parser/v/cit_parse/LINUXLIBC6$

***
*** runtime error:
***    Segmentation violation - possible attempt to
dereference NIL
***    pc = 0xb7eef1e7
***


danielb at danielb-desktop:~/code/caltech-parser/v/cit_parse/LINUXLIBC6$
 

Any more helpful?
 
Bye


--- Mika Nystrom <mika at async.caltech.edu> wrote:

> Hi Daniel,
> 
> Thanks for helping look into this.  Could you send
> me a gdb stack
> trace or something along those lines of the
> segmentation violation?
> It doesn't have to be m3gdb, normal gdb would do
> fine.
> 
> The PRS.t file isn't missing.  What you're seeing is
> ktok being run
> with a CWD of
> /home/danielb/Desktop/v/cit_parse/LINUXLIBC6 , so
> PRS.t is indeed "../src/PRS.t".
> 
> The reason the file is empty in the last example is
> that that's
> what had been generated by the time the ktok program
> crashed.  That's
> exactly what I get on my Mac, except the program
> crashes on an
> illegal instruction, not a segfault.  Of course it
> works fine on
> PM3, both Windows and Unix, and older versions of
> CM3...  I'm sure
> there's some kind of bug in ktok, too.
> 
>      Mika
> 
> 
> 
> "Daniel Alejandro Benavides D." writes:
> >Hi:
> >I take the sources from the your web page and type
> >make on the top of the directory v and end in this
> >message:
> >
> >===> cit_parse
> >--- building in LINUXLIBC6 ---
> >
> >ignoring override("cit_parse",
> >"/home/danielb/Desktop/v")
> >
>
>/home/danielb/Desktop/v/parserlib/ktok/LINUXLIBC6/tok
> >../src/PRS.t -o PRSTok.i3
>
>/home/danielb/Desktop/v/parserlib/ktok/LINUXLIBC6/tok
> >../src/PRS.t -o PRSTok.i3
> >
> >
> >***
> >*** runtime error:
> >***    Segmentation violation - possible attempt to
> >dereference NIL
> >***    pc = 0x4000b19f
> >***
> >
>
>"/home/danielb/Desktop/v/parserlib/parserlib/src/parser.tmpl",
> >line 20: quake runtime error: exit 1536:
>
>/home/danielb/Desktop/v/parserlib/ktok/LINUXLIBC6/tok
> >../src/PRS.t -o PRSTok.i3
> >
> >--procedure--  -line-  -file---
> >exec               --  <builtin>
> >_exec              20 
>
>/home/danielb/Desktop/v/parserlib/parserlib/src/parser.tmpl
> >_xCons             37 
>
>/home/danielb/Desktop/v/parserlib/parserlib/src/parser.tmpl
> >_tCons             81 
>
>/home/danielb/Desktop/v/parserlib/parserlib/src/parser.tmpl
> >_tConsUn           82 
>
>/home/danielb/Desktop/v/parserlib/parserlib/src/parser.tmpl
> >Token              85 
>
>/home/danielb/Desktop/v/parserlib/parserlib/src/parser.tmpl
> >include_dir         3 
> >/home/danielb/Desktop/v/cit_parse/src/m3makefile
> >                    5 
>
>/home/danielb/Desktop/v/cit_parse/LINUXLIBC6/m3make.args
> >
> >Fatal Error: package build failed
> >
> >Well that was because of the lack of the file PRS.t
> >
> >Searching I noticed that the file is in
> >v/cit_parse/src/PRS.t and made a copy on
> >v/parserlib/ktok/src directory  
> >Then try make again and but this time, get this:
> >
> >cp
>
>/home/danielb/code/caltech-parser/v2/v/cit_parse/LINUXLIBC6/../src/CHP.t
> >.
> >cp
>
>/home/danielb/code/caltech-parser/v2/v/cit_parse/LINUXLIBC6/../src/CHP.t
> >.
> >cp
>
>/home/danielb/code/caltech-parser/v2/v/cit_parse/LINUXLIBC6/../src/CHP.l
> >.
> >cp
>
>/home/danielb/code/caltech-parser/v2/v/cit_parse/LINUXLIBC6/../src/CHP.l
> >.
> >cp
>
>/home/danielb/code/caltech-parser/v2/v/cit_parse/LINUXLIBC6/../src/CHP.y
> >.
> >cp
>
>/home/danielb/code/caltech-parser/v2/v/cit_parse/LINUXLIBC6/../src/CHP.y
> >.
>
>/home/danielb/code/caltech-parser/v2/v/parserlib/kext/LINUXLIBC6/ext
> >../src/CHPLexStd.e
>
>/home/danielb/code/caltech-parser/v2/v/parserlib/kext/LINUXLIBC6/ext
> >../src/CHPLexStd.e
> >new source -> compiling PRSTok.m3
> >"../LINUXLIBC6/PRSTok.m3", line 1: syntax error:
> >missing INTERFACE or MODULE keyword
> >"../LINUXLIBC6/PRSTok.m3", line 1: unable to find
> >interface (<missing id>)
> >"../LINUXLIBC6/PRSTok.m3", line 1: warning: file
> name
> >(PRSTok.m3) doesn't match module name (<missing
> id>)
> >2 errors and 1 warning encountered
> >new source -> compiling PRSTok.i3
> >new source -> compiling PRSLex.i3
> >new source -> compiling PRSLex.m3
> >new source -> compiling PRSParse.i3
> >new source -> compiling PRSParse.m3
> >new source -> compiling PRSLexStd.i3
> >new source -> compiling PRSLexStd.m3
> >new source -> compiling PRSParseStd.i3
> >new source -> compiling PRSParseStd.m3
> >new source -> compiling CHPTok.i3
> >new source -> compiling CHPTok.m3
> >"../LINUXLIBC6/CHPTok.m3", line 36: warning:
> >potentially unhandled exception:
> >RTAllocator.OutOfMemory
> >1 warning encountered
> >new source -> compiling CHPLex.i3
> >new source -> compiling CHPLex.m3
> >new source -> compiling CHPParse.i3
> >new source -> compiling CHPParse.m3
> >new source -> compiling CHPLexStd.i3
> >new source -> compiling CHPLexStd.m3
> >new exporters -> recompiling PRSTok.i3
> >compilation failed => not building library
> >"libcit_parse.a"
> >Fatal Error: package build failed
> >
> >danielb at danielb-desktop:~/code/caltech-parser/v2/v$
> 
> >
> >
> >It seems PRSTok.m3 does exist on
> >v/cit_parse/LINUXLIBC6 but is an empty file.
> >
> >Maybe Im not doing the right steps?
> >
> >Thanks
> >
> >
> >
> >
> >--- Mika Nystrom <mika at async.caltech.edu> wrote:
> >
> >> Hi again!
> >> 
> >> I was able to boot the CVS head of CM3 on my Mac
> >> just fine now,
> >> using the cm3.cfg you sent me.  I am still
> running
> >> the old OS
> >> (Panther, is it?) so I tried doing it the hard
> way
> >> instead of using
> >> your binaries, and I got something that works
> pretty
> >> well.  Mentor
> >> and Juno work, at least, and that's usually a
> good
> >> indicator that
> >> one is on the right track...
> >> 
> >> But (of course there's a "but"), I am still
> falling
> >> down on my very
> >> first reported bug, namely this local ktok
> program. 
> >> I still, after
> >> all that you've done, find that it dies on an
> >> illegal instruction
> >> on the Macintosh (I am running 10.3 on a
> Powerbook).
> >> 
> >> The problem goes away if I use either @M3nogc or
> >> @M3noincremental.
> >> The gdb backtrace is not very helpful: it says
> the
> >> program is
> >> crashing somewhere in a text processing module,
> >> creating an iterator
> >> on a sorted table.
> >> 
> >> Sorry to do this but I am feeling a bit clueless,
> so
> 
=== 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