-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiler segfaulting when compiling gmml #145
Comments
[ 8%] Building CXX object CMakeFiles/gmml.dir/src/InternalPrograms/glycosylationSiteFinder.cpp.o |
In file included from /usr/include/c++/9/functional:54, |
In file included from /usr/include/c++/9/bits/stl_algobase.h:59, |
Again just recompiling will "fix" the compiler segfault, but this was an interesting one. First time I've seen it when compiling tests: This is the function it failed on. This is defined elsewhere with the same name so that could be it.
Line 118 is bolded. Tho the origin could be just the crazy include cascade that comes from including gmml.hpp |
It's happening in the tests sometimes, again just recompiling and it's fine. Again it's gmml.hpp showing up:
|
The "fix" is to just compile again. It never happens twice. Does seem to be related to compiling the Glycan/oligosaccharide class. Making note of it here. Not sure how frequent it is inside the dev env, happens relatively frequently (every other build sometimes, then nothing for a run of 20 or so builds) on my bare metal builds. Those numbers are extremely vague I wasn't tracking.
[ 8%] Building CXX object CMakeFiles/gmml.dir/src/Glycan/glycosidiclinkage.cc.o
[ 9%] Building CXX object CMakeFiles/gmml.dir/src/Glycan/monosaccharide.cc.o
[ 9%] Building CXX object CMakeFiles/gmml.dir/src/Glycan/oligosaccharide.cc.o
/home/oliver/Programs/GLYCAM_Dev_Env/V_2/Web_Programs/gems/gmml/src/GeometryTopology/grid.cc: In constructor ‘GeometryTopology::Grid::Grid(MolecularModeling::Assembly*, GeometryTopology::Coordinate*, GeometryTopology::Coordinate*, double, double)’:
/home/oliver/Programs/GLYCAM_Dev_Env/V_2/Web_Programs/gems/gmml/src/GeometryTopology/grid.cc:19:128: warning: unused parameter ‘ion_radius’ [-Wunused-parameter]
19 | Grid::Grid(MolecularModeling::Assembly assembly, GeometryTopology::Coordinate min, GeometryTopology::Coordinate max, double ion_radius, double ion_charge)
| ~~~~~~~^~~~~~~~~~
/home/oliver/Programs/GLYCAM_Dev_Env/V_2/Web_Programs/gems/gmml/src/Glycan/monosaccharide.cc: In copy constructor ‘Glycan::Monosaccharide::Monosaccharide(const Glycan::Monosaccharide&)’:
/home/oliver/Programs/GLYCAM_Dev_Env/V_2/Web_Programs/gems/gmml/src/Glycan/monosaccharide.cc:22:54: warning: unused parameter ‘mono’ [-Wunused-parameter]
22 | Monosaccharide::Monosaccharide(const Monosaccharide &mono)
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
/home/oliver/Programs/GLYCAM_Dev_Env/V_2/Web_Programs/gems/gmml/src/Glycan/monosaccharide.cc: In constructor ‘Glycan::Monosaccharide::Monosaccharide(std::string, std::vectorMolecularModeling::Atom*&, MolecularModeling::Assembly, std::string)’:
/home/oliver/Programs/GLYCAM_Dev_Env/V_2/Web_Programs/gems/gmml/src/Glycan/monosaccharide.cc:92:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::__cxx11::basic_string >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
92 | for(int i = 0; i < orientations.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~
/home/oliver/Programs/GLYCAM_Dev_Env/V_2/Web_Programs/gems/gmml/src/Glycan/monosaccharide.cc:27:170: warning: unused parameter ‘CCD_Path’ [-Wunused-parameter]
27 | Monosaccharide::Monosaccharide(std::string cycle_atoms_str, std::vectorMolecularModeling::Atom*& cycle_atoms, MolecularModeling::Assembly* this_assembly, std::string CCD_Path)
| ~~~~~~~~~~~~^~~~~~~~
/home/oliver/Programs/GLYCAM_Dev_Env/V_2/Web_Programs/gems/gmml/src/Glycan/oligosaccharide.cc: In member function ‘void Glycan::Oligosaccharide::Print(std::ostream&)’:
/home/oliver/Programs/GLYCAM_Dev_Env/V_2/Web_Programs/gems/gmml/src/Glycan/oligosaccharide.cc:51:51: warning: unused parameter ‘out’ [-Wunused-parameter]
51 | void Glycan::Oligosaccharide::Print(std::ostream& out)
| ~~~~~~~~~~~~~~^~~
/home/oliver/Programs/GLYCAM_Dev_Env/V_2/Web_Programs/gems/gmml/src/Glycan/monosaccharide.cc: In member function ‘void Glycan::Monosaccharide::CheckMonoNaming(std::string, std::string)’:
/home/oliver/Programs/GLYCAM_Dev_Env/V_2/Web_Programs/gems/gmml/src/Glycan/monosaccharide.cc:1878:58: warning: unused parameter ‘original_residue’ [-Wunused-parameter]
1878 | void Glycan::Monosaccharide::CheckMonoNaming(std::string original_residue, std::string original_residue_id)
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/home/oliver/Programs/GLYCAM_Dev_Env/V_2/Web_Programs/gems/gmml/src/Glycan/monosaccharide.cc:1878:88: warning: unused parameter ‘original_residue_id’ [-Wunused-parameter]
1878 | void Glycan::Monosaccharide::CheckMonoNaming(std::string original_residue, std::string original_residue_id)
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/home/oliver/Programs/GLYCAM_Dev_Env/V_2/Web_Programs/gems/gmml/src/Glycan/oligosaccharide.cc: In member function ‘void Glycan::Oligosaccharide::indexMono(Glycan::Monosaccharide*, int, std::vectorGlycan::Monosaccharide*&)’:
/home/oliver/Programs/GLYCAM_Dev_Env/V_2/Web_Programs/gems/gmml/src/Glycan/oligosaccharide.cc:1481:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<std::pair<Glycan::GlycosidicLinkage*, Glycan::Monosaccharide*> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
1481 | for(int i = 0; i < thisMono->mono_neighbors_.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/oliver/Programs/GLYCAM_Dev_Env/V_2/Web_Programs/gems/gmml/src/Glycan/oligosaccharide.cc:1301:6: internal compiler error: Segmentation fault
1301 | void Glycan::Oligosaccharide::indexMono(Glycan::Monosaccharide* thisMono, int thisIndex, std::vectorGlycan::Monosaccharide* &branchedMonos)
| ^~~~~~
0x7f38078da08f ???
/build/glibc-SzIz7B/glibc-2.31/signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0x7f38078bb082 __libc_start_main
../csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See file:///usr/share/doc/gcc-9/README.Bugs for instructions.
make[3]: *** [CMakeFiles/gmml.dir/build.make:505: CMakeFiles/gmml.dir/src/Glycan/oligosaccharide.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
The text was updated successfully, but these errors were encountered: