public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* Re: [LTP] [PATCH] aiocp: modify segfault in dev_block_size_by_path
       [not found] <1430295293-13106-1-git-send-email-zlang@redhat.com>
@ 2015-04-29 14:09 ` Cyril Hrubis
       [not found]   ` <1822683538.7446641.1430373748322.JavaMail.zimbra@redhat.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Cyril Hrubis @ 2015-04-29 14:09 UTC (permalink / raw)
  To: Zorro Lang; +Cc: ltp-list

Hi!
Thanks for catching this. I've pushed a bit different patch that fixes
also the -w option.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH] aiocp: modify segfault in dev_block_size_by_path
       [not found]   ` <1822683538.7446641.1430373748322.JavaMail.zimbra@redhat.com>
@ 2015-04-30  6:56     ` Cyril Hrubis
  0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2015-04-30  6:56 UTC (permalink / raw)
  To: Zirong Lang; +Cc: ltp-list

Hi!
> Thanks. And I have another little question about debug ltp. When I hit this
> segfault I got a core file, but that core without debug information.
> So I tried to add "-g" for gcc and remove "-O2" option. I did that
> job manually(deleted -O2 from every files contain it).
> 
> Is there some good configure or make options can be used to build a
>  debug version ltp? Can you give me some steps to do that?

Hm, passing CFLAGS to configure should work as:

CFLAGS="-W -Wextra -O0 -ggdb" ./configure

But looking at what we have in LTP there are OPT_CFLAGS and WCFLAGS
which adds the -O2 and more. So at the moment you have to modify CFLAGS
manually in the include/mk/config.mk.

Does anybody have an idea why the CFLAGS are split among three variables
to optimizations and warnings? It does no make much sense to me. There
is only one place in the source tree where these are redefined, I will
check if that is really needed and possibly get rid of this mess. Is
anybody opposed?

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-30  6:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1430295293-13106-1-git-send-email-zlang@redhat.com>
2015-04-29 14:09 ` [LTP] [PATCH] aiocp: modify segfault in dev_block_size_by_path Cyril Hrubis
     [not found]   ` <1822683538.7446641.1430373748322.JavaMail.zimbra@redhat.com>
2015-04-30  6:56     ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox