All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ganapati Bhat <life.mytake at gmail.com>
To: powertop@lists.01.org
Subject: [Powertop] Seg Fault due to function format_watts in file src/lib.cpp
Date: Thu, 28 Feb 2013 14:45:04 +0530	[thread overview]
Message-ID: <CABa1t5xZAVYvWagoJR8n-K1iMUZGSJzWtsfmm3HC-FXF-B9hXw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 656 bytes --]

Dear All,

I was compiling powertop as an Android external module and using the option
powertop --html. However, there used to be a segmentation fault. When i
looked into it, I observed that in the function format_watts in
src/lib.cpp, the last argument to mbstows was zero. By changing the
argument to len, which is itself an argument to the function format_watts,
powertop worked properly? Does this also happen on an x86 machine? ( I am
unable to verify this due to some problems in my laptop which I have not
yet resolved.) If not then can someone explain to me why is it happening in
the case of android?

Thanks and Regards,

Ganapati

[-- Attachment #2: attachment.html --]
[-- Type: text/html, Size: 754 bytes --]

             reply	other threads:[~2013-02-28  9:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-28  9:15 Ganapati Bhat [this message]
2013-02-28 12:23 [Powertop] Seg Fault due to function format_watts in file src/lib.cpp Sergey Senozhatsky
2013-05-20 13:26 Sergey Senozhatsky
2013-05-21  7:34 Sergey Senozhatsky

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=CABa1t5xZAVYvWagoJR8n-K1iMUZGSJzWtsfmm3HC-FXF-B9hXw@mail.gmail.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.