[cfe-dev] Unable to View Results Produced by scan-build

Malhar Thakkar via cfe-dev cfe-dev at lists.llvm.org
Wed May 31 06:15:00 PDT 2017


On Wed, May 31, 2017 at 6:33 PM, Artem Dergachev <noqnoqneo at gmail.com>
wrote:

> This seems mysterious and i couldn't immediately reproduce it. Could you
> check that the port you're connecting to with your browser (eg.
> http://127.0.0.1:8181) matches the port scan-view dumps on the command
> line (eg.
>
>   $ scan-view /tmp/scan-build-2017-05-31-155455-89354-1
>   Starting scan-view at: http://127.0.0.1:8181
>     Use Ctrl-C to exit.
>
> )?
>

It is evident from the screenshot that I sent in one of my previous emails
that both the ports (seen in the browser and the command line) are the
same.

>
> If nothing helps, i'd probably suggest, as a workaround, that you can open
> index.html from the results directory directly into your browser and it'd
> be the same thing just without an intermediate web server running on your
> machine.


Yes, this works.

>
>
> 30/05/2017 7:44 PM, Malhar Thakkar via cfe-dev wrote:
>
>> Thank you Dr. Devin. That really helped clarify my query regarding
>> scan-build.
>> But, I still don't understand why scan-view shows older results even
>> after specifying the correct directory.
>>
>> Like mentioned in my previous email, *scan-view
>> /Users/malharthakkar/Desktop/scan-build-isl/2017-05-30-161222-546-1
>> *opens a directory which was created on 26th of May when it should've
>> opened the one created today (i.e., 30th of May).
>>
>> Thank you.
>>
>>
>> Regards,
>> Malhar
>>>>
>> On Tue, May 30, 2017 at 9:57 PM, Devin Coughlin <dcoughlin at apple.com
>> <mailto:dcoughlin at apple.com>> wrote:
>>
>>
>>     On May 30, 2017, at 3:59 AM, Malhar Thakkar via cfe-dev
>>>     <cfe-dev at lists.llvm.org <mailto:cfe-dev at lists.llvm.org>> wrote:
>>>
>>>     I have an additional query.
>>>     After scan-build completes, it says, *Run '**scan-view
>>>     /Users/malharthakkar/Desktop/scan-build-isl/2017-05-30-16122
>>> 2-546-1**'
>>>     to examine bug reports*.
>>>     When I run the above command, it somehow opens the results which
>>>     I obtained 4 days ago (look at the dates in the browser window
>>>     and the terminal in the attached screenshot). Any idea why that
>>>     is happening?
>>>     Also, when I ran scan-build along with -o, only a few files were
>>>     compiled and analyzed, not the entire codebase (How do I build
>>>     the entire codebase?).
>>>
>>
>>     Did you clean the built project before running scan-build again?
>>     Since scan-build interposes on calls to the compiler, if the build
>>     system doesn’t build a source file then scan-build won’t see it.
>>     This is a common pitfall — we should really mention this in the
>>     documentation for scan-build!
>>
>>     Also, don’t forget to run any ./configure script through
>>     scan-build as well so you don’t get hard-wired paths to the wrong
>>     compiler.
>>     <https://clang-analyzer.llvm.org/scan-build.html#recommended_autoconf
>>     <https://clang-analyzer.llvm.org/scan-build.html#recommended_autoconf
>> >>
>>
>>     Devin
>>
>>
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>
>
>
ᐧ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170531/bcf33d7f/attachment.html>


More information about the cfe-dev mailing list