phaser driver causes nac3 segfault #202

Closed
opened 2022-02-28 17:02:08 +08:00 by sb10q · 5 comments
Owner

ARTIQ ea55c29568bacddf7e2faedc5c686fe351ac5b12

Uncomment the two # NAC3TODO segfault lines in nac3devices.py.

> artiq_compile nac3devices.py
fish: Job 1, 'artiq_compile nac3devices.py' terminated by signal SIGSEGV (Address boundary error)
ARTIQ ea55c29568bacddf7e2faedc5c686fe351ac5b12 Uncomment the two ``# NAC3TODO segfault`` lines in nac3devices.py. ``` > artiq_compile nac3devices.py fish: Job 1, 'artiq_compile nac3devices.py' terminated by signal SIGSEGV (Address boundary error) ```
sb10q added this to the Prealpha milestone 2022-02-28 17:02:08 +08:00
sb10q added the
high-priority
label 2022-02-28 17:02:08 +08:00
pca006132 was assigned by sb10q 2022-02-28 17:02:08 +08:00
Author
Owner

(Still segfaults after fixing the incorrect Fastino annotation)

(Still segfaults after fixing the incorrect ``Fastino`` annotation)
Author
Owner

Removing the channel: Kernel[list[PhaserChannel]] attribute initialized by the host stops the segfault and compilation completes.

Removing the ``channel: Kernel[list[PhaserChannel]]`` attribute initialized by the host stops the segfault and compilation completes.
Contributor

Looks like the problem is due to reference cycles. Will fix.

Looks like the problem is due to reference cycles. Will fix.
Contributor

Fixed the cyclic reference issue. Apart from that, it seems that the port has type error: thread '<unnamed>' panicked at 'Codegen error: CompileError: Error getting field phaser0: CompileError: Error getting field channel: CompileError: Error getting element 0: CompileError: Error getting field trf_mmap: CompileError: Error getting element 5: CompileError: 2425360398 is not in the range of int32', /home/pca006132/code/rust/nac3/nac3core/src/codegen/mod.rs:225:13

btw I am thinking about how to improve this error message...

Fixed the cyclic reference issue. Apart from that, it seems that the port has type error: `thread '<unnamed>' panicked at 'Codegen error: CompileError: Error getting field phaser0: CompileError: Error getting field channel: CompileError: Error getting element 0: CompileError: Error getting field trf_mmap: CompileError: Error getting element 5: CompileError: 2425360398 is not in the range of int32', /home/pca006132/code/rust/nac3/nac3core/src/codegen/mod.rs:225:13` btw I am thinking about how to improve this error message...
Author
Owner

That's a bit annoying, the list should contain that value indeed. The best solution would be #14 ...

That's a bit annoying, the list should contain that value indeed. The best solution would be https://git.m-labs.hk/M-Labs/nac3/issues/14 ...
sb10q closed this issue 2022-03-01 11:47:05 +08:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#202
No description provided.