segmentation fault (core dumped)

Asked by Hicham BENNIOU

Hi everyone,

After compiling my own version of Yade, when I try to run the binaries I get a "segmentation fault (core dumped)" error.

I'm running Ubuntu 14.04, the same source was running smoothly on my old machine (ubuntu 12.04), is there a way to identify the problem here ?

Cheers,

Hicham

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Jérôme Duriez (jduriez) said :
#1

Hello Hicham,

Compiling a debug version (-DDEBUG flag) should give you more info that could help locate the problem. https://www.yade-dem.org/doc/user.html#crashes

Jérôme

Revision history for this message
Hicham BENNIOU (benniou-hicham-deactivatedaccount) said :
#2

Thanks Jérome,

at first sight, it seems that there is a problem with vtk

-- The imported target "vtkParseJava" references the file
   "/usr/bin/vtkParseJava"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkWrapJava" references the file
   "/usr/bin/vtkWrapJava"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkCommonJava" references the file
   "/usr/lib/jni/libvtkCommonJava.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkFilteringJava" references the file
   "/usr/lib/jni/libvtkFilteringJava.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkImagingJava" references the file
   "/usr/lib/jni/libvtkImagingJava.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkGraphicsJava" references the file
   "/usr/lib/jni/libvtkGraphicsJava.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkGenericFilteringJava" references the file
   "/usr/lib/jni/libvtkGenericFilteringJava.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkIOJava" references the file
   "/usr/lib/jni/libvtkIOJava.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkRenderingJava" references the file
   "/usr/lib/jni/libvtkRenderingJava.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkVolumeRenderingJava" references the file
   "/usr/lib/jni/libvtkVolumeRenderingJava.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkHybridJava" references the file
   "/usr/lib/jni/libvtkHybridJava.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkWidgetsJava" references the file
   "/usr/lib/jni/libvtkWidgetsJava.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkParallelJava" references the file
   "/usr/lib/jni/libvtkParallelJava.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkInfovisJava" references the file
   "/usr/lib/jni/libvtkInfovisJava.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkGeovisJava" references the file
   "/usr/lib/jni/libvtkGeovisJava.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkViewsJava" references the file
   "/usr/lib/jni/libvtkViewsJava.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkQtChart" references the file
   "/usr/lib/libvtkQtChart.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "QVTK" references the file
   "/usr/lib/libQVTK.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkChartsJava" references the file
   "/usr/lib/jni/libvtkChartsJava.so.5.8.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/vtk-5.8/VTKTargets.cmake"
but not all the files it references.

but at the same time I can see :

-- Found VTK

any fix ?

Cheers
Hicham

Revision history for this message
Anton Gladky (gladky-anton) said :
#3

There is no problem with VTK.

Anton

2014-04-28 14:02 GMT+02:00 Hicham BENNIOU
<email address hidden>:
> at first sight, it seems that there is a problem with vtk
>
> -- The imported target "vtkParseJava" references the file
> "/usr/bin/vtkParseJava"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkWrapJava" references the file
> "/usr/bin/vtkWrapJava"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkCommonJava" references the file
> "/usr/lib/jni/libvtkCommonJava.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkFilteringJava" references the file
> "/usr/lib/jni/libvtkFilteringJava.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkImagingJava" references the file
> "/usr/lib/jni/libvtkImagingJava.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkGraphicsJava" references the file
> "/usr/lib/jni/libvtkGraphicsJava.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkGenericFilteringJava" references the file
> "/usr/lib/jni/libvtkGenericFilteringJava.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkIOJava" references the file
> "/usr/lib/jni/libvtkIOJava.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkRenderingJava" references the file
> "/usr/lib/jni/libvtkRenderingJava.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkVolumeRenderingJava" references the file
> "/usr/lib/jni/libvtkVolumeRenderingJava.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkHybridJava" references the file
> "/usr/lib/jni/libvtkHybridJava.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkWidgetsJava" references the file
> "/usr/lib/jni/libvtkWidgetsJava.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkParallelJava" references the file
> "/usr/lib/jni/libvtkParallelJava.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkInfovisJava" references the file
> "/usr/lib/jni/libvtkInfovisJava.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkGeovisJava" references the file
> "/usr/lib/jni/libvtkGeovisJava.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkViewsJava" references the file
> "/usr/lib/jni/libvtkViewsJava.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkQtChart" references the file
> "/usr/lib/libvtkQtChart.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "QVTK" references the file
> "/usr/lib/libQVTK.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
> -- The imported target "vtkChartsJava" references the file
> "/usr/lib/jni/libvtkChartsJava.so.5.8.0"
> but this file does not exist. Possible reasons include:
> * The file was deleted, renamed, or moved to another location.
> * An install or uninstall procedure did not complete successfully.
> * The installation package was faulty and contained
> "/usr/lib/vtk-5.8/VTKTargets.cmake"
> but not all the files it references.
>
>
> but at the same time I can see :
>
> -- Found VTK
>
> any fix ?
>
> Cheers
> Hicham
>
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp

