[ENet-discuss] freeing bug causing crash in enet_protocol_remove_sent_reliable_command

ketmar ketmar at ketmar.no-ip.org
Mon Jun 10 23:39:03 PDT 2013


On Tue, 11 Jun 2013 17:28:28 +1200
David Frampton <davidframpton at majicjungle.com> wrote:

it looks strange. i can suggest to rebuild enet with -O0 -g and try to
run your app with valgrind: it may trace the origins of this pointer.

note that valgrind can 'hide' crash conditions (i.e. app can go past
the 'crash point'), so be careful and watch valgrind logs
(--log-file=xxx)

btw: what version of enet are you using? is it stock 1.3.7 or 1.3.8?

also, make sure you aren't accidentally free/reuse either ENetPacket or
it's 'data' field after passing it to enet_peer_send.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20130611/c8a4bda9/attachment.pgp>


More information about the ENet-discuss mailing list