Re: [GHC] #229: Integer overflow in array allocation
#229: Integer overflow in array allocation -+-- Reporter: josefs | Owner: Type: bug | Status: new Priority: low | Milestone: _|_ Component: libraries/base |Version: 6.4.1 Resolution: None| Keywords: Difficulty: Unknown | Os: Unknown/Multiple Testcase: | Architecture: Unknown/Multiple Failure: None/Unknown| -+-- Changes (by StefanWehr): * failure: = None/Unknown Comment: With ghci 6.10.4 on Linux the problem no longer occurs. (You get an Exception: Error in array index instead of a core dump.) The bug seems to be fixed but I did not dare to change the status. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/229#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #229: Integer overflow in array allocation
#229: Integer overflow in array allocation -+-- Reporter: josefs | Owner: Type: bug | Status: closed Priority: low | Milestone: _|_ Component: libraries/base |Version: 6.4.1 Resolution: fixed | Keywords: Difficulty: Unknown | Os: Unknown/Multiple Testcase: | Architecture: Unknown/Multiple Failure: None/Unknown| -+-- Changes (by simonmar): * status: new = closed * resolution: None = fixed Comment: Thanks Stefan! -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/229#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #229: Integer overflow in array allocation
#229: Integer overflow in array allocation -+-- Reporter: josefs | Owner: Type: bug | Status: closed Priority: low | Milestone: _|_ Component: libraries/base |Version: 6.4.1 Resolution: fixed | Keywords: Difficulty: Unknown | Os: Unknown/Multiple Testcase: | Architecture: Unknown/Multiple Failure: None/Unknown| -+-- Old description: {{{ When asked to create a sufficiently large array ghci coredumps. \begin{code} import Data.Array.ST import Control.Monad.ST import GHC.Base example = runST (do arr - newArray (minInt,maxInt) False go arr) where go :: STArray s Int Bool - ST s Bool go arr = readArray arr 3 \end{code} Load this into ghci and type 'example'. }}} New description: When asked to create a sufficiently large array ghci coredumps. {{{ \begin{code} import Data.Array.ST import Control.Monad.ST import GHC.Base example = runST (do arr - newArray (minInt,maxInt) False go arr) where go :: STArray s Int Bool - ST s Bool go arr = readArray arr 3 \end{code} }}} Load this into ghci and type 'example'. Comment (by josef): Using the bounds (minInt,maxInt) was probably the wrong thing todo. My concern when filing the bug report was not the arithmetic overflow but the fact that ghci crashes when it tries to allocate a too large an array. It is still possible to provoke a crash if you change the array bounds to, say, (2,maxInt). Should I open a new ticket or reopen this one? -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/229#comment:13 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #229: Integer overflow in array allocation
#229: Integer overflow in array allocation +--- Reporter: josefs | Owner: Type: bug | Status: new Priority: low | Milestone: _|_ Component: libraries/base |Version: 6.4.1 Severity: normal | Resolution: None Keywords: | Difficulty: Unknown Testcase: | Architecture: Unknown Os: Unknown | +--- Changes (by simonmar): * milestone: 6.8 branch = _|_ -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/229#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #229: Integer overflow in array allocation
#229: Integer overflow in array allocation +--- Reporter: josefs | Owner: simonmar Type: bug | Status: assigned Priority: low | Milestone: 6.8 Component: libraries/base |Version: 6.4.1 Severity: normal | Resolution: None Keywords: | Difficulty: Unknown Testcase: | Architecture: Unknown Os: Unknown | +--- Changes (by seekgzl): * testcase: = Comment: [http://www.makegamegold.com World Of Warcraftwow gold][http://www.makegamegold.com/default.asp?cateid=6 wow gold][http://www.makegamegold.com/default.asp?cateid=6 gold wow ][http://www.makegamegold.com/default.asp?cateID=11 aids][http://www.makegamegold.com/default.html wow gold sale][http://www.makegamegold.com/default.asp?cateID=5 cheap hotel][http://www.makegamegold.com/default.asp?cateID=13 health services][http://www.makegamegold.com/article.asp?id=547 coins and edals][http://www.makegamegold.com/article.asp?id=512 bar code ccd][http://www.makegamegold.com/article.asp?id=511 skannerz bar codes] [http://www.makegamegold.com/article.asp?id=510 wireless bar code reader][http://www.makegamegold.com/article.asp?id=509 buy bar code][http://www.makegamegold.com/article.asp?id=508 bar code scanning system][http://www.makegamegold.com/article.asp?id=507 sap bar code][http://www.makegamegold.com/article.asp?id=506 which barcode scanner should i buy?] [http://www.makegamegold.com/article.asp?id=262 Aristo Halifax][http://www.makegamegold.com/article.asp?id=108 god of war unlockable videos A Secret Revealed][http://www.makegamegold.com/article.asp?id=262 discounts furniture][http://www.makegamegold.com/default.asp?id=318 walleye worm harness][http://www.makegamegold.com/article.asp?id=108 gold of war cheats][http://www.makegamegold.com/article.asp?id=99 world warcraft power leveling][http://www.makegamegold.com/article.asp?id=122 wrought iron stair railings][http://www.makegamegold.com/default.asp?page=20 Valerie confections][http://www.makegamegold.com/article.asp?id=249 more than words lyrics][http://www.makegamegold.com/default.asp?cateid=12 study abroad][http://www.makegamegold.com/article.asp?id=376 superman tattoo][http://www.makegamegold.com/article.asp?id=100 wow power leveling][http://www.makegamegold.com/article.asp?id=120 rod iron wall decor][http://www.makegamegold.com/article.asp?id=90 buy wow gold ][http://www.makegamegold.com/article.asp?id=122 staircase iron][http://www.makegamegold.com/article.asp?id=375 Star Tattoos][http://www.makegamegold.com/article.asp?id=376 superman tribal tattoo][http://www.makegamegold.com/article.asp?id=264 Huge Bedding Bath Discounts ][http://www.makegamegold.com/article.asp?id=135 wow gold contrast][http://www.makegamegold.com/article.asp?id=116 iron gate in california for sale][http://www.makegamegold.com/article.asp?id=118 iron gate in california for sale][http://www.makegamegold.com/default.asp?CateID=6page=8 really cheap wow gold][http://www.makegamegold.com/article.asp?id=122 atlanta wrought iron doors][http://www.makegamegold.com/Powerleveling/Powerleveling.html wow europe Powerleveling][http://www.makegamegold.com/article.asp?id=329 computer desks][http://www.makegamegold.com/article.asp?id=90 cheap wow gold word listed][http://www.makegamegold.com/article.asp?id=122 wrought iron stair railings][http://www.makegamegold.com/article.asp?id=669 ileus][http://www.makegamegold.com/article.asp?id=116 automatic gates][http://www.makegamegold.com/article.asp?id=82 europe wow gold][http://www.makegamegold.com/article.asp?id=92 powerleveling][http://www.makegamegold.com/article.asp?id=12 cheap gold for wow][http://www.makegamegold.com/article.asp?id=81 cheap american gold coins][http://www.makegamegold.com/article.asp?id=322 california gold rush stories hangings][http://www.makegamegold.com/article.asp?id=383 Foreign stuff][http://www.makegamegold.com/article.asp?id=262 discounts furniture ][http://www.makegamegold.com/default.asp?id=175 Study Abroad in Japan ][http://www.makegamegold.com/article.asp?id=269 Call Center][http://www.makegamegold.com/article.asp?id=671 constipation ][http://www.makegamegold.com/article.asp?id=546 treadmill][http://www.makegamegold.com/article.asp?id=855 superman][http://www.makegamegold.com/article.asp?id=856 spiderman?3][http://www.makegamegold.com/article.asp?id=148 cheap car insurance company][http://www.makegamegold.com/article.asp?id=149 cheap female car insurance][http://www.makegamegold.com/article.asp?id=150 airline tickets for cheap][http://www.makegamegold.com/article.asp?id=151 cheap air tickets to london][http://www.makegamegold.com/article.asp?id=152 cheap
Re: [GHC] #229: Integer overflow in array allocation
#229: Integer overflow in array allocation ---+ Reporter: josefs |Owner: simonmar Type: bug | Status: assigned Priority: low |Milestone: 6.8 Component: libraries/base | Version: 6.4.1 Severity: normal | Resolution: None Keywords: | Difficulty: Unknown Architecture: Unknown | Os: Unknown ---+ Changes (by igloo): * milestone: = 6.8 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/229 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #229: Integer overflow in array allocation
#229: Integer overflow in array allocation -+-- Reporter: josefs | Owner: simonmar Type: bug | Status: assigned Priority: low | Milestone: Component: libraries/base |Version: 6.4.1 Severity: normal | Resolution: None Keywords: | Os: Unknown Difficulty: Unknown | Architecture: Unknown -+-- Comment (by simonmar): see also #871 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/229 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #229: Integer overflow in array allocation
#229: Integer overflow in array allocation -+-- Reporter: josefs | Owner: simonmar Type: bug | Status: assigned Priority: lowest | Milestone: Component: libraries/base |Version: 6.4.1 Severity: normal | Resolution: None Keywords: | Os: Unknown Difficulty: Unknown | Architecture: Unknown -+-- Changes (by simonmar): * architecture: = Unknown * difficulty: = Unknown * version: None = 6.4.1 * os: = Unknown Old description: {{{ When asked to create a sufficiently large array ghci coredumps. \begin{code} import Data.Array.ST import Control.Monad.ST import GHC.Base example = runST (do arr - newArray (minInt,maxInt) False go arr) where go :: STArray s Int Bool - ST s Bool go arr = readArray arr 3 \end{code} Load this into ghci and type 'example'. }}} New description: {{{ When asked to create a sufficiently large array ghci coredumps. \begin{code} import Data.Array.ST import Control.Monad.ST import GHC.Base example = runST (do arr - newArray (minInt,maxInt) False go arr) where go :: STArray s Int Bool - ST s Bool go arr = readArray arr 3 \end{code} Load this into ghci and type 'example'. }}} -- Ticket URL: http://cvs.haskell.org/trac/ghc/ticket/229 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs