From: Julian Wollrath <jwollrath at web.de>
To: powertop@lists.01.org
Subject: Re: [Powertop] Segmentation fault with powertop --html
Date: Mon, 19 May 2014 20:19:48 +0200 [thread overview]
Message-ID: <20140519201948.03cb4f53@ilfaris> (raw)
In-Reply-To: 61939.10.24.5.10.1400521059.squirrel@linux.intel.com
[-- Attachment #1: Type: text/plain, Size: 5241 bytes --]
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 <module>
> > from libstdcxx.v6.printers import register_libstdcxx_printers
> > File
> > "/usr/lib/x86_64-linux-gnu/../../share/gcc-4.9/python/libstdcxx/v6/printers.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= (__str=...,
> > this=0x7fff595c2408) 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=seconds(a)entry=1,
> > workload=workload(a)entry=0x0) at main.cpp:221
> > #4 0x00000000004495c2 in make_report (time=20,
> > workload=workload(a)entry=0x7fff595c3b30 "",
> > iterations=iterations(a)entry=1, file=file(a)entry=0x7fff595c2b30
> > "powertop.html") at main.cpp:254 #5 0x000000000040741d in main
> > (argc=2, argv=0x7fff595c4c58) 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
next reply other threads:[~2014-05-19 18:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-19 18:19 Julian Wollrath [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-05-19 21:25 [Powertop] Segmentation fault with powertop --html Julian Wollrath
2014-05-19 18:24 Alexandra Yates
2014-05-19 17:37 Alexandra Yates
2014-05-17 9:55 Julian Wollrath
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140519201948.03cb4f53@ilfaris \
--to=powertop@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.