gnome-calculator Segmentation fault

Bug #792258 reported by Emanuel Bronshtein
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcalctool (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

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

Revision history for this message
PioneerAxon (arth-svnit) wrote :

This bug has been resolved with new parser from version 6.5.90 and above.

Changed in gcalctool (Ubuntu):
status: New → Incomplete
status: Incomplete → Fix Released
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.