From: Daniel P. <dp...@gm...> - 2012-08-26 00:00:12
|
I think it must be something outside that code snippet that's wrong. I would recommend to either try running it in gdb or with valgrind, or paste more code. Dan On Sat, Aug 25, 2012 at 7:54 PM, Xavier Anguera <xan...@gm...> wrote: > Hi, > I have been trying to debug this issue for a few hours now, but I can > not find what I am doing wrong. > In my program I am calling the following: > DiagGmm tmpgmm; > tmpgmm.Resize(1, dim); > This is actually exactly like in gmm_init_model_flat.cc, except that I > later pretend to just initialize the model, nothing else. > I am constantly getting a segmentation fault when the weights_ vector > is resized as the program finds it not initialized to NULL and tried > to free() it before resizing it. I do not understand why weights_ > should not be initialized to NULL, as it seems done in the > constructor. > > Any help will be appreciated. > > Xavier Anguera > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Kaldi-developers mailing list > Kal...@li... > https://lists.sourceforge.net/lists/listinfo/kaldi-developers > |