Share

The Glasgow Haskell Compiler

Tracker: Bugs

5 segmentation fault - ID: 1194393
Last Update: Comment added ( simonmar )

http://bugs.darcs.net//Ticket/Display.html?id=367


Zooko O'Whielacronx ( zooko ) - 2005-05-03 11:49

5

Closed

Fixed

Simon Marlow

None

None

Public


Comments ( 6 )

Date: 2005-12-02 12:31
Sender: simonmarProject Admin

Logged In: YES
user_id=48280

Fixed; this was a bug in the regex library distributed with
GHC. The regex library originally comes from FreeBSD, and
it turns out the FreeBSD folks had already patched this
problem in a later revision, so I brought over the patch
(FreeBSD rev. 1.24 regcomp.c; GHC rev. 1.7).


Date: 2005-11-29 13:33
Sender: zooko

Logged In: YES
user_id=52562

to reproduce:

1. Download
http://prdownloads.sourceforge.net/jboss/jboss-4.0.3SP1.tar.bz2?download

2. Untar it

3. darcs initialize

4. darcs record -al -m foo

Expected behavior: darcs records a massive patch adding all
of the contents to the repo.

Actual behavior: on Linux and Mac OS X darcs works as
expected. On Windows it gives an error. I believe the
error varies. radekg reported this: http://bugs.darcs.net/msg20

I tried darcs 1.0.4. and got some uninformative error
message generated by darcs. Then I tried darcs 1.0.3 and
got this:

darcs.exe: internal error: stg_ap_v_ret
Please report this as a bug to
glasgow-haskell-bugs@haskell.org,
or http://www.sourceforge.net/projects/ghc/




Date: 2005-11-28 15:52
Sender: zooko

Logged In: YES
user_id=52562

Hooray! A repeatable test case has been found!

http://bugs.darcs.net/issue8


Date: 2005-09-23 10:19
Sender: simonmarProject Admin

Logged In: YES
user_id=48280

Without a repeatable test case, there's nothing we can do
with this bug report, sorry. If it reappears, feel free to
post more information and we can re-open the bug.


Date: 2005-06-10 15:00
Sender: zooko

Logged In: YES
user_id=52562

For what it is worth, I haven't gotten any of these errors
since I stopped trying to use darcs on lots of large binary
patches containing 100's of MB per patch.

So I suspect the bug is triggered by certain memory usage
patterns...



Date: 2005-05-03 15:07
Sender: simonmarProject Admin

Logged In: YES
user_id=48280

If the darcs devs can confirm that this is most likely a bug
in GHC, as opposed to a bug in darcs due to use of FFI or
unsafeWhatNot, then we'll look into it. We need a repro
case (the repository that caused the failure, at least), and
the same darcs sources.




Attached File

No Files Currently Attached

Changes ( 8 )

Field Old Value Date By
close_date - 2005-12-02 12:31 simonmar
status_id Open 2005-12-02 12:31 simonmar
resolution_id None 2005-12-02 12:31 simonmar
close_date 2005-09-23 10:19 2005-11-28 15:52 zooko
status_id Closed 2005-11-28 15:52 zooko
close_date - 2005-09-23 10:19 simonmar
status_id Open 2005-09-23 10:19 simonmar
assigned_to nobody 2005-07-06 09:49 simonpj