PDA

View Full Version : Segmental Fault



RobsoN
15th December 2013, 20:46
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 ....

kung foo man
15th December 2013, 21:42
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/

Mitch
16th December 2013, 08:19
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.

RobsoN
16th December 2013, 13:27
@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.

Mitch
16th December 2013, 16:28
@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/commit/2d7f29f862aa0b155015a06c2c4d959ed35ee6dc
(there is a problem i need to fix, the new message is too long, also fixed, committing now)
https://github.com/M-itch/libcod/commit/1a1504e4bd08fb605ae467b1ae25fc5a42ea76cd

Mitch
17th December 2013, 17:06
It should be fixed now.
https://github.com/M-itch/libcod/commit/2d7f29f862aa0b155015a06c2c4d959ed35ee6dc
(there is a problem i need to fix, the new message is too long, also fixed, committing now)
https://github.com/M-itch/libcod/commit/1a1504e4bd08fb605ae467b1ae25fc5a42ea76cd

The new bug is causing crashes.



˙˙˙˙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

Mitch
17th December 2013, 17:33
(I am double posting, because i can't edit my post above correctly)

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



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.