Package: openocd
Version: 0.3.1-1
Severity: normal

Hi all!

When openocd is started using a libftdi device that is not connected, it 
crashes.
This is not a severe problem, there is no reason to start it without the device
connected, but crahsing is not the best way to tell the user openocd can't find
the device.

Please let me know if you want more information.

Thanks in advance and best regards



Marc




Here is how to reproduce the bug:

p...@pim-linux:~$ openocd -f /usr/share/openocd/scripts/board/at91rm9200-dk.cfg 
-f /usr/share/openocd/scripts/interface/jtagkey.cfg
Open On-Chip Debugger 0.3.1 (2009-11-25-12:22)
$URL$
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
dcc downloads are enabled
Warn : use 'at91rm9200.cpu' as target identifier, not '0'
Segmentation fault
p...@pim-linux:~$

and the same with -d3:

p...@pim-linux:~$ openocd -d3 -f 
/usr/share/openocd/scripts/board/at91rm9200-dk.cfg -f 
/usr/share/openocd/scripts/interface/jtagkey.cfg 
Open On-Chip Debugger 0.3.1 (2009-11-25-12:22)                                  
                                                       
$URL$                                                                           
                                                       
For bug reports, read                                                           
                                                       
        http://openocd.berlios.de/doc/doxygen/bugs.html                         
                                                       
User : 5 1 command.c:400 command_print(): debug_level: 3                        
                                                       
Debug: 6 1 configuration.c:83 find_file(): found 
/usr/share/openocd/scripts/board/at91rm9200-dk.cfg                              
      
Debug: 7 1 configuration.c:83 find_file(): found 
/usr/share/openocd/scripts/target/at91rm9200.cfg                                
      
Debug: 9 1 command.c:68 script_debug(): command - reset_config                  
                                                       
Debug: 10 1 command.c:77 script_debug(): reset_config - 
argv[0]=ocd_reset_config                                                       
Debug: 11 1 command.c:77 script_debug(): reset_config - argv[1]=trst_and_srst   
                                                       
User : 12 1 command.c:400 command_print(): trst_and_srst separate 
srst_gates_jtag trst_push_pull srst_open_drain                       
Debug: 13 1 tcl.c:245 jim_newtap_cmd(): Creating New Tap, Chip: at91rm9200, 
Tap: cpu, Dotted: at91rm9200.cpu, 8 params                 
Debug: 14 1 tcl.c:262 jim_newtap_cmd(): Processing option: -irlen               
                                                       
Debug: 15 1 tcl.c:262 jim_newtap_cmd(): Processing option: -ircapture           
                                                       
Debug: 16 1 tcl.c:262 jim_newtap_cmd(): Processing option: -irmask              
                                                       
Debug: 17 1 tcl.c:262 jim_newtap_cmd(): Processing option: -expected-id         
                                                       
Debug: 18 1 core.c:1314 jtag_tap_init(): Created Tap: at91rm9200.cpu @ abs 
position 0, irlen 4, capture: 0x1 mask: 0xf                 
Debug: 19 1 target.c:4515 jim_target(): Target command params:                  
                                                       
Debug: 20 1 target.c:4516 jim_target(): target create at91rm9200.cpu arm920t 
-endian little -chain-position at91rm9200.cpu
Debug: 22 3 command.c:68 script_debug(): command - dcc_downloads
Debug: 23 3 command.c:77 script_debug(): dcc_downloads - 
argv[0]=ocd_arm7_9_dcc_downloads
Debug: 24 3 command.c:77 script_debug(): dcc_downloads - argv[1]=enable
User : 25 3 command.c:400 command_print(): dcc downloads are enabled
Debug: 27 3 command.c:68 script_debug(): command - bank
Debug: 28 3 command.c:77 script_debug(): bank - argv[0]=ocd_flash_bank
Debug: 29 3 command.c:77 script_debug(): bank - argv[1]=cfi
Debug: 30 3 command.c:77 script_debug(): bank - argv[2]=0x10000000
Debug: 31 3 command.c:77 script_debug(): bank - argv[3]=0x00200000
Debug: 32 3 command.c:77 script_debug(): bank - argv[4]=2
Debug: 33 3 command.c:77 script_debug(): bank - argv[5]=2
Debug: 34 3 command.c:77 script_debug(): bank - argv[6]=0
Warn : 35 3 target.c:344 get_target(): use 'at91rm9200.cpu' as target 
identifier, not '0'
Debug: 36 4 configuration.c:83 find_file(): found 
/usr/share/openocd/scripts/interface/jtagkey.cfg
Debug: 38 4 command.c:68 script_debug(): command - interface
Debug: 39 4 command.c:77 script_debug(): interface - argv[0]=ocd_interface
Debug: 40 4 command.c:77 script_debug(): interface - argv[1]=ft2232
Debug: 42 4 command.c:68 script_debug(): command - ft2232_device_desc
Debug: 43 4 command.c:77 script_debug(): ft2232_device_desc - 
argv[0]=ocd_ft2232_device_desc
Debug: 44 4 command.c:77 script_debug(): ft2232_device_desc - argv[1]=Amontec 
JTAGkey
Debug: 46 4 command.c:68 script_debug(): command - ft2232_layout
Debug: 47 4 command.c:77 script_debug(): ft2232_layout - 
argv[0]=ocd_ft2232_layout
Debug: 48 4 command.c:77 script_debug(): ft2232_layout - argv[1]=jtagkey
Debug: 50 4 command.c:68 script_debug(): command - ft2232_vid_pid
Debug: 51 4 command.c:77 script_debug(): ft2232_vid_pid - 
argv[0]=ocd_ft2232_vid_pid
Debug: 52 4 command.c:77 script_debug(): ft2232_vid_pid - argv[1]=0x0403
Debug: 53 4 command.c:77 script_debug(): ft2232_vid_pid - argv[2]=0xcff8
Debug: 55 4 command.c:68 script_debug(): command - init
Debug: 56 4 command.c:77 script_debug(): init - argv[0]=ocd_init
Debug: 57 5 openocd.c:129 handle_init_command(): target init complete
Debug: 58 5 ft2232.c:2109 ft2232_init(): ft2232 interface using shortest path 
jtag state transitions
Debug: 59 5 ft2232.c:2023 ft2232_init_libftdi(): 'ft2232' interface using 
libftdi with 'jtagkey' layout (0403:cff8)
Segmentation fault




-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages openocd depends on:
ii  dpkg                      1.15.5.6       Debian package management system
ii  install-info              4.13a.dfsg.1-5 Manage installed documentation in 
ii  libc6                     2.10.2-2       GNU C Library: Shared libraries
ii  libftdi1                  0.17-1+b1      Library to control and program the
ii  libusb-0.1-4              2:0.1.12-13    userspace USB programming library

openocd recommends no packages.

openocd suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to