Script works only with linkStrategy=monolithic option (dispatching bug)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Yade |
Fix Released
|
Critical
|
Václav Šmilauer |
Bug Description
When I start the simulation with the attached script, I get:
gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
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".
/home/gladk/
ptrace: No such process.
(gdb)
But when I do the same on installation with linkstrategy=
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Anton Gladky (gladky-anton) wrote : | #1 |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Václav Šmilauer (eudoxos) wrote : | #2 |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Anton Gladky (gladky-anton) wrote : Re: [Bug 415265] Re: Script works only with linkstrategy=monolithic option | #3 |
Could you not say how ;) ?
_______
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] С наилучшими пожеланиями
[UKR] З найкращими побажаннями
Anton Gladkyy
2009/8/18 Václav Šmilauer <email address hidden>
> Can you try running inside gdb?
>
> --
> Script works only with linkstrategy=
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Yet Another Dynamic Engine: New
>
> Bug description:
> When I start the simulation with the attached script, I get:
>
> gdb 6.8-debian
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <
> http://
> 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".
> /home/gladk/
> command file:
> ptrace: No such process.
> (gdb)
>
> But when I do the same on installation with linkstrategy=
> compilation option it works normally.
>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Václav Šmilauer (eudoxos) wrote : Re: Script works only with linkstrategy=monolithic option | #4 |
$ gdb yade-trunk
(gdb) run /tmp/pr.py
[wait till it crashes]
(gdb) thread apply all bt
(gdb) quit
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Anton Gladky (gladky-anton) wrote : Re: [Bug 415265] Re: Script works only with linkstrategy=monolithic option | #5 |
Starting program: /home/gladk/
pr.py
[Thread debugging using libthread_db enabled]
warning: Lowest section in /usr/lib/
0000000000000158
[New Thread 0x7fc7be1ca7f0 (LWP 29612)]
[New Thread 0x7fc786663950 (LWP 29615)]
Python TCP server listening on localhost:9000, auth cookie is `cesasu'
[New Thread 0x7fc77e88f950 (LWP 29616)]
Running script pr.py
/usr/lib/
pylab was already imported from /usr/lib/
but /usr/lib/
from pkg_resources import resource_stream
/usr/lib/
matplotlib was already imported from
/usr/lib/
/usr/lib/
from pkg_resources import resource_stream
[New Thread 0x7fc77b738950 (LWP 29617)]
[New Thread 0x7fc779d5a950 (LWP 29618)]
[New Thread 0x7fc779559950 (LWP 29619)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fc779559950 (LWP 29619)]
0x00007fc79ae6cd69 in InteractionDisp
.omp_
at pkg/common/
107
I->functorCache
(gdb) quit
_______
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] С наилучшими пожеланиями
[UKR] З найкращими побажаннями
Anton Gladkyy
2009/8/18 Václav Šmilauer <email address hidden>
>
> $ gdb yade-trunk
> (gdb) run /tmp/pr.py
> [wait till it crashes]
> (gdb) thread apply all bt
> (gdb) quit
>
> --
> Script works only with linkstrategy=
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Yet Another Dynamic Engine: New
>
> Bug description:
> When I start the simulation with the attached script, I get:
>
> gdb 6.8-debian
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <
> http://
> 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".
> /home/gladk/
> command file:
> ptrace: No such process.
> (gdb)
>
> But when I do the same on installation with linkstrategy=
> compilation option it works normally.
>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Anton Gladky (gladky-anton) wrote : | #6 |
thread apply all bt
Thread 6 (Thread 0x7f6e43771950 (LWP 29629)):
#0 0x00007f6e650e4d69 in InteractionDisp
(.omp_data_
pkg/common/
#1 0x00007f6e84a67c85 in ?? () from /usr/lib/
#2 0x00007f6e87caa3ba in start_thread () from /lib/libpthread
#3 0x00007f6e834f8fcd in clone () from /lib/libc.so.6
#4 0x0000000000000000 in ?? ()
Thread 5 (Thread 0x7f6e43f72950 (LWP 29628)):
#0 0x00007f6e84a68b57 in ?? () from /usr/lib/
#1 0x00007f6e84a68041 in ?? () from /usr/lib/
#2 0x00007f6e650e5485 in InteractionDisp
rootBody=<value optimized out>) at
pkg/common/
#3 0x00000000004657da in MetaBody:
/home/gladk/
#4 0x000000000046d4ba in SimulationFlow:
/home/gladk/
#5 0x00000000004647dc in ThreadRunner::call (this=<value optimized out>) at
/home/gladk/
#6 0x0000000000464888 in ThreadRunner::run (this=0x1c4d630) at
/home/gladk/
#7 0x00007f6e87a9f4de in boost::
std::allocator<
/usr/lib/
#8 0x00007f6e87a9f162 in ?? () from
/usr/lib/
#9 0x00007f6e87caa3ba in start_thread () from /lib/libpthread
#10 0x00007f6e834f8fcd in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()
Thread 4 (Thread 0x7f6e45901950 (LWP 29627)):
#0 0x00007f6e834f1742 in select () from /lib/libc.so.6
#1 0x00007f6e45be4504 in ?? () from /usr/lib/
#2 0x00007f6e87caa3ba in start_thread () from /lib/libpthread
#3 0x00007f6e834f8fcd in clone () from /lib/libc.so.6
#4 0x0000000000000000 in ?? ()
Thread 3 (Thread 0x7f6e48a58950 (LWP 29626)):
#0 0x00007f6e834f1742 in select () from /lib/libc.so.6
#1 0x00007f6e88006618 in ?? () from /usr/lib/
#2 0x00007f6e87fb3dbe in PyEval_EvalFrameEx () from
/usr/lib/
#3 0x00007f6e87fb59a9 in PyEval_EvalCodeEx () from
/usr/lib/
#4 0x00007f6e87f3ba3d in ?? () from /usr/lib/
#5 0x00007f6e87f0cc48 in PyObject_Call () from /usr/lib/
#6 0x00007f6e87f1d3c0 in ?? () from /usr/lib/
#7 0x00007f6e87f0cc48 in PyObject_Call () from /usr/lib/
#8 0x00007f6e87fae7c6 in PyEval_
/usr/lib/
#9 0x00007f6e87fe5dfd in ?? () from /usr/lib/
#10 0x00007f6e87caa3ba in start_thread () from /lib/libpthread
#11 0x00007f6e834f8fcd in clone () from /lib/libc.so.6
#12 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
Thread 2 (Thread 0x7f6e508db950 (LWP 29625)):
#0 0x00007f6e87cb17e1 in nanosleep () from /lib/libpthread
#1 0x00007f6e4baaf1f3 in pyOmega::step (this=0x1d77930) at
py/yadeWrapper/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Václav Šmilauer (eudoxos) wrote : Re: Script works only with linkstrategy=monolithic option | #7 |
Thanks. Does it _really_ beahve differently with monolithic/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Anton Gladky (gladky-anton) wrote : Re: [Bug 415265] Re: Script works only with linkstrategy=monolithic option | #8 |
With monolithic - no crash at all.
_______
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] С наилучшими пожеланиями
[UKR] З найкращими побажаннями
Anton Gladkyy
2009/8/18 Václav Šmilauer <email address hidden>
> Thanks. Does it _really_ beahve differently with monolithic/
> linkage? Is the backtrace any different?
>
> --
> Script works only with linkstrategy=
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Yet Another Dynamic Engine: New
>
> Bug description:
> When I start the simulation with the attached script, I get:
>
> gdb 6.8-debian
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <
> http://
> 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".
> /home/gladk/
> command file:
> ptrace: No such process.
> (gdb)
>
> But when I do the same on installation with linkstrategy=
> compilation option it works normally.
>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Anton Gladky (gladky-anton) wrote : | #9 |
With monolithic:
(gdb) run pr.py
Starting program: /home/gladk/
[Thread debugging using libthread_db enabled]
warning: Lowest section in /usr/lib/
0000000000000158
[New Thread 0x7f95927a97f0 (LWP 31085)]
[New Thread 0x7f95817bf950 (LWP 31088)]
Python TCP server listening on localhost:9000, auth cookie is `skcade'
[New Thread 0x7f9579841950 (LWP 31089)]
Running script pr.py
/usr/lib/
pylab was already imported from /usr/lib/
but /usr/lib/
from pkg_resources import resource_stream
/usr/lib/
matplotlib was already imported from
/usr/lib/
/usr/lib/
from pkg_resources import resource_stream
[New Thread 0x7f95766ea950 (LWP 31090)]
[New Thread 0x7f9574e5b950 (LWP 31091)]
[New Thread 0x7f957465a950 (LWP 31092)]
[Thread 0x7f9574e5b950 (LWP 31091) exited]
/var/lib/
the sets module is deprecated
from sets import Set
__ __ ____ ____ _
\ \ / /_ _| _ \ ___ / ___|___ _ __ ___ ___ | | ___
\ V / _` | | | |/ _ \ | | / _ \| '_ \/ __|/ _ \| |/ _ \
| | (_| | |_| | __/ | |__| (_) | | | \__ \ (_) | | __/
|
In [1]: exit
Out[1]: Type exit() to exit.
In [2]: exit()
Do you really want to exit ([y]/n)? y
Bye.
[Thread 0x7f95817bf950 (LWP 31088) exited]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f95927a97f0 (LWP 31085)]
0x0000000000000000 in ?? ()
(gdb) quit
The program is running. Exit anyway? (y or n) y
_______
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] С наилучшими пожеланиями
[UKR] З найкращими побажаннями
Anton Gladkyy
2009/8/18 Anton Gladky <email address hidden>
> With monolithic - no crash at all.
> _______
> [ENG] Best Regards
> [GER] Mit freundlichen Grüßen
> [RUS] С наилучшими пожеланиями
> [UKR] З найкращими побажаннями
>
> Anton Gladkyy
>
>
> 2009/8/18 Václav Šmilauer <email address hidden>
>
>> Thanks. Does it _really_ beahve differently with monolithic/
>>
>> linkage? Is the backtrace any different?
>>
>> --
>> Script works only with linkstrategy=
>> https:/
>> You received this bug notification because you are a direct subscriber
>> of the bug.
>>
>> Status in Yet Another Dynamic Engine: New
>>
>> Bug description:
>> When I start the simulation with the attached script, I get:
>>
>> gdb 6.8-debian
>> Copyright (C) 2008 Free Software Foundation, Inc.
>> License GPLv3+: GNU GPL version 3 or later <
>> http://
>> 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 GD...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Anton Gladky (gladky-anton) wrote : Re: Script works only with linkstrategy=monolithic option | #10 |
This bug is still appears.
Seems, it first appeared a week ago probably.
summary: |
- Script works only with linkstrategy=monolithic option + Script works only with linkStrategy=monolithic option |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Anton Gladky (gladky-anton) wrote : | #11 |
When I delete those strings:
InteractionDisp
[ef2_
[Ip2_
[Law2_
),
It does not call a crash. But it also does not work normally :)
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Václav Šmilauer (eudoxos) wrote : | #12 |
Broke other examples as well, it seems. Looking at it.
Changed in yade: | |
importance: | Undecided → Critical |
milestone: | none → 0.20-0 |
status: | New → Confirmed |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Václav Šmilauer (eudoxos) wrote : | #13 |
Is really bug in the dispatching code, see https:/
summary: |
- Script works only with linkStrategy=monolithic option + Script works only with linkStrategy=monolithic option (dispatching bug) |
Changed in yade: | |
assignee: | nobody → Janek Kozicki (cosurgi) |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Janek Kozicki (cosurgi) wrote : | #14 |
there may be some conflict between dispatcher code and the way of loading plugin classes. IIRC you were modifying that to allow static & monolithic builds. I need to check that
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Janek Kozicki (cosurgi) wrote : | #15 |
hm, I am unable to run this script pr.py:
Running script pr.py
/usr/lib/
from pkg_resources import resource_stream
Traceback (most recent call last):
File "/home/
execfile(
File "pr.py", line 56, in <module>
ids_
File "/home/
for i,j,k in itertools.
AttributeError: 'module' object has no attribute 'product'
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Anton Gladky (gladky-anton) wrote : | #16 |
I have just tested it again. It works.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Václav Šmilauer (eudoxos) wrote : | #17 |
OIC, itertools.product was added in python 2.6 :-|
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Janek Kozicki (cosurgi) wrote : | #18 |
heh, and python 2.6 is in debian experimental... Will take few months at least to get down to testing. Although I could probably port it myself. But you have just said that your new locateMultivirt
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Václav Šmilauer (eudoxos) wrote : | #19 |
I just commited that thing. Anton, how it could have worked? It wasn't commited yet. ;-)
Janek: dispatcher and loading plugins should be independent. The code in the dispatcher was really buggy. (I don't know why it worked with monolithic, though.)
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Anton Gladky (gladky-anton) wrote : Re: [Bug 415265] Re: Script works only with linkStrategy=monolithic option (dispatching bug) | #20 |
It worked with monolithic.
I have several installations, some of them monolithic, some not. monolithic
worked :)
_______
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] С наилучшими пожеланиями
[UKR] З найкращими побажаннями
Anton Gladkyy
2009/8/21 Václav Šmilauer <email address hidden>
> I just commited that thing. Anton, how it could have worked? It wasn't
> commited yet. ;-)
>
> Janek: dispatcher and loading plugins should be independent. The code in
> the dispatcher was really buggy. (I don't know why it worked with
> monolithic, though.)
>
> --
> Script works only with linkStrategy=
> https:/
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Yet Another Dynamic Engine: Confirmed
>
> Bug description:
> When I start the simulation with the attached script, I get:
>
> gdb 6.8-debian
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <
> http://
> 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".
> /home/gladk/
> command file:
> ptrace: No such process.
> (gdb)
>
> But when I do the same on installation with linkstrategy=
> compilation option it works normally.
>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Václav Šmilauer (eudoxos) wrote : | #21 |
Janek, can you test with r1716? I worked around that python 2.5 error. If you find other things like that, let me know.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Janek Kozicki (cosurgi) wrote : | #22 |
yes, with r1716 it works.
I'm curious to know what was the bug in dispatcher, since it worked buggy for so many years :/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Anton Gladky (gladky-anton) wrote : | #23 |
r1716 works normally!
Thank you!
Changed in yade: | |
assignee: | Janek Kozicki (cosurgi) → Václav Šmilauer (eudoxos) |
status: | Confirmed → Fix Released |
Can you try running inside gdb?