Created attachment 164029 [details] Added NULL check Webcamd segfaults when used with the following dvb-t usb stick: # usbconfig -u 1 -a 5 dump_device_desc ugen1.5: <RTL2832U Generic> ... ... idVendor = 0x0bda idProduct = 0x2832 ... # Here is what gdb reports: Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00000000007492df in rtl2832u_tuner_attach (adap=0x8024ab050) at media_tree/drivers/media/usb/dvb-usb-v2/rtl28xxu.c:1324 1324 if (IS_ERR(pdev) || pdev->dev.driver == NULL) ... (gdb) p pdev $1 = (struct platform_device *) 0x0 (gdb) Applying the attached patch to rtl28xxu.c fixed the problem.
Hi, Can you build webcamd from here instead: svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b/trunk/ports --HPS
A commit references this bug: Author: kwm Date: Fri Dec 11 12:31:52 UTC 2015 New revision: 403522 URL: https://svnweb.freebsd.org/changeset/ports/403522 Log: Update webcamd to 4.2.0.8. Fix a segfault with a RTL2832U/R820T-based DVB-T USB stick PR: 205174 Submitted by: f.degner Approved by: maintainer Changes: head/multimedia/webcamd/Makefile head/multimedia/webcamd/distinfo
Please report if it is still an issue. Thank you for your bugreport.