From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============0380135980286649329==" MIME-Version: 1.0 From: Alexandra Yates Subject: Re: [Powertop] Segmentation fault with powertop --html Date: Mon, 19 May 2014 11:24:00 -0700 Message-ID: <63457.10.24.5.10.1400523840.squirrel@linux.intel.com> In-Reply-To: 20140519201948.03cb4f53@ilfaris To: powertop@lists.01.org List-ID: --===============0380135980286649329== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable > Hi, > >> > I get a segmentation fault with powertop 2.6 if I want to generate >> > an HTML report: >> > $ powertop --html >> > Loaded 750 prior measurements >> > RAPL device for cpu 0 >> > RAPL device for cpu 0 >> > Preparing to take measurements >> > unknown op '{' >> > [1] 5221 segmentation fault (core dumped) powertop --html >> > >> > Backtrace: >> > Core was generated by `powertop --html'. >> > Program terminated with signal 11, Segmentation fault. >> > #0 0x00007f9f6d52019f in std::string::assign(std::string const&) >> > () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 >> > Traceback (most recent call last): >> > File >> > "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20= -gdb.py", >> > line 59, in >> > from libstdcxx.v6.printers import register_libstdcxx_printers >> > File >> > "/usr/lib/x86_64-linux-gnu/../../share/gcc-4.9/python/libstdcxx/v6/pri= nters.py", >> > line 392 >> > raise ValueError, "Unsupported implementation for %s" % >> > str(node.type) ^ >> > SyntaxError: invalid syntax >> > (gdb) backtrace >> > #0 0x00007f9f6d52019f in std::string::assign(std::string const&) >> > () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 >> > #1 0x00000000004114ae in operator=3D (__str=3D..., >> > this=3D0x7fff595c2408) at /usr/include/c++/4.8/bits/basic_string.h:547 >> > #2 report_display_cpu_cstates () at cpu/cpu.cpp:529 >> > #3 0x0000000000449374 in one_measurement (seconds=3Dseconds(a)entry= =3D1, >> > workload=3Dworkload(a)entry=3D0x0) at main.cpp:221 >> > #4 0x00000000004495c2 in make_report (time=3D20, >> > workload=3Dworkload(a)entry=3D0x7fff595c3b30 "", >> > iterations=3Diterations(a)entry=3D1, file=3Dfile(a)entry=3D0x7fff595c2= b30 >> > "powertop.html") at main.cpp:254 #5 0x000000000040741d in main >> > (argc=3D2, argv=3D0x7fff595c4c58) at main.cpp:441 >> > > [..] >> >> Please give me more details on what platform are you executing this. I >> can't reproduce this. > > sure, I have a Lenovo Thinkpad X121e with an AMD E-450 APU: > $lspci-nn > > :( > 00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 14h > Processor Root Complex [1022:1510] > 00:01.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. > [AMD/ATI] Wrestler [Radeon HD 6320] [1002:9806] > 00:01.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] > Wrestler HDMI Audio [1002:1314] > 00:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 14h > Processor Root Port [1022:1512] > 00:06.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 14h > Processor Root Port [1022:1514] > 00:07.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 14h > Processor Root Port [1022:1515] > 00:11.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD/ATI] > SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] [1002:4391] > 00:12.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] > SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397] > 00:12.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] > SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396] > 00:13.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] > SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397] > 00:13.2 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD/ATI] > SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396] > 00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus > Controller [1002:4385] (rev 42) > 00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 > Azalia (Intel HDA) [1002:4383] (rev 40) > 00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD/ATI] > SB7x0/SB8x0/SB9x0 LPC host controller [1002:439d] (rev 40) > 00:14.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 > PCI to PCI Bridge [1002:4384] (rev 40) > 00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family > 12h/14h Processor Function 0 [1022:1700] (rev 43) > 00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family > 12h/14h Processor Function 1 [1022:1701] > 00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family > 12h/14h Processor Function 2 [1022:1702] > 00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family > 12h/14h Processor Function 3 [1022:1703] > 00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family > 12h/14h Processor Function 4 [1022:1704] > 00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family > 12h/14h Processor Function 6 [1022:1718] > 00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family > 12h/14h Processor Function 5 [1022:1716] > 00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family > 12h/14h Processor Function 7 [1022:1719] > 01:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N > 6200 [8086:4239] (rev 2c) > 02:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8151 v2.0 Gigabit > Ethernet [1969:1083] (rev c0) > 03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. > RTS5209 PCI Express Card Reader [10ec:5209] (rev 01) > > If that information does not help I could also try and bisect the problem. > > > Cheers, > Julian > this is useful, also what distribution? Thank you, Alexandra. --===============0380135980286649329==--