Page MenuHomePhorge

App will crash if uploading file failed
Closed, ResolvedPublicBUG

Description

Steps to reproduce:

  • Execute https_proxy=socks5://127.0.0.1:9999 gdb ~/Install/kazv/bin/kazv
  • Upload an image to some room

Results:

receiving trigger:
[Detaching after vfork from child process 30901]
terminate called after throwing an instance of 'nlohmann::json_abi_v3_11_2::detail::parse_error'
  what():  [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal

Thread 1 "kazv" received signal SIGABRT, Aborted.
0x00007ffff00d395c in ?? () from /usr/lib64/libc.so.6
(gdb) bt
#0  0x00007ffff00d395c in ??? () at /usr/lib64/libc.so.6
#1  0x00007ffff0081916 in raise () at /usr/lib64/libc.so.6
#2  0x00007ffff00698f7 in abort () at /usr/lib64/libc.so.6
#3  0x00007ffff029ff99 in ??? () at /usr/lib/gcc/x86_64-pc-linux-gnu/13/libstdc++.so.6
#4  0x00007ffff02b2e4c in ??? () at /usr/lib/gcc/x86_64-pc-linux-gnu/13/libstdc++.so.6
#5  0x00007ffff02b2eb7 in std::terminate() () at /usr/lib/gcc/x86_64-pc-linux-gnu/13/libstdc++.so.6
#6  0x00007ffff02b3126 in __cxa_throw () at /usr/lib/gcc/x86_64-pc-linux-gnu/13/libstdc++.so.6
#7  0x0000555555661653 in nlohmann::json_abi_v3_11_2::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> > > >::parse_error<nlohmann::json_abi_v3_11_2::detail::parse_error> (this=0x7fffffffbb40, ex=...) at /usr/include/nlohmann/detail/input/json_sax.hpp:291
#8  0x0000555555665571 in nlohmann::json_abi_v3_11_2::detail::parser<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> > >, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::sax_parse_internal<nlohmann::json_abi_v3_11_2::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> > > > > (this=0x7fffffffbd20, sax=0x7fffffffbb40) at /usr/include/nlohmann/detail/input/parser.hpp:354
#9  0x0000555555660129 in nlohmann::json_abi_v3_11_2::detail::parser<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> > >, nlohmann::json_abi_v3_11_2::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::parse (this=0x7fffffffbd20, strict=true, result=...) at /usr/include/nlohmann/detail/input/parser.hpp:126
#10 0x00005555557cdf64 in nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> > >::parse<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&, std::function<bool (int, nlohmann::json_abi_v3_11_2::detail::parse_event_t, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> > >&)>, bool, bool)
    (i=..., cb=..., allow_exceptions=true, ignore_comments=false) at /usr/include/nlohmann/json.hpp:4014
#11 0x0000555555a5d3ab in KazvIOUploadJob::handleResult (this=0x555558ee0e80, job=0x555558199320) at /home/user/Code/kazv/src/kazv-io-job.cpp:298
#12 0x0000555555a632ce in QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<KJob*>, void, void (KazvIOUploadJob::*)(KJob*)>::call
    (f=(void (KazvIOUploadJob::*)(KazvIOUploadJob * const, KJob *)) 0x555555a5d286 <KazvIOUploadJob::handleResult(KJob*)>, o=0x555558ee0e80, arg=0x7fffffffc190)
    at /usr/include/qt6/QtCore/qobjectdefs_impl.h:145
#13 0x0000555555a62dfe in QtPrivate::FunctionPointer<void (KazvIOUploadJob::*)(KJob*)>::call<QtPrivate::List<KJob*>, void>
    (f=(void (KazvIOUploadJob::*)(KazvIOUploadJob * const, KJob *)) 0x555555a5d286 <KazvIOUploadJob::handleResult(KJob*)>, o=0x555558ee0e80, arg=0x7fffffffc190)
    at /usr/include/qt6/QtCore/qobjectdefs_impl.h:182
#14 0x0000555555a62755 in QtPrivate::QCallableObject<void (KazvIOUploadJob::*)(KJob*), QtPrivate::List<KJob*>, void>::impl
    (which=1, this_=0x555558f82c50, r=0x555558ee0e80, a=0x7fffffffc190, ret=0x0) at /usr/include/qt6/QtCore/qobjectdefs_impl.h:553
#15 0x00007ffff08de095 in ??? () at /usr/lib64/libQt6Core.so.6
#16 0x00007ffff2d90037 in KJob::result(KJob*, KJob::QPrivateSignal) () at /usr/lib64/libKF6CoreAddons.so.6
#17 0x00007ffff2d90c3b in ??? () at /usr/lib64/libKF6CoreAddons.so.6
#18 0x00007ffff08de095 in ??? () at /usr/lib64/libQt6Core.so.6
#19 0x00007ffff318c26f in ??? () at /usr/lib64/libKF6KIOCore.so.6
#20 0x00007ffff3189557 in ??? () at /usr/lib64/libKF6KIOCore.so.6
#21 0x00007ffff31862e7 in ??? () at /usr/lib64/libKF6KIOCore.so.6
#22 0x00007ffff08de095 in ??? () at /usr/lib64/libQt6Core.so.6
#23 0x00007ffff087cb4b in QObject::event(QEvent*) () at /usr/lib64/libQt6Core.so.6
#24 0x00007ffff1d1ced9 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib64/libQt6Widgets.so.6
#25 0x00007ffff08f3aa8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/libQt6Core.so.6
#26 0x00007ffff091aa7e in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib64/libQt6Core.so.6
--Type <RET> for more, q to quit, c to continue without paging--
#27 0x00007ffff06c3507 in ??? () at /usr/lib64/libQt6Core.so.6
#28 0x00007fffed30f7a2 in ??? () at /usr/lib64/libglib-2.0.so.0
#29 0x00007fffed312a97 in ??? () at /usr/lib64/libglib-2.0.so.0
#30 0x00007fffed3130f0 in g_main_context_iteration () at /usr/lib64/libglib-2.0.so.0
#31 0x00007ffff06c1aa0 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt6Core.so.6
#32 0x00007ffff091f91a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/libQt6Core.so.6
#33 0x00007ffff091fad7 in QCoreApplication::exec() () at /usr/lib64/libQt6Core.so.6
#34 0x00005555555bcc6c in main (argc=1, argv=0x7fffffffccb8) at /home/user/Code/kazv/src/main.cpp:74

Revisions and Commits

Related Objects

StatusSubtypeAssignedTask
OpenMETANone
ResolvedBUGnannanko