https://bugs.kde.org/show_bug.cgi?id=467394

            Bug ID: 467394
           Summary: kasts: Crashes with segmentation fault after a wrong/
                    invalid podcast URL was added.
    Classification: Applications
           Product: kasts
           Version: 23.01.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: b...@mogwai.be
          Reporter: felics-...@kettenbruch.de
  Target Milestone: ---

Created attachment 157297
  --> https://bugs.kde.org/attachment.cgi?id=157297&action=edit
Terminal output of just running `kasts`.

## SUMMARY

I tried to add a new podcast (probably using a wrong URL), and kasts crashed.
Now kasts will not come up at allm but crashes with a segmentation fault.

Even if an invalid podcast URL is entered via the GUI or present in the
database, this error should be handled gracefully and in no circumstance lead
to a segmentation fault. Segmentation faults are a sign that there might be
even a security hole.


## STEPS TO REPRODUCE

1. I opened `kasts` and tried to add a podcast URL. I don't remember the URL
and do not know where I can recover it from the `kasts` database.
2. `kasts` crashed.
3. Try to start `kasts`, it crashes with a segmentation fault.


## OBSERVED RESULT

When I start `kasts`, it prints to the terminal  
```
Database version 6
qrc:/main.qml:419:5: QML ErrorListOverlay: Binding loop detected for property
"implicitHeight"
qrc:/main.qml:419:5: QML ErrorListOverlay: Binding loop detected for property
"implicitHeight"
qrc:/main.qml:128:26: QML OverlayDrawer: Binding loop detected for property
"implicitWidth"
qrc:/DesktopPlayerControls.qml:398:5: QML Dialog: Binding loop detected for
property "implicitHeight"
qrc:/DesktopPlayerControls.qml:398:5: QML Dialog: Binding loop detected for
property "implicitHeight"
Failed to load feed ""
Segmentation fault
```  
and then crashes.

* `kasts --version` and `kasts --help` do run.

For step 3 above, I attach the following reports:

* Terminal output of just running `kasts`,
* terminal output of running `strace kasts`,
* terminal output of running `ltrace kasts`,
* terminal output of `gdb casts` with backtrace (gdb with pwndbg).

(My username I have censored and replaced with `[...]` from each attachment.)

I have installed `kasts` as a distribution package from Arch Linux, so no local
compilation, no debug information compiled in.


## EXPECTED RESULT

* Run without a crash, and report wrong podcast URLs.


## SOFTWARE/OS VERSIONS

* Linux/KDE Plasma: No KDE desktop, just standalone KDE application. `kasts`
version: 23.01.0.
* Distribution: Artix GNU/Linux, rolling release.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to