Bug#996006: ghemical: Segmentation fault when starting

2021-10-26 Thread Daniel Leidert
Am Mittwoch, dem 27.10.2021 um 03:18 +0200 schrieb Daniel Leidert:
> Am Dienstag, dem 26.10.2021 um 22:24 +0200 schrieb Bernhard Übelacker:
> > Dear Maintainer,
> > I could reproduce this inside a minimal qemu VM.
> 
> Thanks.
> 
> The program doesn't crash in Sid though.
> 
> Is it possible that we hit https://bugs.debian.org/958017 ?

Sorry, this is fixed in Bullseye already. I was reading the versions too
quickly. My fault. Still, the problem is not present in Sid.

Regards, Daniel
-- 
Regards,
Daniel Leidert  | https://www.wgdd.de/
GPG-Key RSA4096 / BEED4DED5544A4C03E283DC74BCD0567C296D05D
GPG-Key ED25519 / BD3C132D8B3805D1808123AB7ACE00941E338C78

https://www.fiverr.com/dleidert
https://www.patreon.com/join/dleidert


signature.asc
Description: This is a digitally signed message part


Bug#996006: ghemical: Segmentation fault when starting

2021-10-26 Thread Daniel Leidert
Am Dienstag, dem 26.10.2021 um 22:24 +0200 schrieb Bernhard Übelacker:
> Dear Maintainer,
> I could reproduce this inside a minimal qemu VM.

Thanks.

The program doesn't crash in Sid though.

Is it possible that we hit https://bugs.debian.org/958017 ?


Regards, Daniel
-- 
Regards,
Daniel Leidert  | https://www.wgdd.de/
GPG-Key RSA4096 / BEED4DED5544A4C03E283DC74BCD0567C296D05D
GPG-Key ED25519 / BD3C132D8B3805D1808123AB7ACE00941E338C78

https://www.fiverr.com/dleidert
https://www.patreon.com/join/dleidert


signature.asc
Description: This is a digitally signed message part


Bug#996006: ghemical: Segmentation fault when starting

2021-10-26 Thread Bernhard Übelacker

Dear Maintainer,
I could reproduce this inside a minimal qemu VM.
Below [1] is a backtrace one instruction before the crash.
It looks like this "font" object has the create_hb_font
function pointer never initialized.
It also crashes with LANG=C set.

Unfortunately to me it is not certain if this is
an issue with pango or the application.
Additionally it looks like there were some changes in
pango (e.g. [2]) between the versions of bullseye and buster.
In the latter no such crash is observable.

Kind regards,
Bernhard


[1]
(rr) reverse-stepi
0x7fb5b32b8c33 in pango_font_get_hb_font 
(font=font@entry=0x558dd5dcdb30) at ../pango/fonts.c:1928
1928  priv->hb_font = PANGO_FONT_GET_CLASS (font)->create_hb_font 
(font);
1: x/i $pc
=> 0x7fb5b32b8c33 :  call   *0xc0(%r12)
(rr) bt
#0  0x7fb5b32b8c33 in pango_font_get_hb_font 
(font=font@entry=0x558dd5dcdb30) at ../pango/fonts.c:1928
#1  0x7fb5b32d4e13 in pango_font_get_hb_font_for_context 
(context=0x7ffc5f4f04c0, font=0x558dd5dcdb30) at ../pango/pangofc-shape.c:277
#2  pango_hb_shape (font=0x558dd5dcdb30, item_text=item_text@entry=0x7fb5b32dff4e  
"Zwölf Boxkämpfer jagen Viktor quer über den großen Sylter Deich.", item_length=item_length@entry=68, 
analysis=analysis@entry=0x7ffc5f4f0850, glyphs=glyphs@entry=0x558dd5acc6c0, 
paragraph_text=paragraph_text@entry=0x7fb5b32dff4e  "Zwölf Boxkämpfer jagen Viktor 
quer über den großen Sylter Deich.", paragraph_length=68) at ../pango/pangofc-shape.c:345
#3  0x7fb5b32d466f in pango_shape_with_flags (item_text=0x7fb5b32dff4e  
"Zwölf Boxkämpfer jagen Viktor quer über den großen Sylter Deich.", item_length=, paragraph_text=, paragraph_length=68, analysis=0x7ffc5f4f0850, 
glyphs=0x558dd5acc6c0, flags=PANGO_SHAPE_NONE) at ../pango/shape.c:205
#4  0x7fb5b32d4adb in pango_shape_full (item_text=, 
item_length=, paragraph_text=, paragraph_length=, analysis=analysis@entry=0x7ffc5f4f0850, glyphs=glyphs@entry=0x558dd5acc6c0) at 
../pango/shape.c:96
#5  0x7fb5b32d4af0 in pango_shape (text=, length=, analysis=analysis@entry=0x7ffc5f4f0850, glyphs=glyphs@entry=0x558dd5acc6c0) at 
../pango/shape.c:63
#6  0x7fb5b264b273 in itemize_string_foreach (font=font@entry=0x558dd5dcdb30, 
language=language@entry=0x0, str=, func=func@entry=0x7fb5b264b010 
, data=data@entry=0x7ffc5f4f08f0) at pangox.c:777
#7  0x7fb5b264b9b4 in get_font_metrics_from_string 
(metrics=0xd60e1730, str=, language=0x0, 
font=0x558dd5dcdb30) at pangox.c:922
#8  pango_x_font_get_metrics (font=0x558dd5dcdb30, language=0x0) at 
pangox.c:984
#9  0x558dd55f4556 in pangofont_wcl::ogl_InitPangoFont(char const*) 
(this=0x558dd5c19bc0, fs=0x558dd5623360 "courier 12") at pangofont_wcl.cpp:79
#10 0x558dd55f492a in oglview_wcl::InitGL() (this=0x558dd5c19bc0) at 
oglview_wcl.cpp:929
#11 0x7fb5b2c3eebe in base_wcl::LinkWnd(base_wnd*) 
(this=0x558dd5c19bc0, w=0x558dd5c18fa0) at base_wcl.cpp:111
#12 0x558dd55eb93d in project::AddGraphicsClient(custom_camera*, bool) 
(this=this@entry=0x558dd5a83df0, cam=0x558dd5c8fae0, cam@entry=0x0, 
detached=detached@entry=false) at project.cpp:622
#13 0x558dd561dc12 in gtk_project::DoSafeStart() (this=0x558dd5a83df0) 
at gtk_project.cpp:80
#14 0x558dd561aed3 in gtk_app::gtk_app() (this=0x558dd59fde70) at 
gtk_app.cpp:450
#15 0x558dd561b165 in gtk_app::GetAppX() () at gtk_app.cpp:465
#16 0x558dd55d49d4 in main(int, char**) (argc=, 
argv=) at gtk_main.cpp:116
(rr) x/1xg $r12+0xc0
0x558dd60e1e70: 0x


