Jump to content
  • 0

Segmentation fault


trickzjen23

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  53
  • Reputation:   0
  • Joined:  11/25/11
  • Last Seen:  

Hello devs,

I hope you guys would still be able to help me since rAthena is forked from eAthena. My servers crashes and this is what the gdb says.

 

This is what it says

Quote

 

Program terminated with signal 11, Segmentation fault.
#0  0x00000000004fce27 in battle_calc_damage (src=0x7f4fef043514,
    bl=0x7f4fe9f3213c, d=0x7fff740ed8c0, damage=3278, skill_num=8009,
    skill_lv=<value optimized out>) at battle.c:350
350                     if(!skill_db[skill_num].pneumaIgnore)
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-57.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-7.el6.x86_64 mysql-libs-5.1.73-7.el6.x86_64 nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 openssl-1.0.1e-48.el6_8.3.x86_64 pcre-7.8-7.el6.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb)

 

 

 
My battle.c line 350 is this
Quote

 

        if(!skill_db[skill_num].pneumaIgnore)
        if( sc->data[SC_PNEUMA] && (flag&(BF_MAGIC|BF_LONG)) == BF_LONG )
        {
            d->dmg_lv = ATK_BLOCK;
            return 0;
        }

 

How can i prevent it to crash? please help and thank you in advance!

Edited by trickzjen23
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

if(skill_num > 0 && !skill_db[skill_num].pneumaIgnore)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...