xiongxinbobo / libnfc

Automatically exported from code.google.com/p/libnfc
0 stars 0 forks source link

segmentation fault using nfc-mfclassic #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ./configure
2. make
3. ./examples/nfc-mfclassic

What is the expected output? What do you see instead?

The expected output is a dump from all readable sectors of the mfclassic 1k 
tag. Instead I see "Segmentation fault".

What version of the product are you using? On what operating system?

I'm using the latest svn build on Ubuntu 10.10 2.6.35-25-generic. I'm using the 
touchatag reader.

Please provide any additional information below.

The reader and tag are recognized:

$ ./examples/nfc-list 
/home/[redacted]/touchatag/libnfc-read-only/examples/.libs/lt-nfc-list use 
libnfc 1.4.1 (r874)
Connected to NFC device: ACS ACR122U PICC Interface 00 00 / ACR122U102 - PN532 
v1.4 (0x07)
1 ISO14443A passive target(s) was found:
    ATQA (SENS_RES): 00  04  
       UID (NFCID1): ae  4a  28  c7  
      SAK (SEL_RES): 08  

Original issue reported on code.google.com by sob...@gmail.com on 3 Feb 2011 at 4:22

GoogleCodeExporter commented 9 years ago
Could you run "nfc-mfclassic r a foo.dump" after compiling libnfc in debug mode 
and post the output on pastebin ? (and of course give us the link :) )

Another thing that can be useful: use gdb to see what happends.

$ libtool --mode=execute gdb examples/nfc-mfclassic
(gdb) r r a foo.dump

Here nfc-mfclassic will crash, then you show the backtrace using:
(gdb) bt

And if you have some results, please pastebin it too.

Original comment by romu...@libnfc.org on 4 Feb 2011 at 10:29

GoogleCodeExporter commented 9 years ago

Original comment by romu...@libnfc.org on 4 Feb 2011 at 5:32

GoogleCodeExporter commented 9 years ago
Thanks for your quick reply! I was using the wrong syntax:
nfc-mfclassic r

Sorry for the bother. Great toolset, btw.

Original comment by sob...@gmail.com on 4 Feb 2011 at 9:22

GoogleCodeExporter commented 9 years ago
Ok, bug reproduced.
Thank you.

Original comment by romu...@libnfc.org on 6 Feb 2011 at 7:45

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r879.

Original comment by romu...@libnfc.org on 6 Feb 2011 at 7:46

GoogleCodeExporter commented 9 years ago

Original comment by romu...@libnfc.org on 6 Feb 2011 at 7:47