After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 697921 - Crash when try to create a new note in 32 bits version
Crash when try to create a new note in 32 bits version
Status: RESOLVED FIXED
Product: bijiben
Classification: Applications
Component: general
unspecified
Other Windows
: Normal normal
: ---
Assigned To: Bijiben maintainer(s)
Bijiben maintainer(s)
: 697922 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-04-12 22:05 UTC by Andres Fernandez
Modified: 2013-04-20 00:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andres Fernandez 2013-04-12 22:05:10 UTC
I've try it in Arch Linux since a few months. In my 32 bit instalation of Arch, Bijiben crashes when you click the "New" button. On my 64 bits instalation of Arch it works very well.

The terminal output is "Segmentation Fault." And no aditional info.

I thought it was a distro issue. But talking with some user, they said that same happends in 32 bits instalations of their distros.


(Is my second bug filed in upstream so excuse me if there are something wrong or missing.)
Comment 1 Antoine Saroufim 2013-04-12 22:17:31 UTC
Same issue on opensuse tumbleweed x32
Comment 2 Pierre-Yves Luyten 2013-04-12 22:23:23 UTC
*** Bug 697922 has been marked as a duplicate of this bug. ***
Comment 3 Balázs L. Batári 2013-04-12 22:25:27 UTC
you were 39 seconds faster ;) but yeah: i can confirm this on arch32 too ( see the above duplicate bug report )
Comment 4 Pierre-Yves Luyten 2013-04-12 22:26:16 UTC
oops. I'll look at this, eventually running gdb with a break on bjb_controller_add_note might precise the issue but anyway i will check

Confirming since it impacts several users.
Comment 5 Balázs L. Batári 2013-04-12 22:29:00 UTC
@Pierre: how do i run that ? im a gdb newbie i attached a backtrace in my original report what should i do more, i realy want to help
Comment 6 Pierre-Yves Luyten 2013-04-12 22:33:39 UTC
yes i checked the backtrace. Once gdb bijiben, you might

(gdb) b bjb_controller_add_note
(gdb) run

when the program pauses (eg if you click on "next"), repeat

(gdb) next

untill program works or crashes. it might provide a bit more information.
Comment 7 Balázs L. Batári 2013-04-12 22:35:43 UTC
(gdb) b bjb_controller_add_note
Function "bjb_controller_add_note" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (bjb_controller_add_note) pending.
(gdb) run
Starting program: /usr/bin/bijiben 
warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0xb0969b40 (LWP 5788)]
[New Thread 0xaffffb40 (LWP 5789)]
[New Thread 0xae783b40 (LWP 5790)]

Program received signal SIGSEGV, Segmentation fault.
0xb56a8802 in __strlen_sse2_bsf () from /usr/lib/libc.so.6
(gdb) next
Single stepping until exit from function __strlen_sse2_bsf,
which has no line number information.
[Thread 0xaffffb40 (LWP 5789) exited]
[Thread 0xae783b40 (LWP 5790) exited]
[Thread 0xb0983880 (LWP 5784) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
Comment 8 Antoine Saroufim 2013-04-12 22:52:46 UTC
If it helps, here's my debug out: http://paste.opensuse.org/98134796
Comment 9 Andres Fernandez 2013-04-13 01:31:10 UTC
Well I'd try it on gdb and it said this:

Program received signal SIGSEGV, Segmentation fault.
0xb569c802 in __strlen_sse2_bsf () from /usr/lib/libc.so.6


And this is the backtrace. I hope this were useful If it doesn't tell if I cloud do another thing.


(gdb) backtrace
  • #0 __strlen_sse2_bsf
    from /usr/lib/libc.so.6
  • #1 g_strdup
    from /usr/lib/libglib-2.0.so.0
  • #2 ??
    from /usr/lib/libgobject-2.0.so.0
  • #3 ??
    from /usr/lib/libgtk-3.so.0
  • #4 gtk_list_store_set_valist
    from /usr/lib/libgtk-3.so.0
  • #5 gtk_list_store_set
    from /usr/lib/libgtk-3.so.0
  • #6 ??
  • #7 ??
  • #8 _biji_marshal_VOID__ENUM_POINTER
  • #9 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #10 ??
    from /usr/lib/libgobject-2.0.so.0
  • #11 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #12 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #13 biji_note_book_notify_changed
  • #14 biji_note_book_append_new_note
  • #15 biji_note_book_get_new_note_from_string
  • #16 ??
  • #17 g_cclosure_marshal_VOID__VOIDv
    from /usr/lib/libgobject-2.0.so.0
  • #18 ??
    from /usr/lib/libgobject-2.0.so.0
  • #19 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #20 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #21 gtk_button_clicked
    from /usr/lib/libgtk-3.so.0
  • #22 ??
    from /usr/lib/libgtk-3.so.0
  • #23 g_cclosure_marshal_VOID__VOID
    from /usr/lib/libgobject-2.0.so.0
  • #24 ??
    from /usr/lib/libgobject-2.0.so.0
  • #25 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #26 ??
    from /usr/lib/libgobject-2.0.so.0
  • #27 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #28 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #29 ??
    from /usr/lib/libgtk-3.so.0
  • #30 ??
    from /usr/lib/libgtk-3.so.0
  • #31 ??
    from /usr/lib/libgobject-2.0.so.0
  • #32 ??
    from /usr/lib/libgobject-2.0.so.0
  • #33 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #34 g_signal_emit
    from /usr/lib/libgobject-2.0.so.0
  • #35 ??
    from /usr/lib/libgtk-3.so.0
  • #36 ??
    from /usr/lib/libgtk-3.so.0
  • #37 gtk_main_do_event
    from /usr/lib/libgtk-3.so.0
  • #38 ??
    from /usr/lib/libgdk-3.so.0
  • #39 ??
    from /usr/lib/libgdk-3.so.0
  • #40 g_main_context_dispatch
    from /usr/lib/libglib-2.0.so.0
  • #41 ??
    from /usr/lib/libglib-2.0.so.0
  • #42 g_main_context_iteration
    from /usr/lib/libglib-2.0.so.0
  • #43 g_application_run
    from /usr/lib/libgio-2.0.so.0
  • #44 main

Comment 10 Pierre-Yves Luyten 2013-04-14 19:52:53 UTC
Thanks all for these info, indeed this was bjb_controller_add_note, I messed up a glong with a gint64, thus it crashed only on 32 bit.

commit 10b444980f0447358371fdcc2707f310a351d020
Comment 11 Andres Fernandez 2013-04-15 00:54:36 UTC
(In reply to comment #10)
> Thanks all for these info, indeed this was bjb_controller_add_note, I messed up
> a glong with a gint64, thus it crashed only on 32 bit.
> 
> commit 10b444980f0447358371fdcc2707f310a351d020

Thank you! You did a Great job with app!
Comment 12 Antoine Saroufim 2013-04-20 00:06:29 UTC
Bijiben 3.8.1 still crashes with segmentation fault on x32. Was the fix applied to the 3.8.1 branch?
Comment 13 Pierre-Yves Luyten 2013-04-20 00:17:48 UTC
Ack the fix is missing there, you're right. I've just cherry-picked to correct things.

commit 0a7797839330b2b5bacc0f73d084539f4a4c6d04
commit 65f68cf5d048de971d47bacedfc47a01c8b502ca

If the package can be patched these two commits would make it. Until 3.8.2
Comment 14 Antoine Saroufim 2013-04-20 00:19:22 UTC
It looks like we'll have to wait another month before we can use your awesomely designed app :(