bumptech/stud — Issue #58: Segfault when using shared session cache with large value
Author: bfg
Created: 2011-11-29 12:28:59+00:00
State: open

Hello :)

I compiled stud with shared cache support and tried to start it with really insanely huge session cache; after eating up lots of ram stud crashed.

Command line:
```
./stud --ssl -c HIGH -n 2 -B 200 -f 127.0.0.1,8443 -b x.y.z.w,80 ~/config/cert.pem -k 2 -C 10000000
```

Stack trace:
```
Core was generated by `./stud --ssl -c HIGH -n 2 -B 200 -f 127.0.0.1 8443 -b x.y.z.w 80 /export/hom'.
Program terminated with signal 11, Segmentation fault.
#0 shared_context_init (ctx=0x8064640, size=10000000) at shctx.c:316
316 cur->p = prev;
(gdb) bt
#0 shared_context_init (ctx=0x8064640, size=10000000) at shctx.c:316
#1 0x0804a665 in init_openssl () at stud.c:339
#2 main (argc=17, argv=0xbffd7274) at stud.c:1385
```

@EmericBR I compiled my own fork of stud, but it doesn't differ very much from bumptech/stud.