Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Cygwin problems are GC not ICU
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Leopold Toetsch  
View profile  
 More options May 6 2004, 1:40 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Thu, 6 May 2004 07:40:46 +0200
Local: Thurs, May 6 2004 1:40 am
Subject: Re: Cygwin problems are GC not ICU

Joshua Gatcomb <limbic_region_2...@yahoo.com> wrote:
> --- Leopold Toetsch <l...@toetsch.at> wrote:
>> (gdb) bt
>> (gdb) p pmc
>> /gdb) p *((Dead_PObj*)pmc)
>> would be good.
> Program received signal SIGSEGV, Segmentation fault.
> #5  0x0053fb75 in Parrot_ParrotInterpreter_class_init

Early in program startup.

> (gdb) p *((Dead_PObj*)pmc)
> $2 = {free_list_ptr = 0x1810000,
> object_buflen_dont_use = 0, object_flags_dont_use = 0,
>   arena_dod_flag_ptr = 0x0, flag_shift = 0}

                         ^^^

Somethings is *really* wrong here. I don't know exactly what's happening
here, but I assume that the memalign function is buggy. To nail that
further down:

1) Determine the used memalign function:

$ grep memalign lib/Parrot/Config.pm
             'memalign' => 'memalign',

It could be 'posix_memalign' too.

2) Copy either config/auto/memalign/ test_c.in or test_c2.in somewhere
   as e.g. align.c

3) Replace
#include <${malloc_header}>
with     <malloc.h>
or whatever is the correct header file. see e.g. "man memalign"

4) compile and run it:
$ cc -Wall -g align.c -o align && ./align
ok

5) Now the easy part: Vary the alignment of the function and the test,
if actually the lo bits are zero.

BTW Kind of this "stress" test is very welcome for the config system.

Google around, if you can find signs of a broken memalign function on
your system.

> Cheers

leo

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.