[CS241] [CSCI2410] Possible Confirmation
Joseph Browne
joseph.browne at yahoo.fr
Mon Dec 17 02:23:35 EST 2007
Ok... We'll see what happens... Thanks!
----- Message d'origine ----
De : Lenora Huang <lenorah at cs.brown.edu>
À : Joseph Browne <joseph_browne at brown.edu>
Envoyé le : Lundi, 17 Décembre 2007, 2h06mn 35s
Objet : RE: [CS241] [CSCI2410] Possible Confirmation
ECTree::init(TREEFORM, STRIPFORM), stands for reading tree and writing
strip.
Yes. I think it's working. These 2 lines must be added to make ECTree start
to work and then to hit the assertion Eugene fixed a few days ago. (If you
haven't updated the file, stripRule.c)
If you have updated the file, then you're very likely to get stuck where I'm
stuck right now. No error messages but the program stops. Please try and
tell me if you meet the same situation since I still have no ideas how to
resolve or even debug this.
Lenora
-----Original Message-----
From: Joseph Browne [mailto:joseph.browne at yahoo.fr]
Sent: Monday, December 17, 2007 1:48 AM
To: Lenora Huang
Subject: Re : [CS241] [CSCI2410] Possible Confirmation
Lenora:
Hey, two questions: 1) have you already tried this and succeeded? 2) what
arguments did you use?
-Joseph
----- Message d'origine ----
De : Lenora Huang <lenorah at cs.brown.edu>
À : Joseph Browne <joseph_browne at brown.edu>; CSCI2410
<cs241 at list.cs.brown.edu>
Envoyé le : Lundi, 17 Décembre 2007, 1h42mn 44s
Objet : RE: [CS241] [CSCI2410] Possible Confirmation
Hi, Joseph.
Yes, ECTree:init() and stripInit() have to be called before ECTree is used.
I added these two lines right before fcps.extract_features() is called in
main of extract_features.cc.
Lenora
-----Original Message-----
From: cs241-bounces at list.cs.brown.edu
[mailto:cs241-bounces at list.cs.brown.edu] On Behalf Of Joseph Browne
Sent: Monday, December 17, 2007 1:21 AM
To: CSCI2410
Subject: [CS241] [CSCI2410] Possible Confirmation
After another crash (someone logged me off) I was able to run the program
again with debug flags on. Looking at the following stack trace, it seems
that the problem is indeed in makeECTree and that, more specifically, it has
to do with Eugene's SymbolMap (I think it is a static object called gst) not
being initialized correctly. Look at the function call for the third frame
-- toIndex() is being called on a null pointer...
#0 0x0804ae44 in std::_Rb_tree<std::string, std::pair<std::string const,
unsigned int>, std::_Select1st<std::pair<std::string const, unsigned int> >,
std::less<std::string>, std::allocator<std::pair<std::string const, unsigned
int> > >::_M_begin (this=0x8)
at
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_tre
e.h:466
#1 0x0804b2e5 in std::_Rb_tree<std::string, std::pair<std::string const,
unsigned int>, std::_Select1st<std::pair<std::string const, unsigned int> >,
std::less<std::string>, std::allocator<std::pair<std::string const, unsigned
int> > >::find (this=0x8, __k=@0xbfc16584)
at
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_tre
e.h:1313
#2 0x0804b405 in std::map<std::string, unsigned int,
std::less<std::string>, std::allocator<std::pair<std::string const, unsigned
int> > >::find (this=0x8, __x=@0xbfc16584) at
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/bits/stl_map
.h:534
#3 0x0804d0f4 in SymbolTable::toIndex (this=0x0, s=@0xbfc16584) at
SymbolTable.h:36
#4 0x08095f18 in makeECTree (other=0xb7c92350) at ECTree.C:390
I am going to try to make an addition by modifiying extract-spfeatures.cc to
initialize Eugene's Tree by calling ECTree::init(false, false) in the main
function... we will see if this helps.
-Joseph
____________________________________________________________________________
_
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
http://mail.yahoo.fr
_______________________________________________
CS241 mailing list
CS241 at list.cs.brown.edu
http://list.cs.brown.edu/mailman/listinfo/cs241
_______________________________________________
CS241 mailing list
CS241 at list.cs.brown.edu
http://list.cs.brown.edu/mailman/listinfo/cs241
____________________________________________________________________________
_
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
http://mail.yahoo.fr
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr
More information about the CS241
mailing list