As Enoch wrote:

> No surprise, I am here with Debian and its our of sync libs
> while you are riding on FreeBSD :-)

OK, tried it on an Ubuntu, and can confirm the segfault:

Writing | ################################################## | 100% 0.04s

avrdude: 336 bytes of flash written

Program received signal SIGSEGV, Segmentation fault.
0x0000000000433f93 in jtagmkII_open (pgm=0x6db9c0, port=0x1 <Address 0x1 out of 
bounds>) at jtagmkII.c:1555
1555      if (strncmp(port, "usb", 3) == 0) {
(gdb) bt
#0  0x0000000000433f93 in jtagmkII_open (pgm=0x6db9c0, port=0x1 <Address 0x1 
out of bounds>) at jtagmkII.c:1555
#1  0x000000000041b756 in do_op (pgm=0x6db9c0, p=0x834100, upd=0x663430, 
flags=UF_NONE) at update.c:322
#2  0x0000000000404408 in main (argc=<optimized out>, argv=<optimized out>) at 
main.c:1241

So "port" is given as 0x01 here.  Stack frame #1 is:

pgm->vfy_led(pgm, ON);

No idea offhand why that triggers a jtagmkII_open() with bogus
arguments.
-- 
cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)

_______________________________________________
avrdude-dev mailing list
avrdude-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to