[Haskell-cafe] Stack overflow in simple code with getStdRandom / randomR (GHC)

2011-04-19 Thread Volker Stolz
The following three-liner creates a stack overflow (on my machine, MacOS), and I'm a bit puzzled as to why: import System.Random main = do mapM (const (getStdRandom (randomR (0, 5::Int [0..1000] botanix:~ stolz$ ./a.out Stack space overflow: current size 8388608 bytes. Use

Re: [Haskell-cafe] Stack overflow in simple code with getStdRandom / randomR (GHC)

2011-04-19 Thread Volker Stolz
Blimey, I didn't notice that Krzysztof came to the same conclusion a bit earlier today, so I guess the answer is somewhere in his remark One possible solution is to make cell holding std gen strict.. I'd still be interested in how to profile for this scenario, though. -Volker

Re: threadDelay not ending

2006-09-20 Thread Volker Stolz
* Rich Fought [EMAIL PROTECTED]: I've got some unit test code that forks off test processes using the 'system' function and then delays using 'threadDelay' to synchronize with the test process. This has worked fine until I upgraded to 6.4.2, now some of the 'threadDelay' calls never

FreeBSD [Re: 6.4.2 under solaris]

2006-04-28 Thread Volker Stolz
) 67244 ghc-6.4.2 RET kse_release -1 errno 22 Invalid argument (KSEs are 'kernel scheduling entities') Unfortunately, I didn't have any coffee yet, so I killed it instead of trying to get a core dump. After restarting the build, it works w/o problems. Volker -- Volker Stolz * http://www-i2

Re: 6.4.2 under solaris

2006-04-24 Thread Volker Stolz
* Christian Maeder [EMAIL PROTECTED]: P.S. the non-termination of the final stage2 compiler still needs further investigation (that I cannot do alone) How about throwing 'truss' at it? Maybe this reveals a blatant reason. Volker -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP ***

Re: 6.4.2 under solaris

2006-04-20 Thread Volker Stolz
* Christian Maeder [EMAIL PROTECTED]: I also had to adapt again the call of ctime_r in ghc/rts/RtsUtils.c #if HAVE_CTIME_R - ctime_r(now, nowstr, 26); + ctime_r(now, nowstr); #else 26 is supposed to be the size of the buffer nowstr. Maybe 27 is also fine? According to the man

Re: 6.4.2 under solaris

2006-04-20 Thread Volker Stolz
Am 20. Apr 2006 um 11:19 CEST schrieb Christian Maeder: Volker Stolz wrote: Without the 3rd arg is according to POSIX (check your Solaris man page). 'buf' is required to be at least 26 bytes. You're right, but it does not compile without the 3rd argument! Maybe this is due to gcc_4.0.3_s10

Re: 6.4.2.20060411 under solaris

2006-04-18 Thread Volker Stolz
* Simon Marlow [EMAIL PROTECTED]: This bit of Makefile code is possibly going wrong for you: -include $(shell echo $(ProjectDirectory) | tr A-Z a-z)/mk/config.mk -include $(shell echo $(ProjectDirectory) | tr A-Z a-z)/mk/version.mk Try this instead: $ make Project=Ghc

Re: Threaded runtime error

2006-03-22 Thread Volker Stolz
* Volker Stolz [EMAIL PROTECTED]: [EMAIL PROTECTED] [20:17:08] ./timeout 10 /usr/bin/true FFatal error '_pq_insert_tail: Already in priority queue' at line 200 in file /usr/src/lib/libpthread/thread/thr_priority_queue.c (errno = 0) A workaround seems to use another threading library here

Re: Allocating aligned memory?

2006-03-09 Thread Volker Stolz
* Li, Peng [EMAIL PROTECTED]: In GHC, how can I allocate a chunk of memory aligned to some block size (say, 512 or 1024 bytes)? I tried to specify it in the alignment method in the Storable typeclass, but that does not seem to work. Is Storable.alignment really used in GHC? If so, is there a

[Haskell] Re: error rebuilding ghc-6.4

2005-05-30 Thread Volker Stolz
* vadim [EMAIL PROTECTED]: when trying to rebuild ghc-6.4 from source, I fall into following error: gcc -o hp2ps -O -I../../includes -Wall AreaBelow.o AuxFile.o Axes.o Curves.o Deviation.o DimensiDeviation.o(.text+0x316): In function `Deviation': : undefined reference to `sqrt' For some

