poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug default/26409] New: Crash when using variable-size types as offset


From: m.nabipoor at yahoo dot com
Subject: [Bug default/26409] New: Crash when using variable-size types as offset unit
Date: Thu, 20 Aug 2020 00:57:05 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26409

            Bug ID: 26409
           Summary: Crash when using variable-size types as offset unit
           Product: poke
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: default
          Assignee: unassigned at sourceware dot org
          Reporter: m.nabipoor at yahoo dot com
                CC: poke-devel at gnu dot org
  Target Milestone: ---

Created attachment 12783
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12783&action=edit
Backtrace

Using types that have unknown size at compile-time as offset unit leads to
crash:


(poke) deftype Packet = struct { uint<8>[] data; }
(poke) #Packet
lt-poke: ../../libpoke/pkl-ast.c:934: pkl_ast_sizeof_type: Assertion
`PKL_AST_TYPE_COMPLETE (type) == PKL_AST_TYPE_COMPLETE_YES' failed.
Aborted (core dumped)


I think printing an error message is much more user-friendlier :)

BTW you can find the backtrace in attached file
(`uknown-size-type-as-unit.bt.txt`).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]