SIGSEGV on large displays

Bug #1910948 reported by Jonah Graham
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tightvnc (Ubuntu)
New
Undecided
Unassigned

Bug Description

(I submitted an Apport on this - but I don't know how to tie the two together, or where the Apport report went.)

When using Eclipse with VNC and VNC server running with a high resolution -geometry (e.g I used 3840x2000) I have regular X server crashes with Eclipse when Eclipse is fullscreen (SIGSEGV in Dispatch()).

I tracked down the problem to being an alloca call that was much bigger than the current stack size in ProcShmGetImage in Xvnc/programs/Xserver/Xext/shm.c. In my case I was seeing the length variable requesting about 16MB.

I suppose a fix is to change that particular ALLOCATE_LOCAL to a normal malloc (Xmalloc??) or to disable alloca use globally.

My workaround was to change the stack size to something much bigger (ulimit -s 50000)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.