FW: Segmentation fault in program

2001-02-23 Thread Reuben Thomas
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 trying

RE: Segmentation fault in program

2001-02-14 Thread Simon Marlow
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 to be able to pass streams of data from a C program to a Haskel

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 ___

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 away when

Re: Segmentation fault in program

2001-02-12 Thread Sigbjorn Finne
01 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 larger amounts of data, however, it will crash with a

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 happening

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