← Back to team overview

desktop-packages team mailing list archive

[Bug 885330] Re: gedit crashed with SIGSEGV in g_slice_alloc() when opening file with zeros

 

Ok, I followed instructions on wiki and surprisingly under valgrind
gedit does not crash. It crashes only in case when I remove 'G_SLICE
=always-malloc' from command. Log is for that case.

** Attachment added: "valgrind.log.gz"
   https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/885330/+attachment/2601554/+files/valgrind.log.gz

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gedit in Ubuntu.
https://bugs.launchpad.net/bugs/885330

Title:
  gedit crashed with SIGSEGV in g_slice_alloc() when opening file with
  zeros

Status in Light-Weight Text Editor for Gnome:
  New
Status in “gedit” package in Ubuntu:
  Incomplete

Bug description:
  Gedit crashes if it tries to open file that contains zero bytes (like
  file example.txt in attachment).

  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: gedit 3.2.1-0ubuntu1
  ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
  Uname: Linux 3.0.0-12-generic i686
  ApportVersion: 1.23-0ubuntu4
  Architecture: i386
  Date: Wed Nov  2 23:43:34 2011
  ExecutablePath: /usr/bin/gedit
  InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release i386 (20100816.1)
  ProcCmdline: gedit base64.e
  SegvAnalysis:
   Segfault happened at: 0x78d9cd <g_slice_alloc+269>:	mov    (%edi),%edx
   PC (0x0078d9cd) ok
   source "(%edi)" (0x00000175) not located in a known VMA region (needed readable region)!
   destination "%edx" ok
  SegvReason: reading NULL VMA
  Signal: 11
  SourcePackage: gedit
  StacktraceTop:
   g_slice_alloc () from /lib/i386-linux-gnu/libglib-2.0.so.0
   g_string_sized_new () from /lib/i386-linux-gnu/libglib-2.0.so.0
   g_markup_escape_text () from /lib/i386-linux-gnu/libglib-2.0.so.0
   g_bookmark_file_to_data () from /lib/i386-linux-gnu/libglib-2.0.so.0
   g_bookmark_file_to_file () from /lib/i386-linux-gnu/libglib-2.0.so.0
  Title: gedit crashed with SIGSEGV in g_slice_alloc()
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

To manage notifications about this bug go to:
https://bugs.launchpad.net/gedit/+bug/885330/+subscriptions