Firefox Segmentation Fault

Bug #515826 reported by Puneet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
firefox-3.0 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: firefox-3.0

When I try to paste the following code snippet from Netbeans into compose of gmail, firefox crashes with segmentation fault. I believe this has something to do with rich text box of gmail, as pasting this snippet into a normal textbox goes fine. Also if I paste this snippet into say gedit first, and then copy it into the gmail compose text box it works fine. So the problem has to be with copying over the formatting/style information from Netbeans into the gmail compose box.

I would be happy to post this snippet with netbeans formatting if I can find a way to do so.

Thanks

int readBytes(byte[] bytes, int offset, int length, long fileOffset) {
            int index = (int) fileOffset >> DIV_FILE_BLOCK_SIZE;
            int blockoffset = (int) fileOffset & MOD_FILE_BLOCK_SIZE;
            byte[] block = _blocks.get(index);
            for (int i = 0; i < length; i++) {
                if (blockoffset == FILE_BLOCK_SIZE) {
                    blockoffset = 0;
                    index++;
                    block = _blocks.get(index);
                }
                bytes[offset + i] = block[blockoffset++];
            }
            return length;
        }
    }

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: fglrx wl
Package: firefox-3.0 3.0.17+nobinonly-0ubuntu0.9.04.1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: firefox-3.0
Uname: Linux 2.6.28-17-generic i686

Revision history for this message
Puneet (puneet-lakhina) wrote :
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.