logoalt Hacker News

rubymamislast Friday at 1:40 PM4 repliesview on HN

This is awesome. Would love to see if it catches some of the Qt bugs I found but haven't been resolved yet[1].

[1] https://qt-project.atlassian.net/browse/QTBUG-122658


Replies

cristianadamlast Friday at 4:03 PM

I only tried to get Qt Base up and running. But Qt Declarative will be next, after Qt Base.

show 1 reply
SkiFire13today at 7:36 AM

AFAIK Fil-C does not catch all memory safety bugs, for example some use-after-free are just not bugs but work as intended (you still access the original data/allocation). This means that it's not a sanitizer and code that runs fine on Fil-C may show UB when run normally.

show 2 replies
jceleriertoday at 3:43 AM

eh, I daily-drive a -fsanitize=address -fsanitize=undefined build of Qt and actual memory bugs are almost never a thing - I think the only time I had some were in tooling executables such as qmllint, but not in the framework itself. Most of the bugs by large are more "behaviour" bugs.

show 3 replies
yjftsjthsd-htoday at 1:21 AM

Depends in which sense you want it to "catch" the bugs. As this readme notes/quotes,

> All memory safety errors are caught as Fil-C panics.

If your problem is a memory-based bug causing a crash, I think this would just... catch the memory-based bug and crash. Like, it'd crash more reliably. On the other hand, if you want to find and debug the problem, that might be a good thing.

show 3 replies