Arx Libertatis Bug Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Crash report #505  -  [178516F5] ARX_PATH_UpdateAllZoneInOutInside () Paths.cpp:265
Posted Jun 30, 2013 - updated Jul 07, 2018   Shortlink: http://arx.vg/505
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
icon_info.png This issue has been closed with status "Fixed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Crash report
  • Status
     
    Fixed
  • Assigned to
    Not assigned to anyone
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     Daniel Scharrer
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Category
    Not determined
  • Resolution
    RESOLVED
  • Priority
    Not determined
  • Reproducability
    Often
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • OS
    icon_customdatatype.png Linux
  • Architecture
    icon_customdatatype.png amd64
  • Fixed in
    icon_customdatatype.png Not determined
Issue description
Illegal instruction: illegal operand

GDB stack trace:
  1. [New LWP 10053]
  2. [New LWP 10051]
  3. [New LWP 10050]
  4. [Thread debugging using libthread_db enabled]
  5. Using host libthread_db library "/lib64/libthread_db.so.1".
  6. CrashHandlerPOSIX::handleCrash (this=0x1592fd0, signal=4, code=2) at /home/dscharrer/pro/arx/src/platform/crashhandler/CrashHandlerPOSIX.cpp:233
  7. 233 while(true) {
  8. [Current thread is 1 (Thread 0x7fb29332e740 (LWP 10049))]
  9. Id Target Id Frame
  10. 4 Thread 0x7fb290022700 (LWP 10050) "arx.movement" 0x0000003ce6ce6a6d in poll () at ../sysdeps/unix/syscall-template.S:81
  11. 3 Thread 0x7fb28ff21700 (LWP 10051) "Sound Update" 0x0000003ce781085d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
  12. 2 Thread 0x7fb28da1c700 (LWP 10053) "Pathfinder" 0x0000003ce781085d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
  13. * 1 Thread 0x7fb29332e740 (LWP 10049) "arx.movement" CrashHandlerPOSIX::handleCrash (this=0x1592fd0, signal=4, code=2) at /home/dscharrer/pro/arx/src/platform/crashhandler/CrashHandlerPOSIX.cpp:233
  14.  
  15. Thread 4 (Thread 0x7fb290022700 (LWP 10050)):
  16. #0 0x0000003ce6ce6a6d in poll () at ../sysdeps/unix/syscall-template.S:81
  17. No locals.
  18. #1 0x0000003515c53cf5 in poll (__timeout=1000, __nfds=1, __fds=0x7fb290021db0) at /usr/include/bits/poll2.h:46
  19. No locals.
  20. #2 snd1_pcm_wait_nocheck (pcm=0x21b19c0, timeout=1000) at /var/tmp/portage/media-libs/alsa-lib-1.0.27.1/work/alsa-lib-1.0.27.1/src/pcm/pcm.c:2418
  21. pfd = 0x7fb290021db0
  22. revents = 0
  23. npfds = 1
  24. err = <optimized out>
  25. err_poll = 1024
  26. __FUNCTION__ = "snd1_pcm_wait_nocheck"
  27. #3 0x0000003cec02fb45 in ALSAProc (ptr=0x2165620) at /var/tmp/portage/media-libs/openal-1.15.1/work/openal-soft-1.15.1/Alc/backends/alsa.c:507
  28. state = <optimized out>
  29. Device = 0x2165620
  30. data = 0x2144570
  31. areas = 0x21b4e70
  32. update_size = 1024
  33. num_updates = <optimized out>
  34. avail = 404
  35. commitres = <optimized out>
  36. offset = 0
  37. frames = 1024
  38. WritePtr = <optimized out>
  39. err = <optimized out>
  40. __FUNCTION__ = "ALSAProc"
  41. #4 0x0000003cec0279ca in StarterFunc (ptr=<optimized out>) at /var/tmp/portage/media-libs/openal-1.15.1/work/openal-soft-1.15.1/Alc/alcThread.c:96
  42. inf = 0x21b1480
  43. #5 0x0000003ce7808fc7 in start_thread (arg=0x7fb290022700) at pthread_create.c:308
  44. __res = <optimized out>
  45. pd = 0x7fb290022700
  46. now = <optimized out>
  47. unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, -1295020373897481064, 140735971727120, 140404896967104, 261567422464, 3, 1252574439373173912, -1261317039559379816}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
  48. not_first_call = 0
  49. robust = <optimized out>
  50. pagesize_m1 = <optimized out>
  51. sp = <optimized out>
  52. freesize = <optimized out>
  53. __PRETTY_FUNCTION__ = "start_thread"
  54. #6 0x0000003ce6cf04ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
  55. No locals.
  56.  
  57. Thread 3 (Thread 0x7fb28ff21700 (LWP 10051)):
  58. #0 0x0000003ce781085d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
  59. No locals.
  60. #1 0x00000000006abf80 in Thread::sleep (milliseconds=100) at /home/dscharrer/pro/arx/src/platform/Thread.cpp:250
  61. t = {tv_sec = 0, tv_nsec = 100000000}
  62. #2 0x00000000006d61de in SoundUpdateThread::run (this=0x21b2ed0) at /home/dscharrer/pro/arx/src/scene/GameSound.cpp:1857
  63. No locals.
  64. #3 0x00000000006abef0 in Thread::entryPoint (param=0x21b2ed0) at /home/dscharrer/pro/arx/src/platform/Thread.cpp:119
  65. thread = @0x21b2ed0: {_vptr.Thread = 0xad7290 <vtable for SoundUpdateThread 16>, thread = 140404895913728, priority = 0, started = true, threadName = "Sound Update"}
  66. #4 0x0000003ce7808fc7 in start_thread (arg=0x7fb28ff21700) at pthread_create.c:308
  67. __res = <optimized out>
  68. pd = 0x7fb28ff21700
  69. now = <optimized out>
  70. unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, -1295020373897481064, 261582040032, 140404895914432, 261567422464, 3, 1252623229664785560, -1261317039559379816}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
  71. not_first_call = 0
  72. robust = <optimized out>
  73. pagesize_m1 = <optimized out>
  74. sp = <optimized out>
  75. freesize = <optimized out>
  76. __PRETTY_FUNCTION__ = "start_thread"
  77. #5 0x0000003ce6cf04ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
  78. No locals.
  79.  
  80. Thread 2 (Thread 0x7fb28da1c700 (LWP 10053)):
  81. #0 0x0000003ce781085d in nanosleep () at ../sysdeps/unix/syscall-template.S:81
  82. No locals.
  83. #1 0x00000000006abf80 in Thread::sleep (milliseconds=10) at /home/dscharrer/pro/arx/src/platform/Thread.cpp:250
  84. t = {tv_sec = 0, tv_nsec = 10000000}
  85. #2 0x000000000045d2f4 in PathFinderThread::run (this=0x7ea6350) at /home/dscharrer/pro/arx/src/ai/PathFinderManager.cpp:335
  86. eb = 0xc82a20 <DefaultBkg>
  87. pathfinder = {radius = 0, height = 0, heuristic = 0.5, map_s = 2842, map_d = 0x733f2f0, slight_c = 1200, slight_l = 0xeb0700 <GLight>}
  88. #3 0x00000000006abef0 in Thread::entryPoint (param=0x7ea6350) at /home/dscharrer/pro/arx/src/platform/Thread.cpp:119
  89. thread = @0x7ea6350: {_vptr.Thread = 0xad2e10 <vtable for PathFinderThread 16>, thread = 140404857095936, priority = 0, started = true, threadName = "Pathfinder"}
  90. #4 0x0000003ce7808fc7 in start_thread (arg=0x7fb28da1c700) at pthread_create.c:308
  91. __res = <optimized out>
  92. pd = 0x7fb28da1c700
  93. now = <optimized out>
  94. unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, -1295020373897481064, 261582040032, 140404857096640, 99228192, 3, 1252619273463035032, -1261317039559379816}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
  95. not_first_call = 0
  96. robust = <optimized out>
  97. pagesize_m1 = <optimized out>
  98. sp = <optimized out>
  99. freesize = <optimized out>
  100. __PRETTY_FUNCTION__ = "start_thread"
  101. #5 0x0000003ce6cf04ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113
  102. No locals.
  103.  
  104. Thread 1 (Thread 0x7fb29332e740 (LWP 10049)):
  105. #0 CrashHandlerPOSIX::handleCrash (this=0x1592fd0, signal=4, code=2) at /home/dscharrer/pro/arx/src/platform/crashhandler/CrashHandlerPOSIX.cpp:233
  106. arguments = "\003\000\000\000\000\000\000\000\060\337\341\001\000\000\000\000`K\236\001\000\000\000\000@|\233\001\000\000\000\000(\307\020\006\000\000\000\000\001\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000\200B\232\245\377\177\000\000p\357\001\222\001\000\000\000\300\241\212\001\000\000\000\000\a\000\000\000\000\000\000\000\310\251\343\001\000\000\000\000\220B\232\245\377\177\000\000\032\230V\000\000\000\000\000\260\275\232\001\a\000\000\000\300\251\343\001\000\000\000\000`_\301\003\000\000\000\000\310\251\343\001\000\000\000\000\260B\232\245\377\177\000\000\250uK\000\000\000\000\000\220[\232\245\a\000\000\000\300\251\343\001\000\000\000\000\200D\232\245\377\177\000\000\177\025`", '\000' <repeats 13 times>...
  107. #1 0x00000000006b1a0b in signalHandler (signal=4, info=0x7fffa59a44b0, context=0x7fffa59a4380) at /home/dscharrer/pro/arx/src/platform/crashhandler/CrashHandlerPOSIX.cpp:48
  108. No locals.
  109. #2 <signal handler called>
  110. No locals.
  111. #3 0x000000000045e8ff in ARX_PATH_UpdateAllZoneInOutInside () at /home/dscharrer/pro/arx/src/ai/Paths.cpp:265
  112. p = 0x7e964c0
  113. op = 0x0
  114. i = 167
  115. io = 0x50fa230
  116. tt = 32
  117. count = 167
  118. f = 50
  119. #4 0x00000000004b5b63 in ArxGame::Render (this=0x1594150) at /home/dscharrer/pro/arx/src/core/ArxGame.cpp:2006
  120. max_framedelay = 100
  121. #5 0x00000000004ae7fc in ArxGame::Render3DEnvironment (this=0x1594150) at /home/dscharrer/pro/arx/src/core/ArxGame.cpp:624
  122. No locals.
  123. #6 0x00000000004ae787 in ArxGame::Run (this=0x1594150) at /home/dscharrer/pro/arx/src/core/ArxGame.cpp:599
  124. No locals.
  125. #7 0x00000000004bf4eb in runGame () at /home/dscharrer/pro/arx/src/core/Core.cpp:727
  126. No locals.
  127. #8 0x00000000004dc77c in main (argc=3, argv=0x7fffa59a5b98) at /home/dscharrer/pro/arx/src/core/Startup.cpp:200
  128. status = (anonymous namespace)::RunProgram


Steps to reproduce this issue
Got this a few times after loading in the dwarven area - does not happen always, but often enough to notice

#2
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Jun 30, 09:59
A file was uploaded. arx.logicon_open_new.png This comment was attached:

arxcrash-10049-3510140529
#4
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Jun 30, 09:59
A file was uploaded. cfg.iniicon_open_new.png This comment was attached:

arxcrash-10049-3510140529
#5
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Jun 30, 09:59
A file was uploaded. crash.xmlicon_open_new.png This comment was attached:

arxcrash-10049-3510140529
#6
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Jun 30, 10:01
This only happens in debug mode:

  1. if(JUST_RELOADED && (p->name == "ingot_maker" || p->name == "mauld_user")) {
  2. ARX_DEAD_CODE(); // TODO remove JUST_RELOADED global
  3. }


Not so dead code after all smileys/4.png
#7
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Jun 30, 10:06
  1. (gdb) p p->name
  2. $1 = "mauld_user"
#11
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Dec 02, 20:10
Save file to reproduce the issue available in Crash report 931 - [9489FE40] arx.exe!ARX_PATH_UpdateAllZoneInOutInside() [paths.cpp:223].