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

please add build doc #4

Open
curu opened this issue Feb 16, 2023 · 0 comments
Open

please add build doc #4

curu opened this issue Feb 16, 2023 · 0 comments

Comments

@curu
Copy link

curu commented Feb 16, 2023

please add doc on how to build on centos or ubuntu.

duanery added a commit that referenced this issue Mar 27, 2024
*** Error in `./perf-prof': double free or corruption (!prev): 0x0000000001691040 ***

(gdb) bt
 #0  0x00007fc6f717d3a7 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:55
 #1  0x00007fc6f717ea98 in __GI_abort () at abort.c:90
 #2  0x00007fc6f71bfef7 in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7fc6f72d2418 "*** Error in `%s': %s: 0x%s ***\n")
    at ../sysdeps/unix/sysv/linux/libc_fatal.c:196
 #3  0x00007fc6f71c86e9 in malloc_printerr (ar_ptr=0x7fc6f750f760 <main_arena>, ptr=<optimized out>, str=0x7fc6f72d2540 "double free or corruption (!prev)", action=3)
    at malloc.c:4967
 #4  _int_free (av=0x7fc6f750f760 <main_arena>, p=<optimized out>, have_lock=0) at malloc.c:3843
 #5  0x000000000041b3bb in perf_timespec_init (dev=dev@entry=0x169cec0) at convert.c:375
 #6  0x0000000000412cc4 in prof_dev_enable (dev=dev@entry=0x169cec0) at monitor.c:1820

(gdb) f 5
 #5  0x000000000041b3bb in perf_timespec_init (dev=dev@entry=0x169cec0) at convert.c:375

(gdb) info locals
 evlist = <optimized out>
 map = <optimized out>
 tidmap = 0x16686b0
 e = 0x1691040  ==> double free
 evt = 0x0

When prof_dev_open_cpu_thread_map() returns NULL, env has been freed.

Signed-off-by: duanery <corcpp@foxmail.com>
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

1 participant