avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avrdude-dev] avrdude r1160 Segmentation fault


From: Joerg Wunsch
Subject: Re: [avrdude-dev] avrdude r1160 Segmentation fault
Date: Sat, 4 May 2013 18:36:59 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

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. ;-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]