Warzone2100 / old-trac-import

Archived Import of (old) Warzone 2100 Trac
0 stars 0 forks source link

Crash in path-finding #1983

Closed wzdev-ci closed 14 years ago

wzdev-ci commented 14 years ago

resolution_fixed type_bug | by Per


(gdb) bt
#0  0x00000039656329a5 in raise () from /lib64/libc.so.6
#1  0x0000003965634185 in abort () from /lib64/libc.so.6
#2  0x000000325ccbeaad in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib64/libstdc++.so.6
#3  0x000000325ccbcc36 in ?? () from /usr/lib64/libstdc++.so.6
#4  0x000000325ccbcc63 in std::terminate() () from /usr/lib64/libstdc++.so.6
#5  0x000000325ccbcd5e in __cxa_throw () from /usr/lib64/libstdc++.so.6
#6  0x000000325ccbd14d in operator new(unsigned long) () from /usr/lib64/libstdc++.so.6
#7  0x0000000000483ebc in allocate (__position=..., __x=<value optimized out>, this=0x96e400)
    at /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/ext/new_allocator.h:89
#8  _M_allocate (__position=..., __x=<value optimized out>, this=0x96e400) at /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/bits/stl_vector.h:140
#9  std::vector<Vector2i, std::allocator<Vector2i> >::_M_insert_aux (__position=..., __x=<value optimized out>, this=0x96e400)
    at /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/bits/vector.tcc:322
#10 0x0000000000484dcd in push_back (psMove=0x7fffefa01d48, psJob=0x7fffefa01dc0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/bits/stl_vector.h:741
#11 fpathAStarRoute (psMove=0x7fffefa01d48, psJob=0x7fffefa01dc0) at astar.cpp:394
#12 0x00000000004cc5c0 in fpathExecute (psJob=0x7fffefa01dc0, psResult=0x7fffefa01d40) at fpath.c:623
#13 0x00000000004cb48f in fpathThreadFunc (data=0x0) at fpath.c:180

Issue migrated from trac:1983 at 2022-04-15 22:06:27 -0700

wzdev-ci commented 14 years ago

Per edited the issue description

wzdev-ci commented 14 years ago

Per commented


Infinite loop while copying something in another game:

(gdb) bt
#0  0x00000039656841dc in _wordcopy_fwd_aligned () from /lib64/libc.so.6
#1  0x00000039656828d2 in memmove () from /lib64/libc.so.6
#2  0x0000000000485649 in __copy_m<Vector2i> (__first=<value optimized out>, __last=<value optimized out>, __result=0x7ffee9ff9010)
    at /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/bits/stl_algobase.h:378
#3  std::__copy_move_a<false, Vector2i*, Vector2i*> (__first=<value optimized out>, __last=<value optimized out>, __result=0x7ffee9ff9010)
    at /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/bits/stl_algobase.h:397
#4  0x0000000000483ee6 in __copy_move_a2<false, Vector2i*, Vector2i*> (__position=..., __x=<value optimized out>, this=0x96e400)
    at /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/bits/stl_algobase.h:436
#5  copy<Vector2i*, Vector2i*> (__position=..., __x=<value optimized out>, this=0x96e400)
    at /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/bits/stl_algobase.h:468
#6  uninitialized_copy<Vector2i*, Vector2i*> (__position=..., __x=<value optimized out>, this=0x96e400)
    at /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/bits/stl_uninitialized.h:93
#7  uninitialized_copy<Vector2i*, Vector2i*> (__position=..., __x=<value optimized out>, this=0x96e400)
    at /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/bits/stl_uninitialized.h:117
#8  __uninitialized_copy_a<Vector2i*, Vector2i*, Vector2i> (__position=..., __x=<value optimized out>, this=0x96e400)
    at /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/bits/stl_uninitialized.h:257
#9  __uninitialized_move_a<Vector2i*, Vector2i*, std::allocator<Vector2i> > (__position=..., __x=<value optimized out>, this=0x96e400)
    at /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/bits/stl_uninitialized.h:267
#10 std::vector<Vector2i, std::allocator<Vector2i> >::_M_insert_aux (__position=..., __x=<value optimized out>, this=0x96e400)
    at /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/bits/vector.tcc:338
#11 0x0000000000484dcd in push_back (psMove=0x7fffefa01d48, psJob=0x7fffefa01dc0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.4/../../../../include/c++/4.4.4/bits/stl_vector.h:741
#12 fpathAStarRoute (psMove=0x7fffefa01d48, psJob=0x7fffefa01dc0) at astar.cpp:394
#13 0x00000000004cc5c0 in fpathExecute (psJob=0x7fffefa01dc0, psResult=0x7fffefa01d40) at fpath.c:623
#14 0x00000000004cb48f in fpathThreadFunc (data=0x0) at fpath.c:180
wzdev-ci commented 14 years ago

Cyp cyp@... commented


(In https://github.com/Warzone2100/warzone2100/commit/0dc1a58cd1f42a1a9140cbe2b1bc6229d18ed9b0) Fix infinite loop in pathfinding to nearest point when destination is not reachable.

Hopefully closes #1983.

wzdev-ci commented 14 years ago

cypr changed status from new to closed

wzdev-ci commented 14 years ago

cypr set resolution to fixed

wzdev-ci commented 14 years ago

cypr commented


(In [11173]) Fix infinite loop in pathfinding to nearest point when destination is not reachable.

Hopefully closes #1983.

From: Cyp cyp@example.com

wzdev-ci commented 14 years ago

Cyp cyp@... commented


In https://github.com/Warzone2100/warzone2100/commit/0dc1a58cd1f42a1a9140cbe2b1bc6229d18ed9b0:

#CommitTicketReference repository="" revision="0dc1a58cd1f42a1a9140cbe2b1bc6229d18ed9b0"
Fix infinite loop in pathfinding to nearest point when destination is not reachable.

Hopefully closes #1983.
wzdev-ci commented 14 years ago

Cyp cyp@... commented


In https://github.com/Warzone2100/warzone2100/commit/0dc1a58cd1f42a1a9140cbe2b1bc6229d18ed9b0:

#CommitTicketReference repository="" revision="0dc1a58cd1f42a1a9140cbe2b1bc6229d18ed9b0"
Fix infinite loop in pathfinding to nearest point when destination is not reachable.

Hopefully closes #1983.
wzdev-ci commented 12 years ago

cybersphinx changed milestone from 3.0 to unspecified

wzdev-ci commented 12 years ago

cybersphinx commented


Milestone 3.0 deleted