Segmentation fault

Asked by anna effeindzourou on 2011-07-08

Hi all,
I'm trying to solve my problems with one of my script using debug mode but I've difficulties to understand the output file.the script used is to create a plan composed of 4 triangles, a chained cylinder (positioned perpendicular to the plane attached to this one) and a sphere. This sphere rolls on the plane and comes into contact with the cylinder chained. The segmentation fault does not occur every time and seems random. In any case the sphere rolls up contact with the cylinder chained.
Can you help me to understand it?

thanks in advance,

Anna

Yade [2]: *** glibc detected *** /usr/bin/python: free(): corrupted unsorted chunks: 0x00007f4c40004520 ***
======= Backtrace: =========
/lib/libc.so.6(+0x775b6)[0x7f4c6224c5b6]
/lib/libc.so.6(cfree+0x73)[0x7f4c62252e83]
/home/effindzourou/yade/lib/yade-trunk/plugins/../plugins/libplugins.so(_ZN15InteractionLoop6actionEv+0x471)[0x7f4c4cee3931]
/home/effindzourou/yade/lib/yade-trunk/py/yade/../../lib/libcore.so(_ZN5Scene18moveToNextTimeStepEv+0x478)[0x7f4c591d0398]
/home/effindzourou/yade/lib/yade-trunk/py/yade/../../lib/libcore.so(_ZN14SimulationFlow12singleActionEv+0x52)[0x7f4c591d1b62]
/home/effindzourou/yade/lib/yade-trunk/py/yade/../../lib/libcore.so(_ZN12ThreadWorker16callSingleActionEv+0x31)[0x7f4c591ce531]
/home/effindzourou/yade/lib/yade-trunk/py/yade/../../lib/libcore.so(_ZN12ThreadRunner4callEv+0x31)[0x7f4c591d3111]
/home/effindzourou/yade/lib/yade-trunk/py/yade/../../lib/libcore.so(_ZN12ThreadRunner3runEv+0x5b)[0x7f4c591d550b]
/home/effindzourou/yade/lib/yade-trunk/py/yade/../../lib/libcore.so(_ZN5boost6detail11thread_dataINS_9function0IvEEE3runEv+0x3f)[0x7f4c592a837f]
/usr/lib/libboost_thread.so.1.40.0(thread_proxy+0x60)[0x7f4c60d9bb70]
/lib/libpthread.so.0(+0x69ca)[0x7f4c633e19ca]
/lib/libc.so.6(clone+0x6d)[0x7f4c622bb70d]
======= Memory map: ========
00400000-0061c000 r-xp 00000000 08:05 23200746 /usr/bin/python2.6
0081b000-0081c000 r--p 0021b000 08:05 23200746 /usr/bin/python2.6
0081c000-0087e000 rw-p 0021c000 08:05 23200746 /usr/bin/python2.6
0087e000-0088d000 rw-p 00000000 00:00 0
0284b000-052fc000 rw-p 00000000 00:00 0 [heap]
4013c000-4013e000 rwxp 00000000 00:05 1288 /dev/zero
40257000-40259000 rwxp 00000000 00:05 1288 /dev/zero
404ac000-404b5000 rwxp 00000000 00:05 1288 /dev/zero
406a2000-406a4000 rwxp 00000000 00:05 1288 /dev/zero
4070b000-40714000 rwxp 00000000 00:05 1288 /dev/zero
408ed000-408ef000 rwxp 00000000 00:05 1288 /dev/zero
409e2000-409e4000 rwxp 00000000 00:05 1288 /dev/zero
40a9a000-40a9c000 rwxp 00000000 00:05 1288 /dev/zero
40c6e000-40c70000 rwxp 00000000 00:05 1288 /dev/zero
40cd3000-40cd5000 rwxp 00000000 00:05 1288 /dev/zero
40cf8000-40cfa000 rwxp 00000000 00:05 1288 /dev/zero
40d8b000-40d8d000 rwxp 00000000 00:05 1288 /dev/zero
41044000-41046000 rwxp 00000000 00:05 1288 /dev/zero
41644000-41646000 rwxp 00000000 00:05 1288 /dev/zero
416c3000-416c5000 rwxp 00000000 00:05 1288 /dev/zero
418ec000-418ee000 rwxp 00000000 00:05 1288 /dev/zero
419b3000-419bc000 rwxp 00000000 00:05 1288 /dev/zero
41c00000-41c02000 rwxp 00000000 00:05 1288 /dev/zero
41e6b000-41ef0000 rw-p 00000000 00:05 1288 /dev/zero
41fc0000-41fc2000 rwxp 00000000 00:05 1288 /dev/zero
7f4c2bf31000-7f4c2c331000 rw-s 174aa0000 00:05 4900 /dev/nvidia0
7f4c2c331000-7f4c2c731000 rw-s 17c2d9000 00:05 4900 /dev/nvidia0
7f4c2c731000-7f4c2cb31000 rw-s 195edc000 00:05 4900 /dev/nvidia0
7f4c2cb31000-7f4c2cf31000 rw-s 1227c8000 00:05 4900 /dev/nvidia0
7f4c2cf31000-7f4c2cf32000 ---p 00000000 00:00 0
7f4c2cf32000-7f4c2d833000 rw-p 00000000 00:00 0
7f4c2d834000-7f4c2d835000 rw-s 00000000 00:04 11894890 /SYSV00000000 (deleted)
7f4c2d835000-7f4c2d836000 rw-s 00000000 00:04 12124280 /SYSV00000000 (deleted)
7f4c2d836000-7f4c2dc36000 rw-s 1973c9000 00:05 4900 /dev/nvidia0
7f4c2dc36000-7f4c2dc3a000 rw-s 1973e0000 00:05 4900 /dev/nvidia0
7f4c2dc3a000-7f4c2dd3a000 rw-s 199396000 00:05 4900 /dev/nvidia0
7f4c2dd3a000-7f4c2e42b000 r-xp 00000000 08:05 23213004 /usr/lib/libQtDesigner.so.4.6.2
7f4c2e42b000-7f4c2e62a000 ---p 006f1000 08:05 23213004 /usr/lib/libQtDesigner.so.4.6.2
7f4c2e62a000-7f4c2e645000 r--p 006f0000 08:05 23213004 /usr/lib/libQtDesigner.so.4.6.2
7f4c2e645000-7f4c2e649000 rw-p 0070b000 08:05 23213004 /usr/lib/libQtDesigner.so.4.6.2
7f4c2e649000-7f4c2e64a000 rw-p 00000000 00:00 0
7f4c2e64a000-7f4c2e688000 r-xp 00000000 08:05 23993963 /usr/lib/pyshared/python2.6/PyQt4/QtDesigner.so
7f4c2e688000-7f4c2e888000 ---p 0003e000 08:05 23993963 /usr/lib/pyshared/python2.6/PyQt4/QtDesigner.so
7f4c2e888000-7f4c2e88b000 r--p 0003e000 08:05 23993963 /usr/lib/pyshared/python2.6/PyQt4/QtDesigner.so
7f4c2e88b000-7f4c2e894000 rw-p 00041000 08:05 23993963 /usr/lib/pyshared/python2.6/PyQt4/QtDesigner.so
7f4c2e894000-7f4c2e89a000 r-xp 00000000 08:05 23213722 /usr/lib/libQtAssistantClient.so.4.6.2
7f4c2e89a000-7f4c2ea99000 ---p 00006000 08:05 23213722 /usr/lib/libQtAssistantClient.so.4.6.2
7f4c2ea99000-7f4c2ea9a000 r--p 00005000 08:05 23213722 /usr/lib/libQtAssistantClient.so.4.6.2
7f4c2ea9a000-7f4c2ea9b000 rw-p 00006000 08:05 23213722 /usr/lib/libQtAssistantClient.so.4.6.2
7f4c2ea9b000-7f4c2ea9f000 r-xp 00000000 08:05 23993956 /usr/lib/pyshared/python2.6/PyQt4/QtAssistant.so
7f4c2ea9f000-7f4c2ec9e000 ---p 00004000 08:05 23993956 /usr/lib/pyshared/python2.6/PyQt4/QtAssistant.so
7f4c2ec9e000-7f4c2ec9f000 r--p 00003000 08:05 23993956 /usr/lib/pyshared/python2.6/PyQt4/QtAssistant.so
7f4c2ec9f000-7f4c2eca0000 rw-p 00004000 08:05 23993956 /usr/lib/pyshared/python2.6/PyQt4/QtAssistant.so
7f4c2eca0000-7f4c2ecc1000 r-xp 00000000 08:05 23993959 /usr/lib/pyshared/python2.6/PyQt4/QtXmlPatterns.so
7f4c2ecc1000-7f4c2eec0000 ---p 00021000 08:05 23993959 /usr/lib/pyshared/python2.6/PyQt4/QtXmlPatterns.so
7f4c2eec0000-7f4c2eec1000 r--p 00020000 08:05 23993959 /usr/lib/pyshared/python2.6/PyQt4/QtXmlPatterns.so
7f4c2eec1000-7f4c2eec7000 rw-p 00021000 08:05 23993959 /usr/lib/pyshared/python2.6/PyQt4/QtXmlPatterns.so
7f4c2eec7000-7f4c2ef06000 r-xp 00000000 08:05 23993960 /usr/lib/pyshared/python2.6/PyQt4/QtXml.so
7f4c2ef06000-7f4c2f106000 ---p 0003f000 08:05 23993960 /usr/lib/pyshared/python2.6/PyQt4/QtXml.so
7f4c2f106000-7f4c2f107000 r--p 0003f000 08:05 23993960 /usr/lib/pyshared/python2.6/PyQt4/QtXml.so
7f4c2f107000-7f4c2f113000 rw-p 00040000 08:05 23993960 /usr/lib/pyshared/python2.6/PyQt4/QtXml.so
7f4c2f113000-7f4c2f18a000 r-xp 00000000 08:05 23212994 /usr/lib/libQtDBus.so.4.6.2Abandon

Question information

Language:
English Edit question
Status:
Expired
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
2011-07-21
Last reply:
2011-08-05
Anton Gladky (gladky-anton) said : #1

Seems, the problem is not related to Yade.

> 7f4c2bf31000-7f4c2c331000 rw-s 174aa0000 00:05 4900 /dev/nvidia0

I am not sure, but I think it is a video-driver's issue.

Anton Gladky (gladky-anton) said : #2

I saw something similar today.
It happened, when I pushed the button "start" on control-panel, but the window (where you can see the simulation) is not yet opened completely. Did you do the same?

Hi Anton,

When the error happened the window was already open.

Anna

Anton Gladky (gladky-anton) said : #4

Try not to open window at all and start a simulation. Without qt.Vew().
Will you get the same?

Anton

I tried but it does not change anything.

Anton Gladky (gladky-anton) said : #6

It still crashes?
If so, try to start you script in debug-mode, like described here [1], answer 1.

[1] https://answers.launchpad.net/yade/+question/165371

Anton

I've already run my script in debug mode as I said when I asked the question
and also joined it to my question.
Do you think that to remove the display changes the nature of the error?

Launchpad Janitor (janitor) said : #8

This question was expired because it remained in the 'Open' state without activity for the last 15 days.