Bug#888249: gnome-calculator: die on startup with "MPFR assertion failed"
Yasushi SHOJI
yashi at atmark-techno.com
Wed Jan 24 09:08:21 UTC 2018
Package: gnome-calculator
Version: 3.26.0-3
Severity: normal
Dear Maintainer,
* What led up to the situation?
- just run gnome-calculator on a console.
* What exactly did you do (or not do) that was effective (or
ineffective)?
- run gnome-calculator on gnome-terminal
* What was the outcome of this action?
- abort with the following output:
../../src/init2.c:52: MPFR assertion failed: p >= 2 && p <= ((mpfr_prec_t)((mpfr_uprec_t)(~(mpfr_uprec_t)0)>>1))
zsh: abort gnome-calculator
* What outcome did you expect instead?
- running fine
Here is a back trace just in case.
$ gdb =gnome-calculator
GNU gdb (Debian 7.12-6+b1) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/bin/gnome-calculator...Reading symbols from /usr/lib/debug/.build-id/5f/9717d3e0d439032714dfa9a390b38d52039abe.debug...done.
done.
(gdb) r
Starting program: /usr/bin/gnome-calculator
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe95af700 (LWP 31360)]
[New Thread 0x7fffe8dae700 (LWP 31361)]
[New Thread 0x7fffe2971700 (LWP 31362)]
../../src/init2.c:52: MPFR assertion failed: p >= 2 && p <= ((mpfr_prec_t)((mpfr_uprec_t)(~(mpfr_uprec_t)0)>>1))
Thread 1 "gnome-calculato" received signal SIGABRT, Aborted.
__GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff5c0e6a0 in __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007ffff5c0fcf7 in __GI_abort () at abort.c:90
#2 0x00007ffff0838ea9 in mpfr_assert_fail () at /usr/lib/x86_64-linux-gnu/libmpfr.so.4
#3 0x00007ffff082ece0 in mpfr_init2 () at /usr/lib/x86_64-linux-gnu/libmpfr.so.4
#4 0x00007ffff05ea673 in mpc_init3 (x=<optimized out>, prec_re=<optimized out>, prec_im=<optimized out>) at init3.c:27
#5 0x00007ffff05efb52 in mpc_pow_usi_naive (z=z at entry=0x555555ba9f60, x=x at entry=0x555555babd20, y=y at entry=3, sign=sign at entry=-1, rnd=rnd at entry=0) at pow_ui.c:31
#6 0x00007ffff05efc6c in mpc_pow_usi (z=0x555555ba9f60, x=0x555555babd20, y=3, sign=-1, rnd=0) at pow_ui.c:77
#7 0x00007ffff61e18b8 in number_xpowy_integer (self=self at entry=0x555555babd60 [Number], n=-3) at number.c:1239
#8 0x00007ffff61e5156 in serializer_cast_to_string_real (self=0x5555559e4a10 [Serializer], x=0x555555ba9f40 [Number], number_base=10, force_sign=0, n_digits=0x7fffffffcc54, string=0x555555977ee0) at serializer.c:859
#9 0x00007ffff61e56db in serializer_cast_to_string (self=self at entry=0x5555559e4a10 [Serializer], x=x at entry=0x555555ba0100 [Number], n_digits=n_digits at entry=0x7fffffffcc54) at serializer.c:652
#10 0x00007ffff61e5ff1 in serializer_to_string (self=0x5555559e4a10 [Serializer], x=x at entry=0x555555ba0100 [Number])
at serializer.c:291
#11 0x00007ffff61e7870 in unit_format (self=self at entry=0x555555870840 [Unit], x=x at entry=0x555555ba0100 [Number]) at unit.c:2370
#12 0x0000555555566dd2 in math_converter_update_result_label (self=self at entry=0x555555aec180 [MathConverter])
at math-converter.c:367
#13 0x0000555555566ed1 in math_converter_to_combobox_changed_cb (self=0x555555aec180 [MathConverter]) at math-converter.c:811
#14 0x0000555555566ed1 in _math_converter_to_combobox_changed_cb_gtk_combo_box_changed (_sender=<optimized out>, self=0x555555aec180) at math-converter.c:817
#18 0x00007ffff6742ebf in <emit signal ??? on instance 0x555555aee510 [GtkComboBox]> (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>) at ../../../../gobject/gsignal.c:3447
#15 0x00007ffff6726f9d in g_closure_invoke (closure=0x555555ab3350, return_value=0x0, n_param_values=1, param_values=0x7fffffffcef0, invocation_hint=0x7fffffffce70) at ../../../../gobject/gclosure.c:804
#16 0x00007ffff6739cce in signal_emit_unlocked_R (node=node at entry=0x555555ad0a50, detail=detail at entry=0, instance=instance at entry=0x555555aee510, emission_return=emission_return at entry=0x0, instance_and_params=instance_and_params at entry=0x7fffffffcef0)
at ../../../../gobject/gsignal.c:3635
#17 0x00007ffff67424a5 in g_signal_emit_valist (instance=0x555555aee510, signal_id=<optimized out>, detail=0, var_args=var_args at entry=0x7fffffffd0b0) at ../../../../gobject/gsignal.c:3391
#19 0x00007ffff73804a5 in () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#20 0x00007ffff7382a85 in gtk_combo_box_set_active () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#21 0x00005555555664b3 in math_converter_from_combobox_changed_cb (self=0x555555aec180 [MathConverter]) at math-converter.c:794
#22 0x00005555555664b3 in _math_converter_from_combobox_changed_cb_gtk_combo_box_changed (_sender=<optimized out>, self=0x555555aec180) at math-converter.c:805
#26 0x00007ffff6742ebf in <emit signal ??? on instance 0x555555aee2e0 [GtkComboBox]> (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>) at ../../../../gobject/gsignal.c:3447
#23 0x00007ffff6726f9d in g_closure_invoke (closure=0x555555ab3060, return_value=0x0, n_param_values=1, param_values=0x7fffffffd4d0, invocation_hint=0x7fffffffd450) at ../../../../gobject/gclosure.c:804
#24 0x00007ffff6739cce in signal_emit_unlocked_R (node=node at entry=0x555555ad0a50, detail=detail at entry=0, instance=instance at entry=0x555555aee2e0, emission_return=emission_return at entry=0x0, instance_and_params=instance_and_params at entry=0x7fffffffd4d0)
at ../../../../gobject/gsignal.c:3635
#25 0x00007ffff67424a5 in g_signal_emit_valist (instance=0x555555aee2e0, signal_id=<optimized out>, detail=0, var_args=var_args at entry=0x7fffffffd690) at ../../../../gobject/gsignal.c:3391
#27 0x00007ffff73804a5 in () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#28 0x00007ffff73830d8 in gtk_combo_box_set_active_iter () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#29 0x0000555555565f74 in math_converter_set_active_unit (self=self at entry=0x555555aec180 [MathConverter], combo=combo at entry=0x555555aee2e0 [GtkComboBox], iter=iter at entry=0x7fffffffd900, unit=unit at entry=0x555555870840 [Unit]) at math-converter.c:631
#30 0x00005555555660d4 in math_converter_set_active_unit (self=self at entry=0x555555aec180 [MathConverter], combo=combo at entry=0x555555aee2e0 [GtkComboBox], iter=iter at entry=0x7fffffffd9d0, unit=unit at entry=0x555555870840 [Unit]) at math-converter.c:666
#31 0x00005555555660d4 in math_converter_set_active_unit (self=self at entry=0x555555aec180 [MathConverter], combo=0x555555aee2e0 [GtkComboBox], iter=iter at entry=0x0, unit=unit at entry=0x555555870840 [Unit]) at math-converter.c:666
#32 0x0000555555566add in math_converter_set_conversion (self=self at entry=0x555555aec180 [MathConverter], unit_a=unit_a at entry=0x555555b49870 "degree", unit_b=unit_b at entry=0x5555559eca10 "radian") at math-converter.c:267
#33 0x000055555556f946 in math_window_construct (object_type=<optimized out>, app=<optimized out>, equation=0x555555a491b0 [MathEquation]) at math-window.c:260
#34 0x0000555555561086 in calculator_create_new_window (self=0x5555557e4140 [Calculator], settings=<optimized out>)
at gnome-calculator.c:425
#35 0x0000555555561642 in calculator_real_startup (base=0x5555557e4140 [Calculator]) at gnome-calculator.c:570
#39 0x00007ffff6742ebf in <emit signal ??? on instance 0x5555557e4140 [Calculator]> (instance=instance at entry=0x5555557e4140, signal_id=<optimized out>, detail=detail at entry=0) at ../../../../gobject/gsignal.c:3447
#36 0x00007ffff6726f9d in g_closure_invoke (closure=0x5555557deba0, return_value=0x0, n_param_values=1, param_values=0x7fffffffddc0, invocation_hint=0x7fffffffdd40) at ../../../../gobject/gclosure.c:804
#37 0x00007ffff6739d9e in signal_emit_unlocked_R (node=node at entry=0x5555557dec10, detail=detail at entry=0, instance=instance at entry=0x5555557e4140, emission_return=emission_return at entry=0x0, instance_and_params=instance_and_params at entry=0x7fffffffddc0)
at ../../../../gobject/gsignal.c:3565
#38 0x00007ffff67424a5 in g_signal_emit_valist (instance=0x5555557e4140, signal_id=<optimized out>, detail=0, var_args=var_args at entry=0x7fffffffdf80) at ../../../../gobject/gsignal.c:3391
#40 0x00007ffff6a0b012 in g_application_register (application=application at entry=0x5555557e4140 [Calculator], cancellable=cancellable at entry=0x0, error=error at entry=0x7fffffffe0b8) at ../../../../gio/gapplication.c:2069
#41 0x00007ffff6a0b7ef in g_application_real_local_command_line (application=0x5555557e4140 [Calculator], arguments=0x7fffffffe1b8, exit_status=0x7fffffffe1b4) at ../../../../gio/gapplication.c:1009
#42 0x00007ffff6a0bb76 in g_application_run (application=0x5555557e4140 [Calculator], argc=<optimized out>, argv=<optimized out>)
at ../../../../gio/gapplication.c:2370
#43 0x0000555555561ba3 in calculator_main (args=0x7fffffffe318, args_length1=1) at gnome-calculator.c:1598
#44 0x00007ffff5bfaf2a in __libc_start_main (main=
0x55555555fe00 <main>, argc=1, argv=0x7fffffffe318, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe308) at ../csu/libc-start.c:310
#45 0x000055555555fe4a in _start ()
-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf
Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages gnome-calculator depends on:
ii dconf-gsettings-backend [gsettings-backend] 0.26.1-3
ii libatk1.0-0 2.26.1-3
ii libc6 2.26-4
ii libcairo-gobject2 1.15.8-3
ii libcairo2 1.15.8-3
ii libgdk-pixbuf2.0-0 2.36.11-1
ii libglib2.0-0 2.54.3-2
ii libgmp10 2:6.1.2+dfsg-1.2
ii libgtk-3-0 3.22.26-2
ii libgtksourceview-3.0-1 3.24.6-1
ii libmpc3 1.1.0-1
ii libmpfr4 3.1.6-1
ii libpango-1.0-0 1.40.14-1
ii libpangocairo-1.0-0 1.40.14-1
ii libsoup2.4-1 2.60.3-1
ii libxml2 2.9.4+dfsg1-6.1
Versions of packages gnome-calculator recommends:
ii gvfs 1.34.1-2
ii yelp 3.26.0-2
gnome-calculator suggests no packages.
-- no debconf information
More information about the pkg-gnome-maintainers
mailing list