From: Alexandra Yates <alexandra.yates at linux.intel.com>
To: powertop@lists.01.org
Subject: Re: [Powertop] close_display() sigsegv
Date: Wed, 19 Nov 2014 20:13:34 -0800 [thread overview]
Message-ID: <58593.10.24.5.197.1416456814.squirrel@linux.intel.com> (raw)
In-Reply-To: CAG27Bk39ET-Ccz0ahfufUwHgxQiWKj=MCioVx+3ztomLtwXxng@mail.gmail.com
[-- Attachment #1: Type: text/plain, Size: 4797 bytes --]
Hi Sami,
> Hello,
>
> It might be good idea to check before final release if the issue
> reported in this email can be reproduced.
>
> $ echo $CC
> clang
> $ echo $CFLAGS
> -O0 -g -ggdb -Wall -Wextra -pedantic -fno-omit-frame-pointer
> $ echo $LD
> ld.gold
>
> After compiling the version above I always get crash.
>
> $ git describe
> v2.7-rc1-1-g959227c
>
> $ ./src/powertop
> ....
> Leaving PowerTOPtimates do 21 measurement(s) connected to battery only
> Segmentation fault (core dumped)
>
> It looks like commit 706bc28ff536f4f53fdf6e24178b9e3bac67d53f might
> have something to do with the issue.
>
> (gdb) bt full
> #0 0x00007f59287ed200 in std::string::compare(std::string const&)
> const () from /usr/lib/libstdc++.so.6
> No symbol table info available.
> Python Exception <class 'gdb.error'> There is no member named
> _M_dataplus.:
> Python Exception <class 'gdb.error'> There is no member named
> _M_dataplus.:
> #1 0x000000000041066d in std::operator< <char,
> std::char_traits<char>, std::allocator<char> > (__lhs=, __rhs=)
> at
> /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/bits/basic_string.h:2590
> No locals.
> Python Exception <class 'gdb.error'> There is no member named
> _M_dataplus.:
> Python Exception <class 'gdb.error'> There is no member named
> _M_dataplus.:
> #2 0x000000000040f681 in std::less<std::string>::operator()
> (this=0x6c3268 <tab_windows>, __x=, __y=)
> at
> /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/bits/stl_function.h:371
> No locals.
> #3 0x0000000000411817 in std::_Rb_tree<std::string,
> std::pair<std::string const, tab_window*>,
> std::_Select1st<std::pair<std::string const, tab_window*> >,
> std::less<std::string>, std::allocator<std::pair<std::string const,
> tab_window*> > >::_M_lower_bound (
> Python Exception <class 'gdb.error'> There is no member named
> _M_dataplus.:
> this=0x6c3268 <tab_windows>, __x=0x5828990, __y=0x6c3270
> <tab_windows+8>, __k=)
> at
> /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/bits/stl_tree.h:1261
> No locals.
> #4 0x00000000004117c1 in std::_Rb_tree<std::string,
> std::pair<std::string const, tab_window*>,
> std::_Select1st<std::pair<std::string const, tab_window*> >,
> std::less<std::string>, std::allocator<std::pair<std::string const,
> tab_window*> > >::lower_bound (
> Python Exception <class 'gdb.error'> There is no member named
> _M_dataplus.:
> this=0x6c3268 <tab_windows>, __k=)
> at
> /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/bits/stl_tree.h:927
> No locals.
> Python Exception <class 'gdb.error'> There is no member named
> _M_dataplus.:
> #5 0x00000000004107ed in std::map<std::string, tab_window*,
> std::less<std::string>, std::allocator<std::pair<std::string const,
> tab_window*> > >::lower_bound (this=0x6c3268 <tab_windows>, __x=)
> at
> /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/bits/stl_map.h:902
> No locals.
> Python Exception <class 'gdb.error'> There is no member named
> _M_dataplus.:
> #6 0x000000000040f0a2 in std::map<std::string, tab_window*,
> std::less<std::string>, std::allocator<std::pair<std::string const,
> tab_window*> > >::operator[] (this=0x6c3268 <tab_windows>, __k=)
> at
> /usr/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../include/c++/4.9.2/bits/stl_map.h:496
> __i = {first = <error reading variable>
> #7 0x000000000040e03a in close_display () at display.cpp:93
> i = 5
> #8 0x0000000000416c2e in clean_shutdown () at main.cpp:378
> No locals.
> #9 0x0000000000417477 in main (argc=1, argv=0x7fff77810778) at
> main.cpp:519
> option_index = 0
> c = -1
> filename =
> "\210\a\201w\377\177\000\000\b-.)Y\177\000\000\000\000\000\000\000\000\000\000\303Z\355'Y\177\000\000\020\220i\002\000\000\000\000\320\366\200w\377\177\000\000x\a\201w\377\177\000\000e\356\f)Y\177\000\000\350\003\000\000@\000\000\000(a)B\017\000\000\312\232;/proc/net/psched",
> '\000' <repeats 2680 times>...
> workload = '\000' <repeats 4095 times>
> iterations = 1
> auto_tune = 0
>
> --
> Sami Kerola
> http://www.iki.fi/kerolasa/
> _______________________________________________
> PowerTop mailing list
> PowerTop(a)lists.01.org
> https://lists.01.org/mailman/listinfo/powertop
>
Thank you for sending this bug report. Yes I want to get this workout
before the release.
I'm trying to reproduce this error but I cant get it to show me the seg
fault.
Please help me review the steps to compile powertop using clang.
Thank you,
Alexandra.
next reply other threads:[~2014-11-20 4:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-20 4:13 Alexandra Yates [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-11-21 6:26 [Powertop] close_display() sigsegv Sami Kerola
2014-11-21 1:06 Alexandra Yates
2014-11-20 21:51 Sami Kerola
2014-11-20 19:47 Alexandra Yates
2014-11-20 15:02 Sami Kerola
2014-11-19 1:43 Joe Konno
2014-11-18 22:29 Sami Kerola
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=58593.10.24.5.197.1416456814.squirrel@linux.intel.com \
--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.