project-navigation
Personal tools

Author Topic: my experience with debugging with addr2line  (Read 4834 times)

Offline MikeKle

  • Rookie
  • ***
  • Posts: 51
    • View Profile
my experience with debugging with addr2line
« on: November 28, 2010, 10:11:51 pm »
So, I got thsi in my console
Code: [Select]
ufo: src/common/dbuffer.c:494: dbuffer_extract: Assertion `buf->len == 0' failed.
./ufo[0x8188b64]
./ufo[0x8188bcf]
[0x61c400]
/lib/libc.so.6(abort+0x182)[0x64ae42]
/lib/libc.so.6(__assert_fail+0xf8)[0x6408e8]
./ufo[0x8138bce]
./ufo[0x8135f1c]
./ufo[0x8137f05]
./ufo[0x805c15f]
./ufo[0x805dc04]
./ufo[0x812add9]
./ufo[0x812b23d]
./ufo[0x81873b7]
/lib/libc.so.6(__libc_start_main+0xe7)[0x633ce7]
./ufo[0x804d751]
./ufo[0x8188b64]
./ufo[0x8188141]
./ufo[0x8188be2]
[0x61c400]
/lib/libc.so.6(abort+0x182)[0x64ae42]
/lib/libc.so.6(__assert_fail+0xf8)[0x6408e8]
./ufo[0x8138bce]
./ufo[0x8135f1c]
./ufo[0x8137f05]
./ufo[0x805c15f]
./ufo[0x805dc04]
./ufo[0x812add9]
./ufo[0x812b23d]
./ufo[0x81873b7]
/lib/libc.so.6(__libc_start_main+0xe7)[0x633ce7]
./ufo[0x804d751]
Error: Received signal 6.

tried to addr2line last few addresses

Code: [Select]
mikhail@mikhail-P5K-PRO:~/ufoai/ufoai$ addr2line -e ufo 0x804d751
??:0
mikhail@mikhail-P5K-PRO:~/ufoai/ufoai$ addr2line -e ufo 0x81873b7
/home/mikhail/ufoai/ufoai/src/ports/linux/linux_main.c:55
mikhail@mikhail-P5K-PRO:~/ufoai/ufoai$


Is it what I should to do to help? As Martin said only last two are usefull... :)

Happend upon killing last alien in a mission.

« Last Edit: November 28, 2010, 10:16:24 pm by MikeKle »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: my experience with debugging with addr2line
« Reply #1 on: November 29, 2010, 09:14:09 am »
you used it correctly - but the last two from the top of the message ;)

Offline MikeKle

  • Rookie
  • ***
  • Posts: 51
    • View Profile
Re: my experience with debugging with addr2line
« Reply #2 on: November 29, 2010, 10:22:32 am »
I knew there must be a something wrong! :)
Ok, now I armed and rdy :)

Offline MikeKle

  • Rookie
  • ***
  • Posts: 51
    • View Profile
Re: my experience with debugging with addr2line
« Reply #3 on: November 29, 2010, 08:21:37 pm »
Oky try No 2. Does it worth to post on tracker?

Code: [Select]

ufo: src/common/dbuffer.c:290: dbuffer_add: Assertion `e != ((void *)0)' failed.
./ufo[0x8188b64]
./ufo[0x8188bcf]
[0x67c400]
/lib/libc.so.6(abort+0x182)[0x3e5e42]
/lib/libc.so.6(__assert_fail+0xf8)[0x3db8e8]
./ufo[0x81386e7]
./ufo[0x8135d9b]
./ufo[0x8137ddc]
./ufo[0x8150c9b]
./ufo[0x8149852]
./ufo[0x81498a7]
./base/game.so(G_EventActorStats+0x3d)[0x26e6e4d]
./base/game.so(G_SendStats+0xab)[0x26eeeaf]
./base/game.so(+0x14c83)[0x26e0c83]
./base/game.so(+0x159db)[0x26e19db]
./base/game.so(+0x176b5)[0x26e36b5]
./base/game.so(G_ClientShoot+0xaa2)[0x26e4758]
./base/game.so(+0x22214)[0x26ee214]
./base/game.so(+0x222ef)[0x26ee2ef]
./base/game.so(+0x2244d)[0x26ee44d]
./base/game.so(G_ReactionFireOnMovement+0x11)[0x26ee482]
./base/game.so(G_ClientMove+0xc03)[0x26ed0d8]
./base/game.so(+0xdbe3)[0x26d9be3]
./base/game.so(AI_ActorThink+0x19c)[0x26d9feb]
./base/game.so(AI_Run+0xcc)[0x26da273]
./base/game.so(G_RunFrame+0x17b)[0x26ea026]
./ufo[0x8149d92]
./ufo[0x8149d55]
/usr/lib/libSDL-1.2.so.0(+0xe80e)[0xd0c80e]
/usr/lib/libSDL-1.2.so.0(+0x5670d)[0xd5470d]
/lib/libpthread.so.0(+0x5cc9)[0x656cc9]
/lib/libc.so.6(clone+0x5e)[0x4886be]
./ufo[0x8188b64]
./ufo[0x8188141]
./ufo[0x8188be2]
[0x67c400]
/lib/libc.so.6(abort+0x182)[0x3e5e42]
/lib/libc.so.6(__assert_fail+0xf8)[0x3db8e8]
./ufo[0x81386e7]
./ufo[0x8135d9b]
./ufo[0x8137ddc]
./ufo[0x8150c9b]
./ufo[0x8149852]
./ufo[0x81498a7]
./base/game.so(G_EventActorStats+0x3d)[0x26e6e4d]
./base/game.so(G_SendStats+0xab)[0x26eeeaf]
./base/game.so(+0x14c83)[0x26e0c83]
./base/game.so(+0x159db)[0x26e19db]
./base/game.so(+0x176b5)[0x26e36b5]
./base/game.so(G_ClientShoot+0xaa2)[0x26e4758]
./base/game.so(+0x22214)[0x26ee214]
./base/game.so(+0x222ef)[0x26ee2ef]
./base/game.so(+0x2244d)[0x26ee44d]
./base/game.so(G_ReactionFireOnMovement+0x11)[0x26ee482]
./base/game.so(G_ClientMove+0xc03)[0x26ed0d8]
./base/game.so(+0xdbe3)[0x26d9be3]
./base/game.so(AI_ActorThink+0x19c)[0x26d9feb]
./base/game.so(AI_Run+0xcc)[0x26da273]
./base/game.so(G_RunFrame+0x17b)[0x26ea026]
./ufo[0x8149d92]
./ufo[0x8149d55]
/usr/lib/libSDL-1.2.so.0(+0xe80e)[0xd0c80e]
/usr/lib/libSDL-1.2.so.0(+0x5670d)[0xd5470d]
/lib/libpthread.so.0(+0x5cc9)[0x656cc9]
/lib/libc.so.6(clone+0x5e)[0x4886be]
Error: Received signal 6.

