Bug 328180 - KStandardDirs::locateLocal aborts with type="tmp"
Summary: KStandardDirs::locateLocal aborts with type="tmp"
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kdelibs4support
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-28 14:50 UTC by Martin Flöser
Modified: 2021-01-16 04:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Flöser 2013-11-28 14:50:16 UTC
Relevant backtrace:
#6  0x00007f5ff90991e5 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007f5ff909c398 in __GI_abort () at abort.c:90
#8  0x00007f5ff9cc3402 in qt_message_fatal (context=..., message=...) at global/qlogging.cpp:979
#9  0x00007f5ff9cc0fce in QMessageLogger::fatal (this=0x7fff306f5de0, msg=0x7f6000893a90 "KStandardDirs: The resource type %s is not registered") at global/qlogging.cpp:384
#10 0x00007f6000767ca6 in KStandardDirs::saveLocation (this=0x1a8f0b0, type=0x4245dd "tmp", suffix=..., create=true) at /home/martin/src/kf5/kdelibs-frameworks/tier4/kde4support/src/kdecore/kstandarddirs.cpp:1565
#11 0x00007f600076ad1c in KStandardDirs::locateLocal (type=0x4245dd "tmp", filename=..., createDir=true) at /home/martin/src/kf5/kdelibs-frameworks/tier4/kde4support/src/kdecore/kstandarddirs.cpp:2132
#12 0x00007f600076ac48 in KStandardDirs::locateLocal (type=0x4245dd "tmp", filename=...) at /home/martin/src/kf5/kdelibs-frameworks/tier4/kde4support/src/kdecore/kstandarddirs.cpp:2122

Reproducible: Always

Steps to Reproduce:
Use code like:
KStandardDirs::locateLocal("tmp", filename.fileName())
Actual Results:  
crash

Expected Results:  
get a filename

This happened with KSnapshot ported to frameworks.
Comment 1 Justin Zobel 2020-12-17 05:25:10 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 2 Bug Janitor Service 2021-01-01 04:34:55 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2021-01-16 04:34:13 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!