Re: [Powertop] [PATCH] Bug-fix:Segmentation fault with powertop --html
Alexandra Yates <alexandra.yates at linux.intel.com>
| Newsgroups | dev.linux.lists.powertop |
|---|---|
| Message-ID | <[email protected]> |
>> Julian can you test the patch please. thank you. AY.
> Thank you for the patch but unfortunately powertop still segfaults:
> $ powertop --html
> Loaded 750 prior measurements
> RAPL device for cpu 0
> RAPL device for cpu 0
> Preparing to take measurements
> unknown op '{'
> *** Error in `powertop': free(): invalid pointer: 0x000000000187cdef ***
> Taking 1 measurement(s) for a duration of 20 second(s) each.
> [1] 22616 segmentation fault (core dumped) powertop --html
>
> Backtrace:
> #0 0x00007f63d8c8e1af in std::string::assign(std::string const&) ()
> from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
> #1 0x0000000000410f31 in operator= (__str="C1", this=0x7fff65b509a0)
> at /usr/include/c++/4.8/bits/basic_string.h:547
> #2 report_display_cpu_cstates () at cpu/cpu.cpp:587
> #3 0x00000000004493f4 in one_measurement (seconds=seconds(a)entry=20,
> workload=workload(a)entry=0x7fff65b521b0 "") at main.cpp:221
> #4 0x00000000004496a6 in make_report (time=20,
> workload=workload(a)entry=0x7fff65b521b0 "",
> iterations=iterations(a)entry=1, file=file(a)entry=0x7fff65b511b0
> "powertop.html") at main.cpp:264 #5 0x000000000040741d in main
> (argc=2, argv=0x7fff65b532d8) at main.cpp:441
>
>
> Cheers,
> Julian
>
Julian, thank you for testing. The patches I sent you yesterday fixed the
previous segfault. I'm currently looking into another solution.
Thank you,
Alexandra.