./ufo[0x8188b64]
./ufo[0x8188bcf]
[0x67c400]
./ufo[0x817c5ee]
./ufo[0x817bf34]
./ufo[0x817c068]
./ufo[0x817c122]
./ufo[0x81610a1]
./ufo[0x807f60d]
./ufo[0x805edda]
./ufo[0x805dc27]
./ufo[0x812add9]
./ufo[0x812b23d]
./ufo[0x81873b7]
/lib/libc.so.6(__libc_start_main+0xe7)[0x3cece7]
./ufo[0x804d751]
./ufo[0x8188b64]
./ufo[0x8188141]
./ufo[0x8188be2]
[0x67c400]
./ufo[0x817c5ee]
./ufo[0x817bf34]
./ufo[0x817c068]
./ufo[0x817c122]
./ufo[0x81610a1]
./ufo[0x807f60d]
./ufo[0x805edda]
./ufo[0x805dc27]
./ufo[0x812add9]
./ufo[0x812b23d]
./ufo[0x81873b7]
/lib/libc.so.6(__libc_start_main+0xe7)[0x3cece7]
./ufo[0x804d751]
Error: Received signal 11.

mikhail@mikhail-P5K-PRO:~/ufoai/ufoai$ addr2line -e ufo 0x8188b64
/home/mikhail/ufoai/ufoai/src/ports/unix/unix_main.c:394
mikhail@mikhail-P5K-PRO:~/ufoai/ufoai$ addr2line -e ufo 0x8188bcf
/home/mikhail/ufoai/ufoai/src/ports/unix/unix_main.c:415


It's also happen upon finishing misison. Might be caused by the fact that an alien killed 50% of his  team with grenade...
« Last Edit: November 29, 2010, 08:41:29 pm by MikeKle »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: my experience with debugging with addr2line
« Reply #4 on: November 29, 2010, 08:39:38 pm »
this time it would be interesting to see the game.so location - because it looks like the crash came from there.

./base/game.so(G_EventActorStats+0x3d)[0x26e6e4d]

Offline MikeKle

  • Rookie
  • ***
  • Posts: 51
    • View Profile
Re: my experience with debugging with addr2line
« Reply #5 on: November 29, 2010, 08:46:56 pm »
Not like I feel like dumb, I know I am :)

Do you mean I should run something like
addr2line -e base/game.so 0x26e6e4d ?

##
Do you think I can guess once, what is better to find by some attributes in console output? :)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: my experience with debugging with addr2line
« Reply #6 on: November 29, 2010, 10:06:21 pm »
Do you mean I should run something like
addr2line -e base/game.so 0x26e6e4d ?

sorry - i should have mentioned that: yes.