Re: Bus Error with ghc 6.4 on Solaris

2005-04-15 Thread Volker Stolz
In gmane.comp.lang.haskell.glasgow.bugs, you wrote: Simon M is away today and Monday, but I do recall him saying something about the Solaris port being broken. I'm sure he would welcome help getting it fixed. Are there any of you who build GHC from source, and know Solaris? I'm currently

Re: new ghc under solaris

2005-03-01 Thread Volker Stolz
* Christian Maeder [EMAIL PROTECTED]: I used gcc_2.95.3 until I discovered the warning: LdvProfile.c:43: #error Please use gcc 3.0+ to compile this file with DEBUG; gcc 3.0 miscompiles it This usually happens if you use build.mk.sample. Simply remove the -DDEBUG from the options (unless

Re: OpenAL builds despite --disable-openal

2004-12-27 Thread Volker Stolz
In gmane.comp.lang.haskell.glasgow.user, you wrote: Volker Stolz writes: Fix attached. Thank you! Is this patch gonna make it into CVS? Done. Sven is probably on vacations. -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME

Re: Porting to NetBSD Alpha (alpha-unknown-netbsd)

2004-12-20 Thread Volker Stolz
In gmane.comp.lang.haskell.glasgow.user, you wrote: [missing ieee_fp_set_control] I've been staring at http://www.freebsd.org/cgi/man.cgi?query=ieee_set_fp_controlapropos=0sektion=0manpath=OSF1+V5.1%2Falphaformat=html to find out the correct fpset*()-function. fpsetmask() should do the trick, but

Re: OpenAL builds despite --disable-openal (was: Error building GHC: can't locate import `Package')

2004-12-20 Thread Volker Stolz
In gmane.comp.lang.haskell.glasgow.user, you wrote: It shouldn't even build OpenOL, however, because I ran ./configure with --disable-openal. I see the flag in libraries/config.log, so it has been passed through alright. But ${SUBDIRS} contains the OpenAL directory nonetheless afterwards.

Re: getUserEntryForName weirdness

2004-11-05 Thread Volker Stolz
In gmane.comp.lang.haskell.glasgow.user, you wrote: Is anyone else seeing this on his system? getUserEntryForName [] = print . userName wasabi Fixed in CVS -- I was only able to test this on SunOS where your example would segfault. -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP

Re: Compiling from CVS on Sparc/Solaris

2004-10-20 Thread Volker Stolz
In gmane.comp.lang.haskell.glasgow.bugs, you wrote: Fair enough... The problem I'm having (which my proposed fix did in fact not solve) is that my readline libraries are in a non-standard location. Currently the final linking of stage1/ghc-6.2.2 (in this case) dies complaining about not

Re: Preprocessors

2004-10-20 Thread Volker Stolz
, though. If I'm reading this correctly, your incorrectly terminated C-string literal confuses cpp, so it won't do any macro expansion in the offending part (past the single quote). -- Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME

Re: linker errors

2004-09-13 Thread Volker Stolz
In gmane.comp.lang.haskell.glasgow.user, you wrote: When compiling using ghc, I get the following error: Parser.o(.text+0x10fc5): In function `r1fgN_entry': : undefined reference to `DataziTuple_Z77T_con_info' collect2: ld returned 1 exit status What platform and gcc? Could you please invoke

Re: isEmptyChan, System.Posix.Signals

2004-08-15 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: 1. 'isEmptyChan x' blocks if x is empty and some other thread is waiting to read from x: Prelude Control.Concurrent x - newChan Prelude Control.Concurrent forkIO $ readChan x Prelude Control.Concurrent empty - isEmptyChan x *** Exception: thread

Re: Network, sClose

2004-08-11 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: Essentially, Network.recvFrom is only of use to simple, stupid programs; specifically, programs which only wish to accept a single connection. This has been noted (various?) times on the mailing-lists. You'd never want to use it in a real application.

Re: can you block a thread in GHC by its threadID?

