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

            Bug ID: 471897
           Summary: kio crashes on read pictures from apple iphone 5.
    Classification: Frameworks and Libraries
           Product: frameworks-kio
           Version: 5.24.0
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

I connected an Apple Iphone 5.
Plasma notifies me that a new device (PTP) is connected an let me choose what
to do.
I choose "Show pictures in file manager" and it brings up dolphin and shows me
the following URL:
camera:/Apple%2520iPhone%25205%2520(PTP%2520mode)@usb:002,009/
There is a folder named "store_00010002", navigation to sub folder
"DCIM/202307__" works and I see the pictures there. 
Then I try to copy a file but that fails, a message dialog is popping up,
title: ""Information - Dolphin", message: "Unknown Error Code 150
Wrong parameter
Please send a detailed bug report to https://bugs.kde.org.";.
The file is created at the target folder with size 0.

On tray I see a crash icon, when I open this, I could obtain a backtrace:

Application: kioslave5 (kioslave5), signal: Aborted

[KCrash Handler]
#4  __pthread_kill_implementation (no_tid=0, signo=6, threadid=139782719969600)
at ./nptl/pthread_kill.c:44
#5  __pthread_kill_internal (signo=6, threadid=139782719969600) at
./nptl/pthread_kill.c:78
#6  __GI___pthread_kill (threadid=139782719969600, signo=signo@entry=6) at
./nptl/pthread_kill.c:89
#7  0x00007f21b7442476 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#8  0x00007f21b74287f3 in __GI_abort () at ./stdlib/abort.c:79
#9  0x00007f21b74896f6 in __libc_message (action=action@entry=do_abort,
fmt=fmt@entry=0x7f21b75dbb8c "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#10 0x00007f21b74a0d7c in malloc_printerr (str=str@entry=0x7f21b75de230
"munmap_chunk(): invalid pointer") at ./malloc/malloc.c:5664
#11 0x00007f21b74a105c in munmap_chunk (p=<optimized out>) at
./malloc/malloc.c:3060
#12 0x00007f21b74a551a in __GI___libc_free (mem=<optimized out>) at
./malloc/malloc.c:3381
#13 0x00007f21b84ed5e9 in ?? () from
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_kamera.so
#14 0x00007f21b84f0364 in ?? () from
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_kamera.so
#15 0x00007f21b83bb1de in KIO::SlaveBase::dispatch(int, QByteArray const&) ()
from /lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#16 0x00007f21b83bbc06 in KIO::SlaveBase::dispatchLoop() () from
/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#17 0x00007f21b84f287a in kdemain () from
/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/kio_kamera.so
#18 0x00005643685144fa in ?? ()
#19 0x00007f21b7429d90 in __libc_start_call_main
(main=main@entry=0x564368514320, argc=argc@entry=5,
argv=argv@entry=0x7ffecb644a08) at ../sysdeps/nptl/libc_start_call_main.h:58
#20 0x00007f21b7429e40 in __libc_start_main_impl (main=0x564368514320, argc=5,
argv=0x7ffecb644a08, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7ffecb6449f8) at ../csu/libc-start.c:392
#21 0x0000564368514735 in ?? ()
[Inferior 1 (process 15829) detached]



STEPS TO REPRODUCE
1. Connect apple iphone 5
2. Select "Show pictures in file manager"
3. Navigate to the picture folder
4. Try to copy a file to local disk

OBSERVED RESULT
Info dialog with error message "Error Code 150
Wrong parameter" is shown, file created with size 0 on target folder, crash of
kio-kamera plugin

EXPECTED RESULT
File is created with full content on target folder, no dialog/crash

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.3
Kernel Version: 6.1.12-060112-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7 CPU Q 840 @ 1.87GHz
Memory: 19.5 GiB of RAM
Graphics Processor: NV92

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

Reply via email to