Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

little bug after called func free #2

Closed
EugeneBogush opened this issue Aug 12, 2017 · 0 comments
Closed

little bug after called func free #2

EugeneBogush opened this issue Aug 12, 2017 · 0 comments
Assignees

Comments

@EugeneBogush
Copy link

EugeneBogush commented Aug 12, 2017

eee@uuu:/opt/ss7/libtcap/tests$ ./encode
ret: 30
b�Hl��������0�

*** Error in `./encode': free(): invalid pointer: 0x00007ffeb548f5a0 ***

gdb:
#0 0x00007fc233800428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007fc23380202a in __GI_abort () at abort.c:89
#2 0x00007fc2338427ea in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7fc23395be98 "*** Error in `%s': %s: 0x%s ***\n")
at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007fc23384b37a in malloc_printerr (ar_ptr=, ptr=, str=0x7fc233958c6f "free(): invalid pointer",
action=3) at malloc.c:5006
#4 _int_free (av=, p=, have_lock=0) at malloc.c:3867
#5 0x00007fc23384f53c in __GI___libc_free (mem=) at malloc.c:2968
#6 0x0000000000400c48 in main () at encode.c:58
(gdb) Quit

@EugeneBogush EugeneBogush changed the title little bug in func free little bug after called func free Aug 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants