GL.glGenLists causes segfault
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1315
Reported by @zino
Minimal example that crashes on rimmer:
void main()
{
GL.glGenLists(1);
}
(gdb) run crashgenlist.pike Starting program: /i/pike/7.3.2/bin/pike crashgenlist.pike [New Thread 1024 (LWP 6187)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 6187)]
0x0 in ?? ()
(gdb) bt
#0 0x0 in ?? ()
#1 0x4033fb33 in f_glGenLists () from /i/pike/7.3.2/lib/modules/GL.so
#2 0x80691ec in mega_apply (type=APPLY_SVALUE, args=1, arg1=0x8237594,
arg2=0x0) at /home/peter/hack/Pike/7.3/src/interpret.c:994
#3 0x8068709 in eval_instruction (pc=0x8237536 "$\177-")
at /home/peter/hack/Pike/7.3/src/interpret_functions.h:1568
#4 0x80697e3 in mega_apply (type=APPLY_STACK, args=0, arg1=0x0, arg2=0x0)
at /home/peter/hack/Pike/7.3/src/interpret.c:1323
#5 0x8068738 in eval_instruction (pc=0x823acac "d\0036\024\b")
at /home/peter/hack/Pike/7.3/src/interpret_functions.h:1573
#6 0x80697e3 in mega_apply (type=APPLY_LOW, args=2, arg1=0x8216050, arg2=0x49)
at /home/peter/hack/Pike/7.3/src/interpret.c:1323
#7 0x8069fb8 in apply (o=0x8216050, fun=0x8162597 "_main", args=2)
at /home/peter/hack/Pike/7.3/src/interpret.c:1606
#8 0x80b593e in main (argc=2, argv=0xbffffc94)
at /home/peter/hack/Pike/7.3/src/main.c:559
#9 0x400d2b65 in __libc_start_main (main=0x80b50a0 <main>, argc=2,
ubp_av=0xbffffc94, init=0x8059e30 <_init>, fini=0x81457bc <_fini>,
rtld_fini=0x4000df24 <_dl_fini>, stack_end=0xbffffc8c)
at ../sysdeps/generic/libc-start.c:111