[Bug 251533] devel/urjtag: core dumps with Altera USB Blaster

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 2 15:56:27 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251533

            Bug ID: 251533
           Summary: devel/urjtag: core dumps with Altera USB Blaster
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri at freebsd.org
          Reporter: tingox+freebsd at gmail.com
             Flags: maintainer-feedback?(yuri at freebsd.org)
          Assignee: yuri at freebsd.org

urjtag core dumps when trying to use it with an Altera USB Blaster. Installed
from ports on a FreeBSD 11.4-stable machine:
root at kg-core1# uname -a
FreeBSD kg-core1.kg4.no 11.4-STABLE FreeBSD 11.4-STABLE #3 r362432: Sat Jun 20
12:51:06 CEST 2020     root at kg-core1.kg4.no:/zs/usr/obj/usr/src/sys/GENERIC 
amd64

root at kg-core1# pkg info urjtag*
urjtag-2019.12_1
root at kg-core1# pkg options urjtag
urjtag - FTDI: on
urjtag - JEDEC: on
urjtag - NLS: on
urjtag - PYTHON: off
urjtag - USB: on

The USB Blaster is correctly identified:
root at kg-core1# usbconfig -d ugen3.3
ugen3.3: <Altera USB-Blaster> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
(80mA)
root at kg-core1# ls -l /dev/ugen3.3 /dev/usb/3.3.0
lrw-rw----  1 root  cups     9 Dec  2 16:29 /dev/ugen3.3 -> usb/3.3.0
crw-rw----  1 root  cups  0x61 Dec  2 16:29 /dev/usb/3.3.0

and my user has permissions to access it:
tingo at kg-core1$ groups tingo
tingo wheel operator video dialer cups

tingo at kg-core1$ jtag

UrJTAG 2019.12 #
Copyright (C) 2002, 2003 ETC s.r.o.
Copyright (C) 2007, 2008, 2009 Kolja Waschk and the respective authors

UrJTAG is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
There is absolutely no warranty for UrJTAG.

warning: UrJTAG may damage your hardware!
Type "quit" to exit, "help" for help.

jtag> cable usbblaster
Connected to libftdi driver.
jtag> detect
Segmentation fault (core dumped)

if I run jtag in gdb ('gdb jtag', then 'run'), I get a bit more info:
(gdb) run
Starting program: /usr/local/bin/jtag 
(no debugging symbols found)...(no debugging symbols found)...
UrJTAG 2019.12 #
Copyright (C) 2002, 2003 ETC s.r.o.
Copyright (C) 2007, 2008, 2009 Kolja Waschk and the respective authors

UrJTAG is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
There is absolutely no warranty for UrJTAG.

warning: UrJTAG may damage your hardware!
Type "quit" to exit, "help" for help.

jtag> cable usbblaster
Connected to libftdi driver.
jtag> detect

Program received signal SIGSEGV, Segmentation fault.
0x000000080175f7e0 in ftdi_transfer_data_done () from
/usr/local/lib/libftdi1.so.2
Current language:  auto; currently minimal

The hardware (including usb cable and device under test) is tested as working
on another machine (running Linux).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list