2004-06-22 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: On 22 June 2004 10:39, Bernard James POPE wrote: Supposing that such a thing is indeed possible is there any chance that it could be folded into GHC? (Then I wouldn't have to ship my own variant of the runtime with buddha.) Certainly, I don't see

Re: Glasgow Haskell on different versions of Linux

2004-06-09 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: Christian Maeder wrote: What is ctype.h good for? A good question. Its only use seems to be in ghc/rts/RtsFlags.c where it is used for functions like isdigit and isspace for decoding the RTS flags. Maybe it should be retired altogether. I'm

Re: reaching Happy parser

2004-05-17 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: Please, who knows how to download and install in the easiest way the Happy parser Maybe, you now some mirrors ... http://www.mirror.ac.uk/sites/www.haskell.org/ -- http://www-i2.informatik.rwth-aachen.de/stolz/ ***

Re: [ ghc-Bugs-954378 ] getFileStatus does not include the file name in IO-Error

2004-05-15 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: Summary: getFileStatus does not include the file name in IO-Error Hm, it looks like none of the functions in there return a hint as to which argument caused the error. All of them should probably include filenames etc into exceptions. Volker -- Volker

Re: ghc-6.2/opengl

2004-01-20 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: we have compiled ghc-6.2 --enable-hopengl from source (with ghc-6.0) on SunOS userv2 5.8 Generic_108528-27 sun4u sparc SUNW,Ultra-60. Linking ... Undefined first referenced symbol in file

Re: Fail to compile ghc-6.2 on a Sun/Sparc

2004-01-15 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: Ok, that was definitely my fault. I´ve built the gnu-make and tried again. After an hour of compilation ghc ended with: ./../ghc/utils/hsc2hs/hsc2hs-inplace -Iinclude -I../../ghc/includes -I. GHC/Unicode.hsc Unicode.hsc: In function `main':

Re: Useful info from crash?

2003-11-01 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: I have a ghc program that appears to be causing a memory error (either segfaulting or tripping up X and killing my session). Are you sure it's segfaulting? You might simply run low on memory and your system starts killing processes to free up memory.

Re: File permissions of /tmp files

2003-10-29 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: It might even be possible to create the file and then remove(3) it, right away. The file handle will continue to work, but there is never an entry in the file system. IIRC this is not possible because files are referenced in the different phases by

Re: unknown symbol `__stginit_List_'

2003-10-29 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: (This is when invoking ghci -package yahu) Loading package base ... linking ... done. Loading package yahu ... linking ... /.../chalmers.se/fs/cab/cs/work/proj/multi/pub/lib/yahu/Yahu/YahuHaskell.o: unknown symbol `__stginit_List_' ghc-6.0.1: panic!

ghci TclHaskell

2003-10-22 Thread Volker Stolz
], framework_dirs = [], extra_frameworks = []}] -- Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: getSignalMask ghc6.0.1

2003-10-09 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: I can't do much with the provided examples, because getSignalMask exits the program with: Fail: invalid argument Action: getSignalMask Reason: Invalid argument Looks like an actual bug in the library. Should be fixed in CVS now. --

Re: compiler bug? sunos 5.8, ghci-6.0.1 -package unix

2003-09-15 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: and the some for the precompiled version, i getting the following error. Loading package unix ... linking ... /home/xxx/local/lib/HSunix.o: unknown symbol `sendfile' Hrmph. Sorry for the hassle. Please try adding sendfile to the list of

Re: Posix library ,Concurrent Haskell and Haskell IO sub-system

2003-07-11 Thread Volker Stolz
On Fri, Jul 11, 2003 at 08:39:54AM +0200, Rafael Martinez Torres wrote: (piper,pipew) - createPipe piperHandle - fdToHandle(piper) threadWaitRead ( fdToInt(handleToFd(piperHandle)) ) message - hGetLine piperHandle --or whatever. There's no need to call threadWaitRead, Haskell's RTS will take

Re: passing a Handle to a C function

2003-07-10 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: For Unix, use Posix.handleToFd to get a descriptor, then fdopen() (in C, or write a foreign import) to get a FILE*. Also, don't forget about synchronisation issues between the C and Haskell interfaces to the descriptor (e.g. buffering). After the

Re: Posix library ,Concurrent Haskell and Haskell IO sub-system

2003-07-10 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: I use the Posix library since I have to communicate via a pipe with another UNIX process. Therefore I have to use fdRead :: Fd - ByteCount - IO (String,ByteCount) Why do you have to use an Fd? A regular handle should be sufficient. Where do you get

Re: isEmptyChan blocks?

2003-06-30 Thread Volker Stolz
'getCountChan' turns its back on the channel, the item will still have disappeared.] [although I consider mapM_ (uncurry putMVar) (zip counts (map (+1) vs)) rather neat :)] Not as neat as zipWithM_ putMVar counts (map (+1) vs) Point taken. Volker -- Volker Stolz * http://www-i2