[2]

https://gitlab.gnome.org/GNOME/pango/-/commit/b5634799586ed8e3496ffc237b8d08e6d4e64d67



Bug#996006: ghemical: Segmentation fault when starting

2021-10-09 Thread Michael Stockenhuber
Package: ghemical
Version: 3.0.0-5+b1
Severity: important

Dear Maintainer,

Starting ghemical in gnome results in a segfault. An xwindow is opened for less
than a second and then closes. I see the following in syslog
kernel: [ 4311.905429] ghemical[6179]: segfault at 0 ip  sp
7ffe739c2328 error 14 in ghemical[5650ebcd+2a000]
kernel: [ 4311.905439] Code: Unable to access opcode bytes at RIP
0xffd6.

I do not see any other error messages. Makes the program unusable.
Any help would be appreciated.
Best regards
Michael



-- System Information:
Debian Release: 11.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-9-amd64 (SMP w/64 CPU threads)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8),
LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ghemical depends on:
ii  libc6   2.31-13+deb11u2
ii  libgcc-s1   10.2.1-6
ii  libgdk-pixbuf2.0-0  2.40.2-2
ii  libghemical5v5  3.0.0-4.3
ii  libgl1  1.3.2-1
ii  libglade2-0 1:2.6.4-2.3
ii  libglib2.0-02.66.8-1
ii  libglu1-mesa [libglu1]  9.0.1-1
ii  libgtk2.0-0 2.24.33-2
ii  libgtkglext11.2.0-9
ii  liboglappth21.0.0-2+b2
ii  libopenbabel7   3.1.1+dfsg-6
ii  libpango-1.0-0  1.46.2-3
ii  libstdc++6  10.2.1-6
ii  mpqc2.3.1-21

Versions of packages ghemical recommends:
ii  xfonts-100dpi  1:1.0.4+nmu1.1
ii  xfonts-75dpi   1:1.0.4+nmu1.1

ghemical suggests no packages.



Bug#996006: [Debichem-devel] Bug#996006: ghemical: Segmentation fault when starting

2021-10-09 Thread Daniel Leidert
Am Sonntag, dem 10.10.2021 um 10:42 +1100 schrieb Michael Stockenhuber:
> Package: ghemical
> Version: 3.0.0-5+b1
> Severity: important
> 
> Dear Maintainer,
> 
> Starting ghemical in gnome results in a segfault. An xwindow is opened for
> less
> than a second and then closes. I see the following in syslog
> kernel: [ 4311.905429] ghemical[6179]: segfault at 0 ip  sp
> 7ffe739c2328 error 14 in ghemical[5650ebcd+2a000]
> kernel: [ 4311.905439] Code: Unable to access opcode bytes at RIP
> 0xffd6.
> 
> I do not see any other error messages. Makes the program unusable.
> Any help would be appreciated.

Can you try this:

export GDK_BACKEND=x11
ghemical

Does it help?


Regards, Daniel
-- 
Regards,
Daniel Leidert  | https://www.wgdd.de/
GPG-Key RSA4096 / BEED4DED5544A4C03E283DC74BCD0567C296D05D
GPG-Key ED25519 / BD3C132D8B3805D1808123AB7ACE00941E338C78

https://www.fiverr.com/dleidert
https://www.patreon.com/join/dleidert


signature.asc
Description: This is a digitally signed message part