FW: Segmentation fault in program

2001-02-23 Thread Reuben Thomas
cular test data for which it failed? [Sigbjorn has since sent me such data, which still work fine for me.] -Original Message- From: T.J. Brown [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 11:06 PM To: [EMAIL PROTECTED] Subject: Segmentation fault in program Hi, I'm

Re: Segmentation fault in program

2001-02-16 Thread Christian Lescher
>> No, that's not it. I've been able to repro this with >> __init_ConvertProxy >> too - did you test it? (This is with 4.08.1 on a Win2k box.) > >Yes, I did, and was able to demonstrate a crash which went away when I >changed __init_Convert to __init_ConvertProxy (with 4.08.2, but not on a >Win2k

RE: Segmentation fault in program

2001-02-14 Thread Simon Marlow
> > The problem is indeed that the wrong __init_Foo is being passed to > > startupHaskell. > > No, that's not it. I've been able to repro this with > __init_ConvertProxy > too - did you test it? (This is with 4.08.1 on a Win2k box.) Yes, I did, and was able to demonstrate a crash which went awa

Re: Segmentation fault in program

2001-02-14 Thread Sigbjorn Finne
> The problem is indeed that the wrong __init_Foo is being passed to > startupHaskell. No, that's not it. I've been able to repro this with __init_ConvertProxy too - did you test it? (This is with 4.08.1 on a Win2k box.) --sigbjorn ___ Glasgow-haskel

RE: Segmentation fault in program

2001-02-14 Thread Simon Marlow
ilto:[EMAIL PROTECTED]] > Sent: Tuesday, February 13, 2001 4:10 PM > To: Simon Marlow > Subject: RE: Segmentation fault in program > > > I believe I'm passing the correct __init_Foo unless > I'm confused. Attached is the code. > > My ultimate goal here is

RE: Segmentation fault in program

2001-02-13 Thread Simon Marlow
nd me the code and I'll take a look. Cheers, Simon > -Original Message- > From: Sigbjorn Finne [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 12, 2001 8:07 PM > To: T.J. Brown > Cc: [EMAIL PROTECTED] > Subject: Re: Segmentation fault in program > >

Re: Segmentation fault in program

2001-02-12 Thread Sigbjorn Finne
onday, February 12, 2001 19:21 Subject: Re: Segmentation fault in program > After making the changes suggested below and updating > the GHC driver script to fix the -no-hs-main bug, my > program will successfully complete when processing a > small amount of data. When processing l

Re: Segmentation fault in program

2001-02-09 Thread T.J. Brown
I made the modifcations you suggested (convert __init_Main to __init_Convert and that results in: /usr/lib/ghc-4.08.1/libHSstd.a(PrelMain__1.o)(.text+0x16): undefined reference to `__init_Main' I get the same result when I try to compile the test program that you sent to me. Attached is the out

RE: Segmentation fault in program

2001-02-09 Thread Simon Marlow
> > However, if you recompile and link, I believe you'll see it crashing > even more regularly - I suspect this is due to a bug in the GHC > RTS (at least 4.08.1's, don't know if 4.08.2 has fixed this) Attached > is a simpler program that shows up the problem. Try adding an extra & before __init

Re: Segmentation fault in program

2001-02-09 Thread Sigbjorn Finne
"T.J. Brown" [EMAIL PROTECTED] writes: > > I'm trying to write a program (in C) that calls a > function that is implemented in Haskell. > ... > The problem I'm seeing is that depending > on the size of the buffer, the program segmentation > faults. I don't see any obvious reason that this is > ha

Segmentation fault in program

2001-02-08 Thread T.J. Brown
Hi, I'm trying to write a program (in C) that calls a function that is implemented in Haskell. The inputs to the function is: a pointer to a buffer of unsigned longs, the length of the input buffer, and a pointer to a buffer of unsigned chars. The function is to convert the buffer of unsigned l