The segfault is always on the C++ side, and typically happens if you access Atoms or Bonds which have been deleted, or if you access invalid parts of a molecule which have been edited in some way.
To debug, the only way is to implement the code in C++, and use a C++ debugger. :-/ - Noel On 17 January 2012 10:51, Pascal Muller <pascal.jm.mul...@gmail.com> wrote: > Dear all, > > I'm reading a pybel program (basically comparing molecules with the same > murcko scaffold - e.g. is there only one different chemical function). > > My program seems to run well, but a "segmentation fault" occurs randomly > (after processing few or many molecules, the seg fault never arises with the > same molecule). > There is no error message. > Do you have any tips for debugging such error (e.g. outputting the last line > executed) or "good programming" advices for python? (e.g. variables > resetting, freeing memory... ?) > > I'll have a look to the python debugger if it can help. > > Thanks, > Regards, > Pascal > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > OpenBabel-discuss mailing list > OpenBabel-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss > ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss