Crash in last revision

Bug #681018 reported by Anton Gladky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yade
Fix Released
Undecided
Václav Šmilauer

Bug Description

The simulation starts and after couple seconds of simulation it crashes.

The problem is in O.bodies.erase(i.id)

Test script and backtrace are attached.

Related branches

Revision history for this message
Anton Gladky (gladky-anton) wrote :
Revision history for this message
Anton Gladky (gladky-anton) wrote :
Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Hi Anton, it was the same problem as crash during generating docs. Try with 2568 and close if appropriate. Cheers!

Changed in yade:
assignee: nobody → Václav Šmilauer (eudoxos)
status: New → In Progress
Revision history for this message
Anton Gladky (gladky-anton) wrote :
Download full text (25.1 KiB)

Hi, Vaclav!
Thanks, but unfortunately I still get a crash:

****************************************************
python: /home/gladk/dem/yade/cleanCompDebug/yade/core/InteractionContainer.cpp:69: const boost::shared_ptr<Interaction>& InteractionContainer::find(int, int): Assertion `b1' failed.
python: /home/gladk/dem/yade/cleanCompDebug/yade/core/InteractionContainer.cpp:69: const boost::shared_ptr<Interaction>& InteractionContainer::find(int, int): Assertion `b1' failed.
SIGSEGV/SIGABRT handler called; gdb batch file is `/tmp/yade-EBaLiZ/tmp-0'
Aborted
****************************************************
And sometimes:

Welcome to Yade bzr2568 (debug build)
TCP python prompt on localhost:9000, auth cookie `seakyu'
XMLRPC info provider on http://localhost:21000
Running script testScript.py
Added 109 particles
Total number of elements is 109
python: /home/gladk/dem/yade/cleanCompDebug/yade/core/InteractionContainer.cpp:69: const boost::shared_ptr<Interaction>& InteractionContainer::find(int, int): Assertion `b1' failed.
python: /home/gladk/dem/yade/cleanCompDebug/yade/core/InteractionContainer.cpp:69: const boost::shared_ptr<Interaction>& InteractionContainer::find(int, int): Assertion `b1' failed.
SIGSEGV/SIGABRT handler called; gdb batch file is `SIGSEGV/SIGABRT handler called; gdb batch file is `/tmp/yade-NqH4Wa/tmp-0'
/tmp/yade-NqH4Wa/tmp-0'
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
/tmp/yade-NqH4Wa/tmp-0:1: Error in sourced command file:
ptrace: Operation not permitted.
(gdb) [Thread debugging using libthread_db enabled]
[New Thread 0x7ffea0c26710 (LWP 29259)]
[New Thread 0x7ffea1427710 (LWP 29258)]
[New Thread 0x7ffea34f0710 (LWP 29257)]
[New Thread 0x7ffea4b1c710 (LWP 29256)]
[New Thread 0x7ffea531d710 (LWP 29255)]
0x00007ffec487111d in nanosleep () at ../sysdeps/unix/syscall-template.S:82
82 ../sysdeps/unix/syscall-template.S: No such file or directory.
 in ../sysdeps/unix/syscall-template.S
No symbol "info" in current context.

Thread 6 (Thread 0x7ffea531d710 (LWP 29255)):
#0 0x00007ffec373aff3 in select () at ../sysdeps/unix/syscall-template.S:82
#1 0x00000000004f7013 in select_select (self=<value optimized out>, args=<value optimized out>) at ../Modules/selectmodule.c:278
#2 0x00000000004a7c5e in call_function (f=Frame 0x2499410, for file /usr/lib/python2.6/SocketServe...

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Oops, sorry, should be fine in 2569.

Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: [Bug 681018] Re: Crash in last revision
Download full text (24.3 KiB)

Sorry, it still crashes....

python: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T*
boost::shared_ptr< <template-parameter-1-1> >::operator->() const [with T =
Interaction]: Assertion `px != 0' failed.
python: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T*
boost::shared_ptr< <template-parameter-1-1> >::operator->() const [with T =
Interaction]: Assertion `px != 0' failed.
SIGSEGV/SIGABRT handler called; gdb batch file is `SIGSEGV/SIGABRT handler
called; gdb batch file is `/tmp/yade-XQsdXX/tmp-0'
/tmp/yade-XQsdXX/tmp-0'
GNU gdb (GDB) 7.1-ubuntu
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
<http://www.gnu.org/software/gdb/bugs/>.
/tmp/yade-XQsdXX/tmp-0:1: Error in sourced command file:
ptrace: Operation not permitted.
(gdb) [Thread debugging using libthread_db enabled]
[New Thread 0x7ff80d9ee710 (LWP 32501)]
[New Thread 0x7ff80e1ef710 (LWP 32500)]
[New Thread 0x7ff8102b8710 (LWP 32499)]
[New Thread 0x7ff8118e4710 (LWP 32498)]
[New Thread 0x7ff8120e5710 (LWP 32497)]
0x00007ff83163911d in nanosleep () at ../sysdeps/unix/syscall-template.S:82
82 ../sysdeps/unix/syscall-template.S: No such file or directory.
    in ../sysdeps/unix/syscall-template.S
No symbol "info" in current context.

Thread 6 (Thread 0x7ff8120e5710 (LWP 32497)):
#0 0x00007ff830502ff3 in select () at ../sysdeps/unix/syscall-template.S:82
#1 0x00000000004f7013 in select_select (self=<value optimized out>,
args=<value optimized out>) at ../Modules/selectmodule.c:278
#2 0x00000000004a7c5e in call_function (f=Frame 0x223c410, for file
/usr/lib/python2.6/SocketServer.py, line 224, in serve_forever
(self=<ThreadingTCPServer(RequestHandlerClass=<classobj at remote
0x21ff770>, authenticated=[], socket=<_socketobject at remote 0x21ab520>,
server_address=('0.0.0.0', 9000), cookie='kseysu',
_BaseServer__serving=True,
_BaseServer__is_shut_down=<_Event(_Verbose__verbose=False,
_Event__flag=False, _Event__cond=<_Condition(_Verbose__verbose=False,
_Condition__lock=<thread.lock at remote 0x7ff83194b1b0>, acquire=<built-in
method acquire of thread.lock object at remote 0x7ff83194b1b0>,
_Condition__waiters=[], release=<built-in method release of thread.lock
object at remote 0x7ff83194b1b0>) at remote 0x21e24d0>) at remote
0x21b3250>) at remote 0x21a2a70>, poll_interval=<float at remote 0x1f73ad0>,
r=[], w=[], e=[]), throwflag=<value optimized out>) at
../Python/ceval.c:3750
#3 PyEval_...

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Now should be definitley fixed in r2570 (I tried yuor script). Let us keep this bug open, so that I remember I should add a simple test to the regression suite. Cheers, v.

Revision history for this message
Anton Gladky (gladky-anton) wrote :

Thanks a lot, Vaclav! All is Ok now.

Anton

Revision history for this message
Klaus Thoeni (klaus.thoeni) wrote : Re: [Yade-dev] [Bug 681018] Re: Crash in last revision

Hi Guys!

I just had a try with the new version, and finally, it works fine for me as
well.

Thanks

Klaus

On Thu, Nov 25, 2010 at 10:15 AM, Anton Gladky <email address hidden>wrote:

> Thanks a lot, Vaclav! All is Ok now.
>
> Anton
>
> --
> Crash in last revision
> https://bugs.launchpad.net/bugs/681018
> You received this bug notification because you are a member of Yade
> developers, which is subscribed to Yade.
>
> Status in Yet Another Dynamic Engine: In Progress
>
> Bug description:
> The simulation starts and after couple seconds of simulation it crashes.
>
> The problem is in O.bodies.erase(i.id)
>
> Test script and backtrace are attached.
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Anton Gladky (gladky-anton) wrote :
Download full text (21.9 KiB)

With r2580, I get the following crash:

But the attached at first messge script does not give this error.

Vaclav, do you need the "crashing" script, or backtrace is enough?

Thank you

python: /home/gladk/dem/yade/cleanCompDebug/yade/core/InteractionContainer.cpp:44: bool
 InteractionContainer::erase(int, int): Assertion `b1' failed.
SIGSEGV/SIGABRT handler called; gdb batch file is `/tmp/yade-ZOjnOf/tmp-0'
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
[Thread debugging using libthread_db enabled]
[New Thread 0x7f1ad1c9e710 (LWP 4730)]
[New Thread 0x7f1ad9b84710 (LWP 4729)]
[New Thread 0x7f1aeaada710 (LWP 4727)]
[New Thread 0x7f1aeb2db710 (LWP 4725)]
0x00007f1b0adef11d in nanosleep () at ../sysdeps/unix/syscall-template.S:82
82 ../sysdeps/unix/syscall-template.S: No such file or directory.
 in ../sysdeps/unix/syscall-template.S
No symbol "info" in current context.

Thread 5 (Thread 0x7f1aeb2db710 (LWP 4725)):
#0 0x00007f1b09cb8ff3 in select () at ../sysdeps/unix/syscall-template.S:82
#1 0x00000000004f7013 in select_select (self=<value optimized out>, args=<value optimized out>) at ../Modules/selectmodule.c:278
#2 0x00000000004a7c5e in call_function (f=Frame 0x7f1ae4002cd0, for file /usr/lib/python2.6/SocketServer.py, line 224, in serve_forever (self=<ThreadingTCPServer(RequestHandlerClass=<classobj at remote 0x1d13830>, authenticated=[], socket=<_socketobject at remote 0x1ca0600>, server_address=('0.0.0.0', 9000), cookie='ykuasc', _BaseServer__serving=True, _BaseServer__is_shut_down=<_Event(_Verbose__verbose=False, _Event__flag=False, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=<thread.lock at remote 0x7f1b0b1021b0>, acquire=<built-in method acquire of thread.lock object at remote 0x7f1b0b1021b0>, _Condition__waiters=[], release=<built-in method release of thread.lock object at remote 0x7f1b0b1021b0>) at remote 0x1cf5990>) at remote 0x1ca2710>) at remote 0x1cab7e8>, poll_interval=<float at remote 0x1a5c730>, r=[], w=[], e=[]), throwflag=<value optimized out>) at ../Python/ceval.c:3750
#3 PyEval_EvalFrameEx (f=Frame 0x7f1ae4002cd0, for file /usr/lib/python2.6/SocketServer.py, line 224, in serve_forever (self=<ThreadingTCPServer(RequestHandlerClass=<classobj at remote 0x1d13830>, authenticated=[], socket=<_socketobject at remote 0x1ca0600>, server_address=('0.0.0.0', 9000), cookie='ykuasc', _BaseServer__serving=True, _BaseServer__is_shut_down=<_Event(_Verbose__verbose=False, _Event__flag=False, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=<thread.lock at remote 0x7f1b0b1021b0>, acquire=<built-in method acquire of thread.lock object at remote 0x7f1b0b1021b0>, _Condition__waiters=[], release=<built-in method release of thread.lock object at remote 0x7f1b0b1021b0>) at remote 0x1cf5990>) at...

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

r2581 should fix that (reopen if not).

Changed in yade:
status: In Progress → Fix Released
Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: [Bug 681018] Re: Crash in last revision

Thanks a lot, Vaclav! All is ok now.

Is 0.60 branch affected by this bug?

Anton

2010/12/1 Václav Šmilauer <email address hidden>

> r2581 should fix that (reopen if not).
>
> ** Changed in: yade
> Status: In Progress => Fix Released
>
> --
> Crash in last revision
> https://bugs.launchpad.net/bugs/681018
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Yet Another Dynamic Engine: Fix Released
>
> Bug description:
> The simulation starts and after couple seconds of simulation it crashes.
>
> The problem is in O.bodies.erase(i.id)
>
> Test script and backtrace are attached.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/yade/+bug/681018/+subscribe
>

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

no, it is post-0.60

Revision history for this message
Anton Gladky (gladky-anton) wrote :
Download full text (22.5 KiB)

Sorry, Vaclav, again the crash.

