- Taken from neutrinolabs/xrdp#960
On the host:
x11vnc -noxdamage -display :0 -safer -once
with (import <nixpkgs> {}); | |
mkShell { | |
buildInputs = [ | |
gcc | |
glibc | |
zlib | |
openssl | |
rustup | |
ripgrep | |
exa |
with (import <nixpkgs> {}); | |
mkShell { | |
buildInputs = [ | |
gcc | |
glibc | |
zlib | |
openssl | |
rustup | |
ripgrep | |
exa |
#!/usr/bin/env stack | |
-- stack --resolver lts-13.30 script --package random | |
import Control.Monad (foldM) | |
import Data.List (elemIndex, minimumBy) | |
import Data.Maybe (fromMaybe) | |
import Debug.Trace (trace) | |
import System.IO (getLine) | |
import System.Random (randomIO, randomRIO) |
INFO org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext - Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@127d7908: startup date [Sun Jul 03 09:42:24 BST 2016]; root of context hierarchy | |
INFO org.springframework.context.support.DefaultLifecycleProcessor - Stopping beans in phase -2147483648 | |
INFO org.grails.plugins.datasource.TomcatJDBCPoolMBeanExporter - Unregistering JMX-exposed beans on shutdown | |
INFO org.grails.plugins.datasource.TomcatJDBCPoolMBeanExporter - Unregistering JMX-exposed beans | |
INFO org.hibernate.tool.hbm2ddl.SchemaExport - HHH000227: Running hbm2ddl schema export | |
INFO org.hibernate.tool.hbm2ddl.SchemaExport - HHH000230: Schema export complete | |
2016-07-03 09:43:23 | |
Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.92-b14 mixed mode): | |
"localhost-startStop-2" #57 daemon prio=5 os_prio=0 tid=0x0000000025bd7000 nid=0x14c0 waiting for monitor entry [0x00000000313ee000] |
Using the model.scala
and build.sbt
files defined in this gist, perform the following to reproduce a StackOverflowError
when serializing a case class instance that has a Char
field.
Now start sbt console
:
sbt console
and paste the following:
import org.json4s._
import org.json4s.jackson.JsonMethods._