Modify

Opened 12 years ago

Closed 12 years ago

#158 closed defect (fixed)

Current driver crashes with segmentation fault when recording with GUI

Reported by: Matthias Vogelgesang Owned by: Matthias Vogelgesang
Priority: blocker Milestone:
Component: libuca Version:
Keywords: Cc: Uros Stevanovic, Matthias Vogelgesang

Description

Steps to reproduce

  1. Login to ipecamera
  2. Run control
  3. Press record button
  4. Stop recording

Behaviour

Everything crashes with a segmentation fault. A quick look with gdb suggests that the last frame is corrupt and cannot be decoded properly with libufodecode. When using a debug build of libufodecode, recording does not crash that often.

This behaviour must have been introduced with the recent changes to the driver as this was not a problem last Friday.

Attachments (0)

Change History (4)

comment:1 Changed 12 years ago by Suren A. Chilingaryan

Component: pciliblibuca
Owner: changed from Suren A. Chilingaryan to Matthias Vogelgesang
Status: newassigned

pcilib_get_data (and other event API functions) should not be called after pcilib_stop.

comment:2 Changed 12 years ago by Suren A. Chilingaryan

I made a temporary fix in the /root/libuca, but probably it should be properly fixed with mutexes.

comment:3 Changed 12 years ago by Matthias Vogelgesang

  1. Could we please agree on one place to checkout all the sources?
  2. Could you please document such pitfalls?
  3. Your temporary fix is duplicating all the work that is already done in the base class (including proper synchronisation with mutexes) and breaking streaming fast-reject.

comment:4 Changed 12 years ago by Matthias Vogelgesang

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthias Vogelgesang.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.