Welcome to Yade bzr2582 (debug build)
TCP python prompt on localhost:9000, auth cookie `yasdes'
XMLRPC info provider on http://localhost:21000
Running script SiebMaschine.py
Vector3(0,-0.08715574274765818,0.99619469809174555)
Added 6552 particles
Total number of elements is 9630
python: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T* boost::shared_ptr< <template-parameter-1-1> >::operator->() const [with T = Body]: Assertion `px != 0' failed.
SIGSEGV/SIGABRT handler called; gdb batch file is `/tmp/yade-u7LsRX/tmp-0'
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
[Thread debugging using libthread_db enabled]
[New Thread 0x7f7278753710 (LWP 11820)]
[New Thread 0x7f7278f54710 (LWP 11812)]
[New Thread 0x7f7280d39710 (LWP 11791)]
[New Thread 0x7f7291c5d710 (LWP 11790)]
[New Thread 0x7f729245e710 (LWP 11789)]
0x00007f72b1f4b11d in nanosleep () at ../sysdeps/unix/syscall-template.S:82
82 ../sysdeps/unix/syscall-template.S: No such file or directory.
 in ../sysdeps/unix/syscall-template.S
No symbol "info" in current context.

Thread 6 (Thread 0x7f729245e710 (LWP 11789)):
#0 0x00007f72b0e14ff3 in select () at ../sysdeps/unix/syscall-template.S:82
#1 0x00000000004f7013 in select_select (self=<value optimized out>, args=<value optimized out>) at ../Modules/selectmodule.c:278
#2 0x00000000004a7c5e in call_function (f=Frame 0x7f728c003f50, for file /usr/lib/python2.6/SocketServer.py, line 224, in serve_forever (self=<ThreadingTCPServer(RequestHandlerClass=<classobj at remote 0x1598950>, authenticated=[], socket=<_socketobject at remote 0x15207c0>, server_address=('0.0.0.0', 9000), cookie='yasdes', _BaseServer__serving=True, _BaseServer__is_shut_down=<_Event(_Verbose__verbose=False, _Event__flag=False, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=<thread.lock at remote 0xa721b0>, acquire=<built-in method acquire of thread.lock object at remote 0xa721b0>, _Condition__waiters=[], release=<built-in method release of thread.lock object at remote 0xa721b0>) at remote 0x157c950>) at remote 0x15286d0>) at remote 0x1526638>, poll_interval=<float at remote 0x12e22b0>, r=[], w=[], e=[]), throwflag=<value optimized out>) at ../Python/ceval.c:3750
#3 PyEval_EvalFrameEx (f=Frame 0x7f728c003f50, for file /usr/lib/python2.6/SocketServer.py, line 224, in serve_forever (self=<ThreadingTCPServer(RequestHandlerClass=<classobj at remote 0x1598950>, authenticated=[], socket=<_socketobject at remote 0x15207c0>, server_address=('0.0.0.0', 9000), cookie='yasdes', _BaseServer__serving=True, _BaseServer__is_shut_down=<_Event(_Verbose__verbose=False, _Event__flag=False, _Event__cond=<_Condition(_Verbose__verbose=False, _Condition__lock=<thread.lock at remote 0xa721b0>, acquire=<built-in method acquire of thread.lo...

Changed in yade:
status: Fix Released → In Progress
Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Sorry, the last one is not related to this bug. You can fix it easily, right? There is obviously a loop over bodies in VTKRecorder which does not check if(!b) continue; (to handle erased bodies).

Changed in yade:
status: In Progress → Fix Released
Revision history for this message
Anton Gladky (gladky-anton) wrote :

Ok, thanks, fixed in r2585.

Anton

2010/12/2 Václav Šmilauer <email address hidden>

> Sorry, the last one is not related to this bug. You can fix it easily,
> right? There is obviously a loop over bodies in VTKRecorder which does
> not check if(!b) continue; (to handle erased bodies).
>
> ** Changed in: yade
> Status: In Progress => Fix Released
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/681018
>
> Title:
> Crash in last revision
>
> Status in Yet Another Dynamic Engine:
> Fix Released
>
> Bug description:
> The simulation starts and after couple seconds of simulation it crashes.
>
> The problem is in O.bodies.erase(i.id)
>
> Test script and backtrace are attached.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/yade/+bug/681018/+subscribe
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.