Results 1 to 10 of 28

Thread: Pro tips for hooking up the function

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #21
    Private Whiskas's Avatar
    Join Date
    Jan 2015
    Posts
    84
    Thanks
    69
    Thanked 20 Times in 17 Posts
    Quote Originally Posted by kung foo man View Post
    Do you have a new core dump? The crash should be on another address now, since the old function is overwritten (just to check if it was really hooked).
    Yes I do:

    Code:
    Core was generated by `./cod2_lnxded_1_0 +set net_port 28960 +set dedicated 2 +set fs_game whiskys.lai'.
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0  0xb76d9b42 in ?? ()
    (gdb) bt
    #0  0xb76d9b42 in ?? ()
    #1  0x00000057 in ?? ()
    #2  0x00000057 in ?? ()
    #3  0xbff2a668 in ?? ()
    #4  0x0808f697 in ?? ()
    #5  0x0808fa6f in ?? ()
    #6  0x080943e1 in ?? ()
    #7  0x08061779 in ?? ()
    #8  0x08062451 in ?? ()
    #9  0x0806251d in ?? ()
    #10 0x080d2b22 in ?? ()
    #11 0xb73e7a83 in __libc_start_main (main=0x80d2990, argc=12, argv=0xbff2ecc4,
        init=0x8049b90, fini=0x8139b50, rtld_fini=0xb7782180 <_dl_fini>,
        stack_end=0xbff2ecbc) at libc-start.c:287
    #12 0x0804a4d1 in ?? ()
    Not sure how to find such address in libcod's file

    Edit: Hmm, core dump says its made before your code was implemented (It was voron's version without your if statements). Not sure if core file is overwritten at every crash.
    Last edited by Whiskas; 8th May 2016 at 17:43. Reason: I was probably wrong.

Posting Permissions

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