Arx Libertatis Bug Tracker
star_faded.png
Please log in to bookmark issues
bug_report_small.png
CLOSED  Crash report #218  -  [B5DFC6E4] Master DevIL SSE3 bug
Posted Mar 16, 2012 - updated Jun 16, 2012   Shortlink: http://arx.vg/218
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
icon_info.png This issue has been closed with status "Upstream" and resolution "Not determined".
Issue details
  • Type of issue
    Crash report
  • Status
     
    Upstream
  • Assigned to
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     Beliar
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Category
    Not determined
  • Resolution
    Not determined
  • Priority
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Targetted for
    icon_milestones.png Not determined
  • OS
    icon_customdatatype.png Not determined
  • Architecture
    icon_customdatatype.png Not determined
  • Fixed in
    icon_customdatatype.png Not determined
Issue description
Illegal instruction

GDB stack trace:
  1.  


Steps to reproduce this issue


I just started the game by typing ./arx into the shell.

#1
icon_reply.pngReply
Comment posted by
 Beliar
Mar 16, 10:43
A file was uploaded. arx.logicon_open_new.png This comment was attached:

30abbaa9-636e-40a4-9c97-cab75b5f45a7
#2
icon_reply.pngReply
Comment posted by
 Beliar
Mar 16, 10:43
A file was uploaded. cfg.iniicon_open_new.png This comment was attached:

30abbaa9-636e-40a4-9c97-cab75b5f45a7
#3
icon_reply.pngReply
Comment posted by
 Beliar
Mar 16, 10:43
A file was uploaded. crash.xmlicon_open_new.png This comment was attached:

30abbaa9-636e-40a4-9c97-cab75b5f45a7
#4
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Mar 16, 12:33
Hi, thanks for the report. Unfortunately it seems something went wrong with collecting the detailed crash information.

Does this happen every time or just this once? Maybe there will be more information if it happens again.
Did Arx Libertatis work before?

"Illegal instruction" could be caused by memory or stack corruption, but could also mean that your binary was compiled for the wrong architecture. Did you add any additional C/C++ flags like -march or -msse when compiling arx?
#5
icon_reply.pngReply
Comment posted by
 Beliar
Mar 16, 14:29
Hi, it always happens when i start the game. I never got it to run before, though i have only recently started to try to run ArxLibertatis.

I didn't add any additional flags. Just ran cmake and make, like the wiki said.

Also, it seems that the crash report didn't work completely because ptrace complained that it needs su rights. I ran arx with sudo and added the stacktrace that came up then.
#10
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Mar 17, 08:42
Also, it seems that the crash report didn't work completely because ptrace complained that it needs su rights.
Yes, that was a ubuntu-specific regression, but is fixed now - you should no longer need root for the crash reporter to function properly.

The crash appears to happen deep in DevIL. I assume you installed the libdevil1c2 package from the normal ubuntu repos? What version do you have?

Could you update the source and try again, but instead enable the debug mode? When compiling run $ cmake -DCMAKE_BUILD_TYPE=Debug instead of just cmake and then after making run arx using $ ./arx --debug=src

This will hopefully generate a lot of output on the console (and the same in arx.log). Post the updated arx.log, crash.xml and gdb backtrace.
#12
icon_reply.pngReply
Comment posted by
 Beliar
Mar 18, 08:26
A file was uploaded. arx.logicon_open_new.png
#13
icon_reply.pngReply
Comment posted by
 Beliar
Mar 18, 08:29
A file was uploaded. crash.xmlicon_open_new.png
#14
icon_reply.pngReply
Comment posted by
 Beliar
Mar 18, 08:31
Hi, I updated the files.

My DevIL version, according to the package manager, is 1.7.8-6build2.
#15
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Mar 23, 17:28
Hi, unfortunately we can't reproduce this issue. Both manual inspection of the code and and valgrind don't find anything that could cause this.

The only remaining explanation is that you devil library really uses instructions that are not supported by your CPU. If you are sure that your CPU is not too old to be supported by your Ubuntu distribution, you could try reporting this to the maintainers of the devil package.

Sorry that I can't be of more help here.

The issue was updated with the following change(s):
  • The status has been updated, from New to Not a bug.
  • This issue has been closed
  • The resolution has been updated, from Not determined to CAN'T REPRODUCE.
  • This issue's progression has been updated to 100 percent completed.
#16
icon_reply.pngReply
Comment posted by
 Beliar
Mar 24, 07:50
Hi,

you seem to be correct.

I tried compiling DevIL in debug mode. This made the game suddenly work. I noticed that it compiled without any extensions so I disabled SSE3 and compiled in release mode. With this the game also runs now.

So, yes, the problem was inside DevIL, not Arx.

Beliar
#20
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Jun 16, 03:46
Changing title as a lot of bugs have been marked as a duplicate of this