Ticket #940 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

miniparrot segfaults on Windows

Reported by: fperrad Owned by: whiteknight
Priority: critical Milestone:
Component: core Version: 1.5.0
Severity: high Keywords:
Cc: whiteknight Language:
Patch status: Platform:

Description

With MinGW, miniparrot segfaults during the build.

(gdb) r
Starting program: C:\fperrad\Parrot\trunk/miniparrot.exe config_lib.pasm

Program received signal SIGSEGV, Segmentation fault.
0x686f732a in Parrot_gc_get_attributes_from_pool (interp=0x3f4008, pool=0xabababab) at src/gc/mark_sweep.c:1246
1246        if (pool->top_arena == NULL
(gdb) bt
#0  0x686f732a in Parrot_gc_get_attributes_from_pool (interp=0x3f4008, pool=0xabababab) at src/gc/mark_sweep.c:1246
#1  0x686f3d94 in Parrot_gc_allocate_pmc_attributes (interp=0x3f4008, pmc=0xa9a7f8, size=72) at src/gc/api.c:1698
#2  0x68726372 in get_new_pmc_header (interp=0x3f4008, base_type=54, flags=4096) at src/pmc.c:496
#3  0x68726b78 in create_class_pmc (interp=0x3f4008, type=54) at src/pmc.c:840
#4  0x68726def in Parrot_create_mro (interp=0x3f4008, type=54) at src/pmc.c:919
#5  0x68880822 in Parrot_FileHandle_class_init (interp=0x3f4008, entry=54, pass=1) at src/pmc/filehandle.c:2521
#6  0x686dcf76 in Parrot_initialize_core_pmcs (interp=0x3f4008, pass=1) at src/core_pmcs.c:164
#7  0x686f9290 in init_world (interp=0x3f4008) at src/global_setup.c:169
#8  0x686f9414 in init_world_once (interp=0x3f4008) at src/global_setup.c:136
#9  0x68702cee in make_interpreter (parent=0x0, flags=0) at src/interp/inter_create.c:194
#10 0x686e4469 in Parrot_new (parent=0x0) at src/embed.c:117
#11 0x0040133f in main (argc=2, argv=0x3f28a8) at src/main.c:51
(gdb)

the build is OK with #define GC_USE_FIXED_SIZE_ALLOCATOR 0

Change History

Changed 5 years ago by NotFound

Fixed size allocator disabled on windows in r40689, until this problem gets fixed.

Changed 5 years ago by whiteknight

  • owner set to whiteknight

Changed 5 years ago by whiteknight

  • status changed from new to closed
  • resolution set to fixed

The fixed-size allocator has been enabled on Windows for a few days now with no problem. I'm closing this ticket and removing the special-purpose code that disables this for Windows. We can open a new ticket for subsequent issues.

Note: See TracTickets for help on using tickets.