From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3972121531529440678==" MIME-Version: 1.0 From: Julian Wollrath Subject: Re: [Powertop] Segmentation fault with powertop --html Date: Mon, 19 May 2014 20:19:48 +0200 Message-ID: <20140519201948.03cb4f53@ilfaris> In-Reply-To: 61939.10.24.5.10.1400521059.squirrel@linux.intel.com To: powertop@lists.01.org List-ID: --===============3972121531529440678== 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/prin= ters.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=3D= 1, > > 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=3D0x7fff595c2b= 30 > > "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 P= rocessor 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] Wrestle= r HDMI Audio [1002:1314] 00:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 14h Pr= ocessor Root Port [1022:1512] 00:06.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 14h Pr= ocessor Root Port [1022:1514] 00:07.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 14h Pr= ocessor Root Port [1022:1515] 00:11.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x= 0/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 Co= ntroller [1002:4385] (rev 42) 00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 A= zalia (Intel HDA) [1002:4383] (rev 40) 00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8= x0/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/1= 4h Processor Function 0 [1022:1700] (rev 43) 00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 12h/1= 4h Processor Function 1 [1022:1701] 00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 12h/1= 4h Processor Function 2 [1022:1702] 00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 12h/1= 4h Processor Function 3 [1022:1703] 00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 12h/1= 4h Processor Function 4 [1022:1704] 00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 12h/1= 4h Processor Function 6 [1022:1718] 00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 12h/1= 4h Processor Function 5 [1022:1716] 00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 12h/1= 4h Processor Function 7 [1022:1719] 01:00.0 Network controller [0280]: Intel Corporation Centrino Advanced-N 62= 00 [8086:4239] (rev 2c) 02:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8151 v2.0 Gigabit Et= hernet [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 --===============3972121531529440678==--