I can reproduce this problem almost 100% while using the geany editor:

Steps to reproduce:
1. Create a simple c file(I use the main.c given below)
2. Open main.c in geany text editor
3. compile the file repeatedly using the geany-crash script given below
4. While this is going on open the file browser in geany by going to File->Open
5. Select a large number of files to open(around 10) by clicking on one file 
and doing Shift+click on another file
6. geany crashes at this moment. 

Please do not think that this is happens only in this corner case. My
geany crashes more often than not while a compilation is going on the
set of files opened. Makes it nearly impossible to work with geany
forcing me to switch to other editors.

System information: 
- Ubuntu 10.04 LTS
- libgtk2.0-0 : 2.20.1-0ubuntu2
- geany 0.18
- gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3

main.c:
^^^^^^^^
#include <malloc.h>
#include <string.h>
#include <stdio.h>

int main(void)
{
        void *ptr1;
        void *ptr2;
        unsigned long count = 0;

        ptr1 = malloc(10*1024*1024);
        ptr2 = malloc(10*1024*1024);
        while(1){
                //printf("Iteration %ld\n", count++);
                memcpy(ptr1, ptr2, 10*1024*1024);
                memcpy(ptr2, ptr1, 10*1024*1024);
        }
        
        return 0;       
}

geany-crash:
^^^^^^^^^^^^^^
#!/bin/bash
for i in {1..1000}
do
        echo "building $i ..." 
        gcc main.c
done

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.
https://bugs.launchpad.net/bugs/73069

Title:
  gimp crashed to gtkfilechooser code (name_sort_func)

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to