Revision history for this message
Hicham BENNIOU (benniou-hicham-deactivatedaccount) said :
#4

Debug build isn't helping, it shows the same error message, no other info.

Revision history for this message
Anton Gladky (gladky-anton) said :
#5

Try yadedaily or simply "yade" from packages.

Anton

2014-04-28 17:21 GMT+02:00 Hicham BENNIOU
<email address hidden>:
> Question #247823 on Yade changed:
> https://answers.launchpad.net/yade/+question/247823
>
> Status: Answered => Open
>
> Hicham BENNIOU is still having a problem:
> Debug build isn't helping, it shows the same error message, no other
> info.
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp

Revision history for this message
Hicham BENNIOU (benniou-hicham-deactivatedaccount) said :
#6

Ok guys,

It worked but I can't give a clear explanation.

On my old machine I was using an older version of the source code and I added my own contact law. On this new machine I'm using the latest source and I added my contact law. It wasn't working till I deleted :
/pkg/lbm
/pkg/pfv

odd, but it seems like it solved the problem

Revision history for this message
Klaus Thoeni (klaus.thoeni) said :
#7

Hi,

did you try to disable LBMFLOW and PFVflow when compiling instead of deleting the folders, i.e. use

cmake -DLBMFLOW=0 -DPFVflow=0 etc.

Revision history for this message
Hicham BENNIOU (benniou-hicham-deactivatedaccount) said :
#8

Hi Klaus,

No, I just deleted them from my fork, and compiled again.

cheers

Revision history for this message
Hicham BENNIOU (benniou-hicham-deactivatedaccount) said :
#9

Hello everyone,
sorry for bringing this back but none of the other topics gives real solutions.

I keep getting the error message "segmentation fault (core dumped)" when running Yade after compilation.
I am actually using Yade 1.10.0. Same problem with newer versions. didn't try all earlier ones but I didn't experience any trouble with 0.9.

cheers

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#10

Hello Hicham,
Does yade-daily work?
What if you compile fresh source code without adding your contact law?

Revision history for this message
Hicham BENNIOU (benniou-hicham-deactivatedaccount) said :
#11

Hi Bruno,

Yes, yadedaily works fine (version 1.11.0-2084a28be~trusty)
I actually compiled the source 1.10.0 without any modification

Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#12

Why do you checkout sources in version 1.10.0? This is unusual - though
not wrong.
Could you try master?

Revision history for this message
Hicham BENNIOU (benniou-hicham-deactivatedaccount) said :
#13

For a simple reason. Latest one is not working either.
I'll try to check this with Remy
Thanks !

Revision history for this message
Anton Gladky (gladky-anton) said :
#14

If yadedaily is working for you, so there is a problem either
with the changes, which you done on the code, or you are
using some libraries (self-ćompiled?), which are segfauliting
somehow.

Cheers

Anton

Revision history for this message
Klaus Thoeni (klaus.thoeni) said :
#15

Hi, just updated my computer to Kubuntu 14.04 and came across the same problem during cmake. There seems to be a inconsistency in vtk. I am not using any self-compiled libraries.

In order to get rid of the warnings I installed libvtk-java and libvtk5-qt4-dev.

I think anyone using 14.04 will run into this. So not sure if we should add the packages to our list. Let me know.

Klaus

Revision history for this message
Hicham BENNIOU (benniou-hicham-deactivatedaccount) said :
#16

Hi Klaus,

The problem I had lately came from a self compiled library (not vtk) so I'm not sure my answer would be helpful.
Let's wait and see if others run into this problem.

Cheers,

Hicham

Revision history for this message
Klaus Thoeni (klaus.thoeni) said :
#17

Hi Hicham,

forgot to mention, I didn't get a seg fault but the same cmake output warnings. Anyway, my solution gets rid of the warnings which seem to be harmless but it is always good to look into it :-)

Cheers
Klaus

Revision history for this message
ozge (osge) said :
#18

Hi Hicham,
I am just wondeirng that did you figure out your problem (seg. fault) ?

thanks,
ozge

Revision history for this message
Jan Stránský (honzik) said :
#19

Hi Ozge,
this is very old thread and if there was a solution, it is likely it will not work now..
If you have a problem with segmentation fault (it may have many reasons), please open a new question/bug.
cheers
Jan

Can you help with this problem?

Provide an answer of your own, or ask Hicham BENNIOU for more information if necessary.

To post a message you must log in.