Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000168 [cparser] firm graph generation minor always 2016-01-10 08:49 2016-01-19 08:01
Reporter nobody View Status public  
Assigned To
Priority normal Resolution duplicate  
Status resolved   Product Version
Summary 0000168: src/firm/ast2firm.c:3403: panic in descend_into_subtype: Cannot continue
Description src/firm/ast2firm.c:3403: panic in descend_into_subtype: Cannot continue

Program received signal SIGABRT, Aborted.
0x00007ffff7765657 in __GI_raise (sig=sig@entry=6)
    at ../sysdeps/unix/sysv/linux/raise.c:55
55 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt full
#0 0x00007ffff7765657 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
        resultvar = 0
        pid = 16620
        selftid = 16620
0000001 0x00007ffff7766a2a in __GI_abort () at abort.c:89
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {140737488344176, 4204160, 140737351974624, 1, 11370944, 140737488345696, 0, 0, 5236648, 16404192, 16404192, 73,
              140737345804480, 140737348708704, 140737488334176, 0}}, sa_flags = -139646624, sa_restorer = 0x7ffff7fc7700}
        sigs = {__val = {32, 0 <repeats 15 times>}}
0000002 0x0000000000465cba in panic (file=0x713d7a "src/firm/ast2firm.c", line=3403, func=0x7148df "descend_into_subtype", msg=0x7148f4 "Cannot continue") at ./src/adt/panic.h:14
No locals.
0000003 0x000000000046badb in descend_into_subtype (path=0x7fffffffd578, pos=0x7ffff7f2e028) at src/firm/ast2firm.c:3403
        arr = 0xb45300
        orig_top_type = 0xb45300
        top_type = 0xb45300
        initializer = 0x0
        top = 0xfa4f00
        len = 0
0000004 0x000000000046b1d6 in create_ir_initializer_list (initializer=0x7ffff7f2e020, type=0xb45300) at src/firm/ast2firm.c:3603
        path = {path = 0xfa4f00, top_type = 0xa41350, invalid = false}
        result = 0xf621c0
0000005 0x000000000046ae51 in create_ir_initializer (initializer=0x7ffff7f2e020, type=0xb45300) at src/firm/ast2firm.c:3704
No locals.
0000006 0x000000000046b312 in create_ir_initializer_list (initializer=0xb4d4e0, type=0xb45340) at src/firm/ast2firm.c:3639
        sub_initializer = 0x7ffff7f2e020
        tinitializer = 0xf620f0
        sub_irinitializer = 0xf621c0
        path_len = 1
        entry = 0xfa4eb0
        i = 8
        path = {path = 0xfa4eb0, top_type = 0xb45300, invalid = false}
        result = 0x7fffffffd620
0000007 0x000000000046ae51 in create_ir_initializer (initializer=0xb4d4e0, type=0xb45340) at src/firm/ast2firm.c:3704
No locals.
0000008 0x0000000000465ae5 in create_variable_initializer (entity=0xb59230) at src/firm/ast2firm.c:3968
        irentity = 0xf63780
        irinitializer = 0xffffd710
        initializer = 0xb4d4e0
        declaration_kind = DECLARATION_KIND_GLOBAL_VARIABLE
        state = 59
        type = 0xb45340
        tq = TYPE_QUALIFIER_CONST
0000009 0x0000000000464882 in scope_to_firm (scope=0xa3e7a0) at src/firm/ast2firm.c:5097
        alias = 0x0
        entity = 0xb59230
0000010 0x0000000000464423 in translation_unit_to_firm (unit=0xa3e7a0) at src/firm/ast2firm.c:5182
        cwd = 0xa068c0 <get_cwd.buf> "/tmp"
#11 0x0000000000457df5 in build_firm_ir (env=0x7fffffffd918, unit=0xa10040) at src/driver/c_driver.c:772
        t_construct = 0xa43ce0
0000012 0x0000000000454c95 in process_unit (env=0x7fffffffd918, unit=0xa10040) at src/driver/driver.c:226
        type = COMPILATION_UNIT_AST
        handler = 0x457d70 <build_firm_ir>
#13 0x0000000000454db4 in process_all_units (env=0x7fffffffd918) at src/driver/driver.c:247
        ok = false
        unit = 0xa10040
0000014 0x00000000004027e5 in action_compile (argv0=0x7fffffffe117 "/tmp/firm/cparser/build/debug/cparser") at ./src/main.c:269
        env = {out = 0x0, outname = 0x0}
        result = 0
0000015 0x0000000000402e2d in main (argc=71, argv=0x7fffffffda68) at ./src/main.c:343
        state = {argc = 71, argv = 0x7fffffffda68, i = 71, argument_errors = false, had_inputs = true, action = 0x402780 <action_compile>}
        ret = 0
(gdb)
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0000245)
Matze (administrator)
2016-01-10 21:37

Hi thanks for the bugreport. Generally it would help us a lot if we have a way to reproduce the problem. It would be good to have the exact commandline used that triggered the bug and ideally also the preprocessed sourcecode. You can produce preprocessed sourcecode by taking the the crashing commandline, replace -c with -E and maybe set a new destination after the -o flag.
(0000258)
Tron (administrator)
2016-01-19 08:01

Either this is a duplicate of 0000172 or this was an attempt to initialize a flexible array member, which is not supported (yet).
The latter is mentioned in the error message, which is displayed one line above the panic message shown in the report.
Please always quote the whole output, not just the last line, which on its own usually is useless.

- Issue History
Date Modified Username Field Change
2016-01-10 08:49 nobody New Issue
2016-01-10 21:37 Matze Note Added: 0000245
2016-01-19 07:02 Tron Project libFirm => cparser
2016-01-19 08:01 Tron Note Added: 0000258
2016-01-19 08:01 Tron Status new => resolved
2016-01-19 08:01 Tron Resolution open => duplicate
2016-01-19 08:01 Tron Category x86 ia32 backend => firm graph generation
2016-01-19 08:01 Tron version development =>


Mantis 1.1.5[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker