Results 1 to 7 of 7

Thread: Segmental Fault

  1. #1
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts

    Segmental Fault

    Hello, I connected libcod 1.0 and q3dirtravfix into 1 preload and after 5-20 minutes server crashes with that error:

    Data: n˙˙˙˙ipAuthorize -899567589 accept t
    ./start.sh: line 1: 2173 Segmentation fault LD_PRELOAD="/home/cod2/server/libcod2_1_0.so /home/cod2/server/q3dirtravfix.so" ./cod2_lnxded +set dedicated "2" +set....

    Regards RobsoN.

    *EDIT*
    Also without q3dirtravfix..

    Data: e˙˙˙˙ipAuthorize -1569434522 accept t
    ./startupline.sh: line 1: 2494 Segmentation fault LD_PRELOAD="/home/cod2/zombie_20/libcod2_1_0.so" ./cod2_lnxded ....
    Last edited by RobsoN; 15th December 2013 at 20:50.
    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    The ipAuthorize might have something to do with Mitch's cracked changes?

    Does it also crash with current precompiled versions from here? http://dbg.killtube.org/libcod/libs/
    timescale 0.01

  3. #3
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by RobsoN View Post
    Hello, I connected libcod 1.0 and q3dirtravfix into 1 preload and after 5-20 minutes server crashes with that error:

    Data: n˙˙˙˙ipAuthorize -899567589 accept t
    ./start.sh: line 1: 2173 Segmentation fault LD_PRELOAD="/home/cod2/server/libcod2_1_0.so /home/cod2/server/q3dirtravfix.so" ./cod2_lnxded +set dedicated "2" +set....

    Regards RobsoN.

    *EDIT*
    Also without q3dirtravfix..

    Data: e˙˙˙˙ipAuthorize -1569434522 accept t
    ./startupline.sh: line 1: 2494 Segmentation fault LD_PRELOAD="/home/cod2/zombie_20/libcod2_1_0.so" ./cod2_lnxded ....
    1.0 is untested. Maybe i got the address for returning the call wrong. I will try later to fix this.

    Edit: it seems it crashes on SV_ConnectionlessPacket.
    Last edited by Mitch; 16th December 2013 at 08:35.

  4. The Following User Says Thank You to Mitch For This Useful Post:

    RobsoN (16th December 2013)

  5. #4
    Private First Class RobsoN's Avatar
    Join Date
    Jan 2013
    Location
    /home/cod2/
    Posts
    230
    Thanks
    119
    Thanked 95 Times in 64 Posts
    @Kung, yes I'm using the newiest version of Mitch's libcod2 1.0 version.

    Thanks you Mitch for releasing 1.0 version of libcod and let me know if you will do any patch.
    "Don't worry if your code doesn't work correctly - if everything worked, you would not work" ~Mosher's right

  6. #5
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by RobsoN View Post
    @Kung, yes I'm using the newiest version of Mitch's libcod2 1.0 version.

    Thanks you Mitch for releasing 1.0 version of libcod and let me know if you will do any patch.
    It should be fixed now.
    https://github.com/M-itch/libcod/com...4d959ed35ee6dc
    (there is a problem i need to fix, the new message is too long, also fixed, committing now)
    https://github.com/M-itch/libcod/com...25fc5a42ea76cd
    Last edited by Mitch; 16th December 2013 at 17:41.

  7. The Following User Says Thank You to Mitch For This Useful Post:

    RobsoN (17th December 2013)

  8. #6
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Mitch View Post
    It should be fixed now.
    https://github.com/M-itch/libcod/com...4d959ed35ee6dc
    (there is a problem i need to fix, the new message is too long, also fixed, committing now)
    https://github.com/M-itch/libcod/com...25fc5a42ea76cd
    The new bug is causing crashes.

    Code:
    ˙˙˙˙ipAuthorize 1214156784 accept KEY_IS_GOOD 0 7fb20397b8b9fdf772a58585da4e29c7
    WARNING: bad command byte 7 for client 2
    WARNING: bad command byte 7 for client 12
    Segmentation fault

  9. #7
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    (I am double posting, because i can't edit my post above correctly)

    I tried fixing the bad command byte error by doing this:

    PHP Code:
    msg->data d;
    msg->cursize strlen(msg->data)+1// fix length to read
    printf("%s\n"msg->data); 
    But that doesn't work i keep getting the warning message. Maybe i need to keep the original length. For now it is better to use other cracked methods. This one is still unstable.
    Last edited by Mitch; 17th December 2013 at 17:51.

  10. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (17th December 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •