[Bug 1323795] Re: pcscd crashes when removing usb chipcard reader

2014-06-18 Thread Karsten Schwank
I ran gdb again, this time with debug symbols installed and using the
cyberjack driver built from sources. This gives a little more detail
about where the actual problem is:

(gdb) backtrace
#0  0x7720ff79 in __GI_raise (sig=sig@entry=6)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x77213388 in __GI_abort () at abort.c:89
#2  0x7724d1d4 in __libc_message (do_abort=do_abort@entry=1, 
fmt=fmt@entry=0x7735ba10 *** Error in `%s': %s: 0x%s ***\n)
at ../sysdeps/posix/libc_fatal.c:175
#3  0x772594ae in malloc_printerr (ptr=optimized out, 
str=0x7735bb60 free(): corrupted unsorted chunks, action=1)
at malloc.c:4996
#4  _int_free (av=optimized out, p=optimized out, have_lock=0)
at malloc.c:3840
#5  0x75f42744 in ausb_close (ah=0x70006f70) at ausb.c:178
#6  0x75f3e8d6 in CUSBUnix::Close (this=0x70004ed0)
at USBUnix.cpp:395
#7  0x75f3ec2e in CUSBUnix::Write (this=0x70004ed0, 
Message=0x76953140, len=14) at USBUnix.cpp:178
#8  0x75f2c5b5 in CBaseReader::Write (this=this@entry=0x700078c0, 
Message=Message@entry=0x76953140, len=14) at BaseReader.cpp:427
#9  0x75f2d211 in CCCIDReader::Transfer (
this=this@entry=0x700078c0, Message=Message@entry=0x76953140, 
Response=Response@entry=0x76954550) at CCIDReader.cpp:145
#10 0x75f34683 in CEC30Reader::IfdPower (
this=this@entry=0x700078c0, Mode=Mode@entry=0, ATR=0x0, 
ATR_Length=0x0, Timeout=0) at EC30Reader.cpp:1045
#11 0x75f3c464 in CRFSReader::IfdPower (this=0x700078c0, Mode=0, 
ATR=optimized out, ATR_Length=optimized out, Timeout=optimized out)
at RFSReader.cpp:51
#12 0x75f3cd41 in CReader::Disonnect (this=0x70004d50)
at Reader.cpp:185
#13 0x75f2990a in IFDHandler::closeChannel (
this=this@entry=0x761554c0 rsct_ifd_handler, Lun=Lun@entry=0)
at ifd.cpp:639
#14 0x75f29ae9 in IFDHCloseChannel (Lun=0) at ifd.cpp:1502
#15 0x004069ba in IFDCloseIFD (rContext=rContext@entry=0x620320)
at ifdwrapper.c:169
#16 0x0040857d in RFUnInitializeReader (
rContext=rContext@entry=0x620320) at readerfactory.c:1044
#17 0x004087cf in removeReader (sContext=0x620320)
at readerfactory.c:559
#18 _UnrefReader (sReader=0x620320) at readerfactory.c:104
#19 0x00408add in _UnrefReader (sReader=optimized out)
at readerfactory.c:96
#20 RFRemoveReader (
readerName=0x700026f0 REINER SCT cyberJack RFID standard 
(5372633771), port=port@entry=2097152) at readerfactory.c:535
#21 0x0040e47f in HPRescanUsbBus (udev=udev@entry=0x61e240)
at hotplug_libudev.c:522
#22 0x0040e781 in HPEstablishUSBNotifications (udev=0x61e240)
at hotplug_libudev.c:595
#23 0x775a7182 in start_thread (arg=0x76956700)
at pthread_create.c:312
#24 0x772d430d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

from ausb_close (ausb.c:178) I followed the source further into the 
ausb[13]1?.c files where
I believe the free that causes the exception is for example at ausb3.c:306. 
The ausb_close 
implementations in all 4 files look similar, with the difference that ausb1.c 
and ausb3.c call
usb_close and ausb11 and ausb31 call libusb_close.


Cheers,
Karsten

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1323795

Title:
  pcscd crashes when removing usb chipcard reader

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-cyberjack/+bug/1323795/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1329824] Re: Installer fails to install grub into MBR

2014-06-14 Thread Karsten Schwank
This is not a bug, but a misconfiguration on my side.

Please close or delete this bug report.

Thanks!

** Changed in: grub-installer (Ubuntu)
   Status: New = Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1329824

Title:
  Installer fails to install grub into MBR

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/1329824/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1329824] [NEW] Installer fails to install grub into MBR

2014-06-13 Thread Karsten Schwank
Public bug reported:

I am trying to install Ubuntu 14.04 64bit on a slightly old desktop
machine.

Booting from USB works fine, the installation runs up to almost the end, but 
then reports it couldn't install grub into the MBR of my harddisk.
My harddisk is a single SSD attached to an nvidia on-board raid controller in 
JBOD mode.

In syslog it tells be something about an unsupported raid level 255
and chroot /target grub-install --force /dev/mapper/nvidia_asdfdfss
failing.

Since I used the same installer to install Ubuntu on another machine, I
am pretty sure it's okay, and up until I decided to do a fresh install
using an SSD, I had a Kubuntu 12.04 running on this machine with the
same hardware configuration, except that I had a HDD instead of the SSD,
so in principle it should work, somehow.

Would be great if somebody has an idea what I could try next.

Thanks for your support and let me know if I can be of any further
assistance.

Cheers,
Karsten

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ubiquity 2.18.7
ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CasperVersion: 1.340
Date: Fri Jun 13 17:37:05 2014
InstallCmdLine: noprompt cdrom-detect/try-usb=true 
file=/cdrom/preseed/ubuntu.seed boot=casper only-ubiquity 
initrd=/casper/initrd.lz quiet splash -- debian-installer/language=de 
keyboard-configuration/layoutcode?=de
LiveMediaBuild: Ubuntu 14.04 LTS Trusty Tahr - Release amd64 (20140417)
ProcEnviron:
 LANGUAGE=de_DE.UTF-8
 TERM=linux
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=set
 LANG=de_DE.UTF-8
SourcePackage: grub-installer
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: grub-installer (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug trusty ubiquity-2.18.7 ubuntu

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1329824

Title:
  Installer fails to install grub into MBR

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub-installer/+bug/1329824/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1323795] Re: pcscd crashes when removing usb chipcard reader

2014-05-30 Thread Karsten Schwank
Hi Ludovic,
thanks for having a look into this. 
Here is the output of gdb:

root@linux:/home/karsten# gdb /usr/sbin/pcscd 
GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as x86_64-linux-gnu.
Type show configuration for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type help.
Type apropos word to search for commands related to word...
Reading symbols from /usr/sbin/pcscd...(no debugging symbols found)...done.
(gdb) set args -dfa
(gdb) run
Starting program: /usr/sbin/pcscd -dfa
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1.
 pcscdaemon.c:240:main() pcscd set to foreground with debug send to 
stdout
0042 debuglog.c:298:DebugLogSetCategory() Debug options: APDU
0106 configfile.l:254:DBGetReaderListDir() Parsing conf directory: 
/etc/reader.conf.d
0045 configfile.l:307:DBGetReaderList() Parsing conf file: 
/etc/reader.conf.d/libccidtwin
0112 configfile.l:266:DBGetReaderListDir() Skipping non regular file: .
0014 configfile.l:266:DBGetReaderListDir() Skipping non regular file: ..
0018 pcscdaemon.c:545:main() pcsc-lite 1.8.10 daemon ready.
2199 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
0145 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
0138 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x8087, PID: 0x0020, path: /dev/bus/usb/001/002
0143 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x1210, PID: 0x2604, path: /dev/bus/usb/001/003
0138 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x1210, PID: 0x2604, path: /dev/bus/usb/001/003
0135 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x8087, PID: 0x0020, path: /dev/bus/usb/001/002
0172 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001
0126 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x1D6B, PID: 0x0002, path: /dev/bus/usb/002/001
0132 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x8087, PID: 0x0020, path: /dev/bus/usb/002/002
0137 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x0A5C, PID: 0x219C, path: /dev/bus/usb/002/003
0134 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x0A5C, PID: 0x219C, path: /dev/bus/usb/002/003
0132 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x0A5C, PID: 0x219C, path: /dev/bus/usb/002/003
0132 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x0A5C, PID: 0x219C, path: /dev/bus/usb/002/003
0367 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x8087, PID: 0x0020, path: /dev/bus/usb/002/002
[New Thread 0x76956700 (LWP 15827)]
27173296 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x0C4B, PID: 0x0500, path: /dev/bus/usb/001/004
0031 hotplug_libudev.c:321:HPAddDevice() Adding USB device: REINER SCT 
cyberJack RFID standard
0134 readerfactory.c:989:RFInitializeReader() Attempting startup of REINER 
SCT cyberJack RFID standard (5372633771) 00 00 using 
/usr/lib/pcsc/drivers/libifd-cyberjack.bundle/Contents/Linux/libifd-cyberjack.so
CYBERJACK: Started
00065124 readerfactory.c:874:RFBindFunctions() Loading IFD Handler 3.0
[New Thread 0x754dc700 (LWP 15832)]
[Thread 0x754dc700 (LWP 15832) exited]
[New Thread 0x754dc700 (LWP 15833)]
[Thread 0x754dc700 (LWP 15833) exited]
[New Thread 0x754dc700 (LWP 15834)]
00027861 readerfactory.c:327:RFAddReader() Using the pcscd polling thread
[New Thread 0x74cdb700 (LWP 15835)]
17558580 hotplug_libudev.c:594:HPEstablishUSBNotifications() Device removed
0908 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
0207 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x1D6B, PID: 0x0002, path: /dev/bus/usb/001/001
0163 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x8087, PID: 0x0020, path: /dev/bus/usb/001/002
0156 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x1210, PID: 0x2604, path: /dev/bus/usb/001/003
0166 hotplug_libudev.c:269:get_driver() Looking for a driver for VID: 
0x1210, PID: 0x2604, path: /dev/bus/usb/001/003
0161 hotplug_libudev.c:269:get_driver() 

[Bug 1323795] [NEW] pcscd crashes when removing usb chipcard reader

2014-05-27 Thread Karsten Schwank
Public bug reported:

pcscd (1.8.10-1ubuntu1) crashed reproducibly in Ubuntu 14.04LTS when I remove 
my Reiner SCT chipcard reader. 
The reader uses the libifd-cyberjack6 driver. I tried with the driver version 
from the Ubuntu repositories first, when 
that failed I also tried with the ones provided from the manufacturer's 
homepage, but pcscd crashes in both cases.

I ran pcscd in debug mode attached the chipcard reader, inserted and
removed the chipcard a couple of times and got this output:

  /usr/share/doc/libusb-1.0-0 $ sudo pcscd -d -f
 pcscdaemon.c:240:main() pcscd set to foreground with debug send to 
stdout
0158 configfile.l:254:DBGetReaderListDir() Parsing conf directory: 
/etc/reader.conf.d
0033 configfile.l:307:DBGetReaderList() Parsing conf file: 
/etc/reader.conf.d/libccidtwin
0046 configfile.l:266:DBGetReaderListDir() Skipping non regular file: .
0012 configfile.l:266:DBGetReaderListDir() Skipping non regular file: ..
0013 pcscdaemon.c:545:main() pcsc-lite 1.8.10 daemon ready.
[...]
0024 hotplug_libudev.c:321:HPAddDevice() Adding USB device: REINER SCT 
cyberJack RFID standard
0086 readerfactory.c:989:RFInitializeReader() Attempting startup of REINER 
SCT cyberJack RFID standard (5321633775) 00 00 using 
/usr/lib/pcsc/drivers/libifd-cyberjack.bundle/Contents/Linux/libifd-cyberjack.so
CYBERJACK: Started
2092 readerfactory.c:874:RFBindFunctions() Loading IFD Handler 3.0
00016618 readerfactory.c:327:RFAddReader() Using the pcscd polling thread
02479431 eventhandler.c:381:EHStatusHandlerThread() powerState: 
POWER_STATE_POWERED
0045 eventhandler.c:396:EHStatusHandlerThread() Card inserted into REINER 
SCT cyberJack RFID standard (5321633775) 00 00
0026 Card ATR: 3B FF 96 00 FF 81 31 FE 45 65 63 66 07 52 02 50 00 10 09 23 
C0 19 06 40 76 
00401109 eventhandler.c:455:EHStatusHandlerThread() powerState: 
POWER_STATE_UNPOWERED
02003760 eventhandler.c:335:EHStatusHandlerThread() Card Removed From REINER 
SCT cyberJack RFID standard (5372633771) 00 00
02060183 eventhandler.c:381:EHStatusHandlerThread() powerState: 
POWER_STATE_POWERED
0027 eventhandler.c:396:EHStatusHandlerThread() Card inserted into REINER 
SCT cyberJack RFID standard (5321633775) 00 00
0016 Card ATR: 3B FF 96 00 FF 81 31 FE 45 65 63 66 07 52 02 50 00 10 09 23 
C0 19 06 40 76 
00401125 eventhandler.c:455:EHStatusHandlerThread() powerState: 
POWER_STATE_UNPOWERED
01603142 eventhandler.c:335:EHStatusHandlerThread() Card Removed From REINER 
SCT cyberJack RFID standard (5372633771) 00 00
RSCT: No USB context.}n*** Error in `pcscd': free(): corrupted unsorted chunks: 
0x7fbacc0077e0 ***

