Sray | 1 May 05:37 2013

a bug of 32bit ghc on mac ?

<!-- .hmmessage P { margin:0px; padding:0px } body.hmmessage { font-size: 12pt; font-family:微软雅黑 } -->
hi all

it seems i have met some bug on a MAC 32bit GHC version 7.4.2

to make long stroy short,  my code is about parse a json file using aeson
here is my code
http://pastebin.com/0VcVhdvX

and here is test data
http://pastebin.com/PvtSvst5

and test steps
save the code , and name it a.hs (or what you want)
save the test data ,name it a.json (do not change its name)
$ ghc a.hs -o a
$ ./a


what i get from the output is "fail"
and when i run the command below for a few times
$ runghc a.hs
i even got some ok and some fail mixed together


but i copy the code and compile it on my linux, everything goes fine, the output is "OK"
i have run "uninstall-hs" and install a 64bit ghc, also goes fine

i delete one line randomly chosen from my test data , got an ok
roll back ,delete another line, also an ok...

I just want to make sure is this my bug or a bug of ghc

p.s. the reason using 32bit ghc is yesod, which has met another bug on 64bit mac ghc :(

thanks
sray
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Bob Hutchison | 1 May 11:43 2013
Picon

Re: a bug of 32bit ghc on mac ?

I compiled and ran it a few hundred times in a script with no failures. I've got the same version of GHC on OS X 10.8.3.

BTW, it's not just Yesod that has that bug you mentioned in the 64-bit version.

Cheers,
Bob


On 2013-04-30, at 11:37 PM, Sray <sray <at> live.com> wrote:

<!-- .hmmessage P { margin:0px; padding:0px } body.hmmessage { font-size: 12pt; font-family:微软雅黑 } -->
hi all

it seems i have met some bug on a MAC 32bit GHC version 7.4.2

to make long stroy short,  my code is about parse a json file using aeson
here is my code
http://pastebin.com/0VcVhdvX

and here is test data
http://pastebin.com/PvtSvst5

and test steps
save the code , and name it a.hs (or what you want)
save the test data ,name it a.json (do not change its name)
$ ghc a.hs -o a
$ ./a


what i get from the output is "fail"
and when i run the command below for a few times
$ runghc a.hs
i even got some ok and some fail mixed together


but i copy the code and compile it on my linux, everything goes fine, the output is "OK"
i have run "uninstall-hs" and install a 64bit ghc, also goes fine

i delete one line randomly chosen from my test data , got an ok
roll back ,delete another line, also an ok...

I just want to make sure is this my bug or a bug of ghc

p.s. the reason using 32bit ghc is yesod, which has met another bug on 64bit mac ghc :(

thanks
sray
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Sray | 2 May 18:02 2013

Re: a bug of 32bit ghc on mac ?

so confused...
I have asked one of my friends to compile this code. And he also got an fail

It seems this bug only occurs on a 32-bit version ghc

update:
my friends said he changes the decode line into a ugly way:
> let x = decode $(C.pack. C.unpack) au :: Maybe AuctionInfo
then he got an ok

but i did so, also fail...


Subject: Re: [Haskell-cafe] a bug of 32bit ghc on mac ?
From: hutch-lists <at> recursive.ca
Date: Wed, 1 May 2013 05:43:46 -0400
CC: haskell-cafe <at> haskell.org
To: sray <at> live.com

I compiled and ran it a few hundred times in a script with no failures. I've got the same version of GHC on OS X 10.8.3.

BTW, it's not just Yesod that has that bug you mentioned in the 64-bit version.

Cheers,
Bob


On 2013-04-30, at 11:37 PM, Sray <sray <at> live.com> wrote:

<!-- .ExternalClass .ecxhmmessage P { padding:0px; } .ExternalClass body.ecxhmmessage { font-size:12pt; font-family:微软雅黑; } -->
hi all

it seems i have met some bug on a MAC 32bit GHC version 7.4.2

to make long stroy short,  my code is about parse a json file using aeson
here is my code
http://pastebin.com/0VcVhdvX

and here is test data
http://pastebin.com/PvtSvst5

and test steps
save the code , and name it a.hs (or what you want)
save the test data ,name it a.json (do not change its name)
$ ghc a.hs -o a
$ ./a


what i get from the output is "fail"
and when i run the command below for a few times
$ runghc a.hs
i even got some ok and some fail mixed together


but i copy the code and compile it on my linux, everything goes fine, the output is "OK"
i have run "uninstall-hs" and install a 64bit ghc, also goes fine

i delete one line randomly chosen from my test data , got an ok
roll back ,delete another line, also an ok...

I just want to make sure is this my bug or a bug of ghc

p.s. the reason using 32bit ghc is yesod, which has met another bug on 64bit mac ghc :(

thanks
sray
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Gmane