Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Dec 2020 15:56:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 251533] devel/urjtag: core dumps with Altera USB Blaster
Message-ID:  <bug-251533-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251533

            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@freebsd.org
          Reporter: tingox+freebsd@gmail.com
             Flags: maintainer-feedback?(yuri@freebsd.org)
          Assignee: yuri@freebsd.org

urjtag core dumps when trying to use it with an Altera USB Blaster. Install=
ed
from ports on a FreeBSD 11.4-stable machine:
root@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@kg-core1.kg4.no:/zs/usr/obj/usr/src/sys/GENERIC=
=20
amd64

root@kg-core1# pkg info urjtag*
urjtag-2019.12_1
root@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@kg-core1# usbconfig -d ugen3.3
ugen3.3: <Altera USB-Blaster> at usbus3, cfg=3D0 md=3DHOST spd=3DFULL (12Mb=
ps) pwr=3DON
(80mA)
root@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@kg-core1$ groups tingo
tingo wheel operator video dialer cups

tingo@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 condition=
s.
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=20
(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 condition=
s.
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 worki=
ng
on another machine (running Linux).

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251533-7788>