Public bug reported:

Binary package hint: gcalctool

/usr/bin/gnome-calculator crash with Segmentation fault message and
throw errors when get long input .

test case :
emanuel@emanuel-desktop:~$ gcalctool -s `python -c "print 'A'*40000"`
gcalctool: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char 
*) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, 
fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned 
long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * 
(sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 
0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.
Aborted

emanuel@emanuel-desktop:~$ gcalctool -s `python -c "print 'A'*50000"`
Segmentation fault

under GDB :
Starting program: /usr/bin/gnome-calculator -s `python -c "print 'A'*50000"`
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x0805b0e2 in _mp_equation_lex ()

tested on : gnome-calculator 5.28.2

** Affects: gcalctool (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  gnome-calculator Segmentation fault

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

Reply via email to