Menu

#996 libgphoto2 2.5.6 crashes with Canon EOS 1200D when calling gphoto2 --list-config

closed-fixed
None
5
2015-01-21
2014-12-30
ohm_hamburg
No

libgphoto2 2.5.6 crashes with Canon EOS 1200D when calling gphoto2 --list-config

Output with Debug:
...
63.447000 ptp (2): event 53: Unknown EOS property d1bc, datasize is 4, using uint32
63.447000 ptp (2): 0: 0x 1
63.447000 ptp (2): event 53: currentvalue of d1bc is 1
63.447000 ptp (2): event 54: EOS prop d1b8 info record, datasize is 4
63.447000 ptp (2): event 54: currentvalue of d1b8 is 0
63.447000 ptp (2): event 55: EOS prop d1d3 info record, datasize is 100
63.447000 gp_context_error (0): size 100 is too large for fp in struct 96

Error
size 100 is too large for fp in struct 96
Segmentation fault (core dumped)

Platform:
cygwin 1.7.9 on Win 7
libgphoto2 2.5.6

Discussion

  • Marcus Meissner

    Marcus Meissner - 2014-12-30

    my size calculation seems wrong and the error handling I carefully added causes the crash :/

     
  • Marcus Meissner

    Marcus Meissner - 2014-12-31

    can you try this patch?

     
  • Steve Rencontre

    Steve Rencontre - 2014-12-31

    Similar here with EOS 6D:

    gp_context_error: size 116 is too large for fp in struct 112

    Same numerical difference. I'll try your patch.

     
  • Steve Rencontre

    Steve Rencontre - 2014-12-31

    Yep, that makes the problem go away. Still got a crash in my code elsewhere since updating, but that may be a red herring.

     
  • Marcus Meissner

    Marcus Meissner - 2014-12-31

    Thanks for testing!

    A gdb backtrace of the other crash if its in libgphoto2 could be helpful

     
  • Steve Rencontre

    Steve Rencontre - 2014-12-31

    S'ok, looks like my other problem was a newer version of Exiv2 being a bit stroppier about data validation.

     
  • Marcus Meissner

    Marcus Meissner - 2014-12-31
    • status: open --> pending-fixed
    • assigned_to: Marcus Meissner
     
  • Marcus Meissner

    Marcus Meissner - 2015-01-21

    fixed in 2.5.7

     
  • Marcus Meissner

    Marcus Meissner - 2015-01-21
    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.