#889 Nokia X2–00 kamera configuration crash

pending-fixed
libgphoto2 (82)
5
2013-01-31
2011-11-02
No

Application: Ustawienia systemowe (systemsettings), signal: Segmentation fault
82 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[KCrash Handler]
#6 0x00007f7d25c434a8 in dtoh16ap (params=0xbcb520, propcode=<value optimized
out>, devicepropertydesc=0x7fff84f298d0) at ptp2/ptp-pack.c:70

<URL: https://bugs.kde.org/show_bug.cgi?id=285271 >

Discussion

  • likely NULL ptr deref in this code in libgphoto2.

    -- Backtrace:
    Application: Ustawienia systemowe (systemsettings), signal: Segmentation fault
    82 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
    [KCrash Handler]
    #6 0x00007f7d25c434a8 in dtoh16ap (params=0xbcb520, propcode=<value optimized
    out>, devicepropertydesc=0x7fff84f298d0) at ptp2/ptp-pack.c:70
    #7 ptp_unpack_DPD (params=0xbcb520, propcode=<value optimized out>,
    devicepropertydesc=0x7fff84f298d0) at ptp2/ptp-pack.c:729
    #8 ptp_getdevicepropdesc (params=0xbcb520, propcode=<value optimized out>,
    devicepropertydesc=0x7fff84f298d0) at ptp2/ptp.c:1128
    #9 0x00007f7d25c5fea1 in camera_get_config (camera=<value optimized out>,
    window=0x7fff84f2a528, context=<value optimized out>) at ptp2/config.c:5331
    #10 0x00007f7d275286c8 in gp_camera_get_config (camera=0xe77cb0,
    window=0x7fff84f2a528, context=0x0) at gphoto2-camera.c:832

    ptp_unpack_DPD is probably called with NULL data.

     
    • assigned_to: nobody --> marcusmeissner
     
  • debug-logfile

     
    Attachments
  • { gphoto2 --debug --debug-logfile=/tmp/nokia.txt --summary; }

    *** Error ***
    PTP I/O error
    *** Error (-1: 'Unspecified error') ***

    (No crash)

     
  • hmm. please try

    gphoto2 --list-config | while read x
    do
    echo "$x"
    gphoto2 --get-config "$x" --debug --debug-logfile="/tmp/nokia-$x.txt"
    done

    and attach the nokia-.... .text file of the crashing crashing instance

     
  • debug logfile

     
    Attachments
  • { gphoto2 --debug --debug-logfile=/tmp/nokia.txt --list-config; }

    *** Error ***
    PTP I/O error

    *** Error ***
    An error occurred in the io-library ('Unspecified error'): The supplied vendor or product id (0x0,0x0) is not valid.
    *** Error (-1: 'Unspecified error') ***

     
  • i think its fixed in newer libgphoto2... a better backtrace to find out the ptp property would help :/

     
    • status: open --> pending-fixed
    • milestone: --> do_not_use_this_camlib/canon