Re: sockets and handles in ghc

2003-06-30 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: I've been using sockets and handles with ghc-5.04.3. The strange thing is now that when I make a handle out of a socket and ask whether the handle is readable or writable, it returns True for the former and False for the latter, although sockets are

Re: sockets and handles in ghc

2003-06-27 Thread Volker Stolz
[Moving to [EMAIL PROTECTED] In local.haskell, you wrote: I've been using sockets and handles with ghc-5.04.3. The strange thing is now that when I make a handle out of a socket and ask whether the handle is readable or writable, it returns True for the former and False for the latter,

Re: GHC 6.0 Release: sparc-solaris2 binaries

2003-06-04 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: I am having trouble installing the package in a non-standard place. After downloading and unpacking I did: There have been some fixes to this particular package. Please check if there's a more recent package (t 1 day)! Volker --

Re: problem compiling OpenGL/.../Extensions.hs with GHC version 6.0

2003-06-03 Thread Volker Stolz
Could the parties involved with the quoting issue please test the following patch? It doesn't use an additional shell for starting sub-tasks and does no additional quoting so that quoting remains unaffected, i.e. testing with OpenGL shows that the double quotes are indeed passed through. Sven, do

Re: lecture

2003-06-03 Thread Volker Stolz
In local.haskell, you wrote: I am student of Computer Science and I have to write a lecture on ghc network module. Where can I get some code samples of this module. I am looking for short progrmas that show how to use network module. There's nothing special about Haskell's/GHC's networking

Re: Problems building ghc-current

2003-05-28 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: I'm trying to compile the latest version of GHC from CVS. I followed the instructions on GHC's web page and everything worked just fine. But when I updated the sources with cvs update -dP as instructed, CVS checked-out pretty much everything the CVS

Re: Problems building ghc-current

2003-05-28 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: | 2.4. Updating Your Source Tree | It can be tempting to cvs update just part of a source tree to bring in | some changes that someone else has made, or before committing your own | changes. This is NOT RECOMMENDED! [...] | | So, to avoid a lot of

HEAD: the `impossible' happened, MacOS X

2003-03-20 Thread Volker Stolz
): ASSERT failed! file stgSyn/CoreToStg.lhs line 188 randomIvalDouble1 {- v s2Im -} -- Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo

Re: HEAD: the `impossible' happened, MacOS X

2003-03-20 Thread Volker Stolz
when using -O! -- Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: fun with sockets (ghc-5.04.1)

2003-03-19 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: After processing a random number of connections, the server dies with Fail: invalid argument Action: accept Reason: Invalid argument [...] I don't know what's wrong, I'm afraid. Any chance you could supply us with a working example that

Re: More problems compiling GHC on Mac OS X

2003-03-17 Thread Volker Stolz
Am 17. Mar 2003 um 02:04 CET schrieb Kirsten Chevalier: On Sun, Mar 16, 2003 at 04:09:31PM +0100, Volker Stolz wrote: In local.glasgow-haskell-users, you wrote: Sendfile.hsc:94: Couldn't match `IO ()' against `Fd - Fd - Int - Int - IO ()' Should be fixed in CVS now, thanks

Re: More problems compiling GHC on Mac OS X

2003-03-16 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: Sendfile.hsc:94: Couldn't match `IO ()' against `Fd - Fd - Int - Int - IO ()' Should be fixed in CVS now, thanks! -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME rage against the finite state machine

Re: sockets (ghc-5.04.1)

2003-02-07 Thread Volker Stolz
a typdef for CInt] -- Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME http://news.bbc.co.uk: `Israeli forces [...], declaring curfews that confine more than 700,000 people to their homes.' ___ Glasgow-haskell-users mailing list

Re: sockets (ghc-5.04.1)

2003-01-16 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: I have a program that uses INET sockets and I wanted to change it to use Unix domain sockets. Here is the relevant code: sock - listenOn portID (h, hostname, portnumber) - accept sock I get an error message when running it with portID =

Re: [ ghc-Bugs-643878 ] sortBy not stable