---

if I remove the reader while the card is inserted the log looks slightly
different, but pcscd still crashes:

06279214 hotplug_libudev.c:594:HPEstablishUSBNotifications() Device removed
[...]
0025 hotplug_libudev.c:520:HPRescanUsbBus() Removing USB device[0]: REINER 
SCT cyberJack RFID standard (5321633775) at /dev/bus/usb/001/010
0038 readerfactory.c:535:RFRemoveReader() UnrefReader() count was: 1
0012 eventhandler.c:156:EHDestroyEventHandler() Stomping thread.
0025 eventhandler.c:185:EHDestroyEventHandler() Waiting polling thread
00127580 eventhandler.c:478:EHStatusHandlerThread() Die
0169 eventhandler.c:196:EHDestroyEventHandler() Thread stomped.
0014 readerfactory.c:1040:RFUnInitializeReader() Attempting shutdown of 
REINER SCT cyberJack RFID standard (5321633775) 00 00.
*** Error in `pcscd': free(): corrupted unsorted chunks: 0x7ff9fc0077e0 ***

---

pcscd also crashes if no card was inserted at any time while the reader
was attached.

I didn't experience this problem in 13.10

Please let me know, if I can help more to resolve this issue.

Cheers,
Karsten

** Affects: pcsc-lite (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1323795

Title:
  pcscd crashes when removing usb chipcard reader

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcsc-lite/+bug/1323795/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs