Segmentation fault?

Kay Sievers kay.sievers at vrfy.org
Thu Jul 15 17:54:14 PDT 2004


On Fri, Jul 16, 2004 at 01:30:02AM +0200, Kay Sievers wrote:
>
>   [root at pim hal]# cat /sys/class/pcmcia_socket/pcmcia_socket0/card_vcc
>   cat: /sys/class/pcmcia_socket/pcmcia_socket0/card_vcc: No such device
> 
> the same traced:
>   open("/sys/class/pcmcia_socket/pcmcia_socket0/card_vcc", O_RDONLY|O_LARGEFILE) = 3
>   fstat64(3, {st_mode=S_IFREG|0400, st_size=4096, ...}) = 0
>   read(3, 0x8de5858, 4096)                = -1 ENODEV (No such device)
> 
> We got a sysfs-file we can open, but fail with read on it. Then a bad compare
> and a bad free.
> 
> I will ping Greg for the sysfs-file and the libsysfs mainatainer to change
> the size_t to ssize_t.

Seems related to the pcmcia-sysfs-patch, that made it into mainline,
6 days ago. A older kernel on my box works fine as before. So if you
have a older kernel or no pcmcia, the bug will not hit you.

I sent a mail to the patch submitter and to the libsysfs people.

Thanks,
Kay
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list