2002-11-26 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: The library report requires that sortBy be stable. In 5.04.1 it isn't: [Simon, I must have missed that ghc-bugs is subscribers-only] There's an #ifdef'ed version in there which is stable, but the newer mergesort is not: #ifdef USE_REPORT_PRELUDE sort

Re: [ ghc-Bugs-643878 ] sortBy not stable

2002-11-26 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: The library report requires that sortBy be stable. In 5.04.1 it isn't: It looks like the change to mergesort broke this property: #ifdef USE_REPORT_PRELUDE sort = sortBy compare sortBy cmp = foldr (insertBy cmp) [] #else sortBy cmp l = mergesort cmp

Re: bug in unix/System/Posix/Files.hsc

2002-11-15 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: readSymbolicLink is broken, it assumes that readlink(2) null terminates its result when it doesn't. this causes all sorts of badness. This should fix it, although all my CVS trees are hosed right now (now how did I manage to break something in the

Re: docs bug

2002-09-09 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: http://www.mirror.ac.uk/sites/www.haskell.org/ghc/docs/latest/html/base/Data.Bits.html The description of each method of the Bits class seems to be attached to the signature of a different method. The documentation generated by haddock 0.4 looks fine

Re: select() failure

2002-08-29 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: It sure would simplify my program if I could fork a process and not have auxiliary threads persist in the child. Could this option be provided by GHC RTS in a semantically sound way? On a recent GHC you can try 'forkProcess[Prim]':

Re: how to catch GHC no threads to run exception?

2002-08-02 Thread Volker Stolz
In local.haskell, you wrote: Since I have 3 threads waiting on takeMVar, do I have to wrap all of them with Exception.catch? Yes. Especially since ghc-5.04, you cannot be sure which of the blocked threads will get killed first:

Re: how to catch GHC no threads to run exception?

2002-08-01 Thread Volker Stolz
In local.haskell, you wrote: test: no threads to run: infinite loop or deadlock? My problem is that this behavior is actually desired, but how do I catch this exception and do some bookkeeping (closing external IO, etc.) and then a proper exit? You can wrap the `takeMVar' with

Deadlock detection different in ghc-5.04?

2002-07-22 Thread Volker Stolz
Control.Exception.catch (takeMVar mv_deadlock) -- deadlock (\ e - putMVar mv_should_work ()) yield yield yield Control.Exception.catch (takeMVar mv_should_work) (\ e - putStrLn $ main caught: ++ (show e)) \end{code} -- Volker Stolz * http://www-i2

Re: System.system broken?

2002-07-17 Thread Volker Stolz
In local.glasgow-haskell-users, you wrote: is System.system broken in 5.04? i am using the rpm provided on the web site and this call appears to be broken. in particular, using strace i find that it is attempting the following call [pid 16975] execve(n/sh, [/bin/sh, -c, echo foo], [/* 67

Document -optl-static

2002-07-17 Thread Volker Stolz
how to build entirely static binaries. Opinions? -- Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME http://news.bbc.co.uk: `Israeli forces [...], declaring curfews that confine more than 700,000 people to their homes

Re: Document -optl-static

2002-07-17 Thread Volker Stolz
would be to rename the current -static to e.g. -hsstatic and let the actual -static be equivalent to -hsstatic -optl-static. That way, you don't loose the current possibility, although I cannot thing of any useful application, either. -- Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz

Re: sigCHLD signal handling (Was: Re: pipes? threadWaitRead?)

