Compilation problem.

A free software implementation of Prince of Persia 1.

Moderator: English Moderator Team

User avatar
oitofelix
Sultan
Sultan
Posts: 185
Joined: February 17th, 2016, 1:59 pm
Contact:

Re: Compilation problem.

Postby oitofelix » March 10th, 2017, 5:26 pm

Giorgos wrote:In case you prefer another debugger, or giving any advanced commands, just tell me.


Thanks for the report. However, it only shows the specific location of the crash (for which no debugging symbols are available). Could you please issue a "bt" command to get a backtrace right after the crash?

Code: Select all

 88888  FFFFF Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
 8   8  F     http://oitofelix.freeshell.org/mininim/
 88888  FFFF  mailto:oitofelix@gnu.org
 8   8  F     irc://chat.freenode.org/oitofelix
 88888  F     Please, support my work: http://oitofelix.freeshell.org/funding.html

User avatar
Giorgos
Efendi
Efendi
Posts: 15
Joined: May 29th, 2016, 1:58 am

Re: Compilation problem.

Postby Giorgos » March 10th, 2017, 5:50 pm

oitofelix wrote: Could you please issue a "bt" command to get a backtrace right after the crash?

Of course! ;)
Giving "bt", returns this:

Code: Select all

(gdb) bt
#0  0x00007fffe9590034 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#1  0x00007fffe958d573 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#2  0x00007fffe95d54a3 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#3  0x00007fffe95ea17b in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#4  0x00007fffe8af0d88 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#5  0x00007fffe8ae34b4 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#6  0x00007fffe8ae41d0 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#7  0x00007fffe8ae45c3 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#8  0x00007fffe8a6ae67 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#9  0x00007fffe8a8d544 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#10 0x00007fffe83c5c7a in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#11 0x00007fffe837587b in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#12 0x00007fffe818f99b in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#13 0x00007fffe79d19c3 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#14 0x00007fffe79d1b4d in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#15 0x00007fffe79d1c2d in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#16 0x00007fffe77fc40c in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#17 0x00007fffe7934222 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#18 0x00007fffe869e332 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#19 0x00007fffe86b1d9e in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#20 0x00007fffe868a15c in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#21 0x00007fffe86b2a97 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#22 0x00007fffe869b93e in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#23 0x00007fffe869ba66 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#24 0x00007fffe959600b in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#25 0x00007fffe9407059 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#26 0x00007fffe774f612 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#27 0x00007fffffffe030 in ?? ()
#28 0x00007fffe95f9281 in ?? () from /usr/lib/x86_64-linux-gnu/dri/fglrx_dri.so
#29 0x00007fffffffe030 in ?? ()
#30 0x00007ffff7deafe8 in _dl_fini () at dl-fini.c:257
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)

And now :?:
I grow old, ever learning many things. Solon.

User avatar
oitofelix
Sultan
Sultan
Posts: 185
Joined: February 17th, 2016, 1:59 pm
Contact:

Re: Compilation problem.

Postby oitofelix » March 10th, 2017, 6:19 pm

Giorgos wrote:Of course! ;)


Thanks! :)

Giorgos wrote:Giving "bt", returns this: [...]


As GDB says, it seems the stack has been corrupted, what makes the backtrace useless.

Giorgos wrote:And now :?:


How are you exiting MININIM? Sending a SIGINT (Ctrl+C at its terminal REPL)? Pressing Ctrl+Q? Closing its window?

Are you familiar with GDB and debugging in general? Just before you exit MININIM, could you set a breakpoint at the end of function 'play_anim' and step from there until you reach the segmentation fault and then post the gdb.txt log file here?

Code: Select all

 88888  FFFFF Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
 8   8  F     http://oitofelix.freeshell.org/mininim/
 88888  FFFF  mailto:oitofelix@gnu.org
 8   8  F     irc://chat.freenode.org/oitofelix
 88888  F     Please, support my work: http://oitofelix.freeshell.org/funding.html

User avatar
Giorgos
Efendi
Efendi
Posts: 15
Joined: May 29th, 2016, 1:58 am

Re: Compilation problem.

Postby Giorgos » March 10th, 2017, 6:40 pm

oitofelix wrote:Pressing Ctrl+Q?

Yes. Pressing ^Q from inside the game (while fullscreen).
oitofelix wrote:Are you familiar with GDB and debugging in general?

Ehm...well...so and so!
I'm familiar with simple tasks with gdb (I was using it at scummvm testing), but that was long ago and I never was an expert of any kind with gdb. :lol:
oitofelix wrote:Just before you exit MININIM, could you set a breakpoint at the end of function 'play_anim' and step from there until you reach the segmentation fault and then post the gdb.txt log file here?

Let me take a look at the documentation and I'll be back! :)
I grow old, ever learning many things. Solon.

User avatar
oitofelix
Sultan
Sultan
Posts: 185
Joined: February 17th, 2016, 1:59 pm
Contact:

Re: Compilation problem.

Postby oitofelix » March 10th, 2017, 7:05 pm

Giorgos wrote:I'm familiar with simple tasks with gdb (I was using it at scummvm testing), but that was long ago and I never was an expert of any kind with gdb. :lol:


Great! MININIM doesn't require more than that. ;)

Giorgos wrote:Let me take a look at the documentation and I'll be back! :)


Thanks!

Code: Select all

 88888  FFFFF Bruno Félix Rezende Ribeiro (oitofelix) [0x28D618AF]
 8   8  F     http://oitofelix.freeshell.org/mininim/
 88888  FFFF  mailto:oitofelix@gnu.org
 8   8  F     irc://chat.freenode.org/oitofelix
 88888  F     Please, support my work: http://oitofelix.freeshell.org/funding.html


Return to “MININIM”

Who is online

Users browsing this forum: No registered users and 1 guest