PDA

View Full Version : [ubuntu] crashing a shell - why?



website.reader3
February 10th, 2011, 05:40 AM
I noticed that the following small shell script crashes with a double free error in memory. Should this be happening? --------------- bash shell snippet below -------------- pt=[[-55517580309947222732837578669649287278566706306631 41199596271568982627877112445029739788047125726249 62939381142455209599204096606517126710146659253624 59192354337236812794516037929882087885510388267074 61749910276473478135289293943931428039783520742364 95292792414866368720332685372108828883153817263375 45380720063403722524745889194607026662609680368944 98265047733102567088807327132807478551859628046712 40627886014717688822484270232882104900883044077319 25748717237788664224898/54295459985647754969241671873805818927637998427519 65162556647521865008611300273624708335087181650998 50926286495588869929745121508933018411993947996729 28703793311705358264007946879704743008382804298465 27527832909305718796027278148596722701664723637670 89468364388369604476255576071493030133222458609974 23501365805085429492150151106304920454868864269966 34480419668208383137784638304938364514103611094957 69696566852087034094135359691326846043923682529711 614631495466332529,4698276055677269802589505298691 03166234365763266901502057524109316725663433123402 75926570253450988904806846664435928959488351379597 08803855642551160498467694013178019668129056660525 46298510171175477529289335869541068223473870120008 25284886836807390681723440811572957194135393141182 06146698972769361551447202512735755757665976221191 80386506377804407214280153102265573606311669199519 55073174530436289731112065618829085467525934306507 63985690165019505653391113869079356705190620263649 30579946785423242857019241354320189952507880085569 29131224427232082035834091931767598998915691378711 18651734860590281362306077992685480682121722192369 90960115714573274249224045240206682978833703145130 1108669007244640095858453064/40007855703199707788105151993597187419237891050420 92494856392405607759074862353771465008693286420288 23062145549201430740600898489208447933457958132161 44587158623272269623505378331352164830632100447219 50547862451327915103412851463604756381325127856157 16686322320486007813541691740314686166154536892358 14734629941848131883120714743560580557758442784923 27589123495967234996172485227805114318201383045877 18533360325029360428582364439303402304423965329674 06574338198597407653685159302259155375522595295499 77880862369306367746988979577668732035871055551427 99775253032392335107273558355107777529334335998625 63798908343496929308362347282436403701298887952899 33975734930691291620973060223367191496085529784974 17]] echo "point $pt" echo point $pt ---------------------- end snippet -------------- The 3rd line crashes bash Not every choice of numbers inside the [[ ]] brackets causes this problem, occasionally a certain combination does it. (I apologize for the crammed appearance of this post, I tried several times to make it correct, but the parser keeps cramming the lines together)

asmoore82
February 10th, 2011, 06:43 AM
ẅḣţ ţḣ ??……

gmargo
February 10th, 2011, 05:20 PM
(I apologize for the crammed appearance of this post, I tried several times to make it correct, but the parser keeps cramming the lines together)

That's what the [ CODE ] tags are for.
Wrap your code in a [ CODE] ... [ /CODE ] block (without spaces between brackets and CODE word). That block will be rendered in html < PRE > ... < /PRE > tags.



pt=[[-555175817]]
echo "point $pt"