2002-07-15 Thread Volker Stolz
In local.glasgow-haskell-bugs, you wrote: Am 10. Jul 2002 um 22:21 CEST schrieb Dean Herington: The first issue I confronted is that the get*ProcessStatus routines return an error rather than nothing if there is no candidate child process. Yes, `waitpid' might return with EINTR which will

Re: panic in ghc5.02.3

2002-04-10 Thread Volker Stolz
line in 'vi'. I won't judge if ghc-5.02.3 is wrong here, though. -- Wonderful \hbox (0.80312pt too nice) in paragraph at lines 16--18 Volker Stolz * [EMAIL PROTECTED] Please use PGP or S/MIME for correspondence! ___ Glasgow-haskell-bugs mailing list [EMAIL

Re: Cannot build 5.02.2 on Solaris 2.7

2002-04-05 Thread Volker Stolz
(0.80312pt too nice) in paragraph at lines 16--18 Volker Stolz * [EMAIL PROTECTED] Please use PGP or S/MIME for correspondence! ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: Bug in IO libraries when sending data through a pipe?

2002-03-18 Thread Volker Stolz
, there is a buffer's worth missing. Moral of this story: don't use lazy I/O. There's a warning in the documentation of executeFile to exactly the same end after all... -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL

Re: Bug in IO libraries when sending data through a pipe?

2002-03-15 Thread Volker Stolz
. Regards, Volker -- Wonderful \hbox (0.80312pt too nice) in paragraph at lines 16--18 Volker Stolz * [EMAIL PROTECTED] Please use PGP or S/MIME for correspondence! ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman

Re: Bug in IO libraries when sending data through a pipe?

2002-03-15 Thread Volker Stolz
, so I'd expect the same missing data as in your original case. -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: socket question

2002-02-11 Thread Volker Stolz
) in paragraph at lines 16--18 Volker Stolz * [EMAIL PROTECTED] Please use PGP or S/MIME for correspondence! ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

hsc: Passing -1 as CString/Ptr a?

2001-11-22 Thread Volker Stolz
) Ptr is abstract so I cannot create this Ptr myself. Maybe the Ptr-module just lacks a 'minusOnePtr' similar to 'nullPtr'? -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org

Re: Socket library ghc 5.02.1

2001-11-22 Thread Volker Stolz
by Simon Marlow and works. OTOH, this is not the bug you're seeing. -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Socket library ghc 5.02.1

2001-11-22 Thread Volker Stolz
to 'connect' it says; select(14, [], [13], NULL, {134, 217727}) = 1 (out [13], left {134, 21}) getsockopt(13, SOL_SOCKET, SO_ERROR, [0], [1]) = 0 This looks like some on-the-fly bitrotting in ghci :-/ -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME

AbsCStixGen.gencode panic

2001-11-16 Thread Volker Stolz
:: IO () main = do withModule (Just .) simple ModuleBindOnLoad $ \ mod - do funptr - moduleSymbol mod simple when (isNothing funptr) $ error fo! let res = iterator__ (castPtrToFunPtr (fromJust funptr)) withCString hello $ \ str - res str 1 return () \end{code} -- Volker

[5.02/5.02.1] hGetContents problem

2001-11-13 Thread Volker Stolz
) = 0x2 (flags O_RDWR) write(2, \nFail: , 7) = 7 write(2, failed\nAction: connect\nReason: B..., 51) = 51 write(2, \n, 1) = 1 _exit(1)= ? -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME

Re: Changed behaviour when reading from FIFOs!

2001-10-30 Thread Volker Stolz
), in a Concurrent Haskell programm and I need a way to lock out multiple readers from the same file handle because of the sharing when forking. -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http

Changed behaviour when reading from FIFOs!

2001-10-29 Thread Volker Stolz
++ fifoname openFile fifoname ReadMode else error $ Can´t create FIFO ++ fifoname ) \end{code} -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http

Re: Changed behaviour when reading from FIFOs!

2001-10-29 Thread Volker Stolz
of fifoReadLoop, and everything should be fine. This also fixes the other problem you mentioned above (varying numbers of last). The blocking is essential since I need to be able to use MVars between the threadWaitRead the hGetLine (remember the note I sent about fork()ing). -- Volker Stolz * [EMAIL

Re: GHC modules and packages

2001-10-28 Thread Volker Stolz
In local.haskell, you wrote: is there some documentation about which modules reside in which packages in GHC? You can take a look at http://www.haskell.org/ghc/docs/latest/set/book-hslibs.html. The top-level chapters ('category') are the packages. -- Volker Stolz * [EMAIL PROTECTED] * PGP

Re: Socket library

2001-10-25 Thread Volker Stolz
know how Windows/cygwin handle these things. You could modify SocketPrim to use the number 6 instead of trying to do the getprotobyname lookup, but that's not a real remedy. -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-users

Re: Blocking IO in module Socket

2001-10-22 Thread Volker Stolz
Am 22. Oct 2001 um 12:56 MET DST schrieb Simon Marlow: The call doesn't block, because the socket is set to non-blocking mode. Or have you perhaps observed different behaviour? It works here. Okay, I'm stupid. I can clearly see the 'threadWaitRead' statement now. -- Volker Stolz * [EMAIL

[5.02] Bug with existentially-quantified constructors

2001-10-18 Thread Volker Stolz
())] call li foo call st 3 call (C f) arg = do f arg \end{code} -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: Posix.runProcess

2001-09-19 Thread Volker Stolz
, unless you use forkIO. -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Bug with readFile and named pipes

2001-08-22 Thread Volker Stolz
the filetype and does The Right Thing(TM), but I`m not sure I want that, either. -- Neues aus Genua? http://germany.indymedia.org/ Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org

Re: POLL: GC options

2001-08-07 Thread Volker Stolz
? http://germany.indymedia.org/2001/07/4866.html Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: 2 questions regarding ghci and --make

2001-07-08 Thread Volker Stolz
in separate directories. How can I tell --make to look for them? Use the same options as you´d use for plain ghc: -i Saludos, Volker -- Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http

Fixed^2 (Re: Fixed! (Re: [5.01] Runtime error in SocketPrim?!))

2001-06-13 Thread Volker Stolz
(SockAddrInet (PortNum port) addr) -- size of struct sockaddr by family #if !defined(cygwin32_TARGET_OS) !defined(mingw32_TARGET_OS) -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL

[5.01] Runtime error in SocketPrim?!

2001-06-07 Thread Volker Stolz
Just s - do SocketPrim.inet_addr s SocketPrim.bindSocket sock (SocketPrim.SockAddrInet port i) SocketPrim.listen sock SocketPrim.maxListenQueue return sock -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME

Re: [5.01] Runtime error in SocketPrim?!

2001-06-07 Thread Volker Stolz
- mkPortNumber p)) print reached (PortNumber myPort) - socketPort socket print NOT REACHED let record = SocketR { socketR = socket, portR = (read (show myPort)) :: Port -- sigh } return record I'm still on it. -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL

[GHC5] Creating Socket.PortNumber from Int?

2001-06-06 Thread Volker Stolz
suppose I'm missing something essential here, as there must be a better way of doing it when passing a variable of type Int. -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED

ghc5 --make question

2001-06-06 Thread Volker Stolz
have to provide the corresponding top-level .hi and some .a-files to the ghc command line for compiling. Is there any way to use ghc --make without having to provide access to all of the *source* files and make it use the pre-compiled stuff? -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL

Re: [GHC5] Creating Socket.PortNumber from Int?

2001-06-06 Thread Volker Stolz
general way. Okay, here a nice way to handle this: #if __GLASGOW_HASKELL__ = 501 mkPortNumber = fromIntegral #endif -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED

finalizers broken (4.08.2 5.00)

2001-05-25 Thread Volker Stolz
. -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: Exceptions and sockets

2001-05-02 Thread Volker Stolz
in reality.) Looks to me like you're forgetting that the OS will give you a sigPIPE on (semi-)closed sockets, which translates to a segfault unless you install a signal handler: - http://www.haskell.org/ghc/docs/latest/set/socket.html#AEN13989 - socket(2) -- Abstrakte Syntaxträume. Volker Stolz

Patch [Re: [Fwd: Bug#94739: ./.ghci -- isn't it dangerous?]]

2001-04-30 Thread Volker Stolz
I attached a fix which will NOT source a suspicious file and print out a warning. Could anyone with Wintendo please confirm that the Posix-stuff doesn't break anything for them? -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME --- ghci/InteractiveUI.orig Mon Apr

Re: [Fwd: Bug#94739: ./.ghci -- isn't it dangerous?]

2001-04-30 Thread Volker Stolz
check ownership of the directory. And the ownership of .., and ../.. and ... Hm. Maybe the best way would be to steal some C-code from things like ssh and paste it. Michael keeps on mumbling something about a libflock, whatever. -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S

[ghc5] (internal?) Bug in Socket.listen

2001-04-30 Thread Volker Stolz
thoughts about what's happening here? -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Re: RTLD_GLOBAL not available on FreeBSD 3.x

2001-04-24 Thread Volker Stolz
. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

[ghci] Comparison with Hugs

2001-04-24 Thread Volker Stolz
could hack ghci do add main = print 1 in case main is undefined, but that's not really something I'd like to admit afterwards... -- Abstrakte Syntaxträume. Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-users mailing list [EMAIL

Re: [ghc5] getDirectoryContents: trouble on Linux/NFS

2001-04-19 Thread Volker Stolz
ntly show the faulty behaviour. -- \usepackage[latin1]{inputenc}! Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

  1   2   >