CPU lockup due to buffer overrun

CAN FD Interface for PCI Express
Post Reply
ekwok117
Posts: 2
Joined: Thu 4. Jun 2020, 01:09

CPU lockup due to buffer overrun

Post by ekwok117 » Thu 4. Jun 2020, 01:14

Hello-

I'm running a PCAN-PCIe FD card on a 14.04 Ubuntu system. Been having cpu lockups and saw this [attached] message. Any insight as to how this happens?
Screen Shot 2020-06-03 at 4.00.18 PM.png
Screen Shot 2020-06-03 at 4.00.18 PM.png (1.77 MiB) Viewed 5201 times

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: CPU lockup due to buffer overrun

Post by S.Grosjean » Thu 4. Jun 2020, 14:28

Hi,

Are you sure that your CAN device is correctly setup? The pcan driver might be verbose if you don't setup the correct bitrate, or if you're alone on the bus (that is, if no other equipment does ack the frame you write). Are you using terminated cables?

Which version of the driver do you run, please?

Regards,
— Stéphane

ekwok117
Posts: 2
Joined: Thu 4. Jun 2020, 01:09

Re: CPU lockup due to buffer overrun

Post by ekwok117 » Fri 5. Jun 2020, 00:29

Thanks for the response. Driver is 8.9.0 and we are using terminated cables. Have not seen this issue until recently after running it daily for the last year or so.

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: CPU lockup due to buffer overrun

Post by S.Grosjean » Mon 8. Jun 2020, 10:31

Hi,

Ok. FYI we've recently released v8.10.1 of the driver.

Anyway, we could first remove this trace in order to prevent any further lockups of the Kernel and so, to facilitate debugging. Please go back into the driver sources tree:

Code: Select all

$ cd peak-linux-driver-8.9.0/driver
Then edit src/pcanfd_pci.c and change line:

Code: Select all

#define DEBUG_CRITICAL
into:

Code: Select all

//#define DEBUG_CRITICAL
then save the file, rebuild and reinstall the new driver:

Code: Select all

$ make
$ sudo make install
Once running this new version, please give us the output of:

Code: Select all

$ cat /proc/pcan
$ dmesg | grep pcan
Regards,
— Stéphane

Post Reply