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 633018 - crash in Anjuta IDE: I closed a project, wich...
crash in Anjuta IDE: I closed a project, wich...
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: plugins: symbol-db
2.32.x
Other All
: Normal critical
: ---
Assigned To: Massimo Cora'
Anjuta maintainers
: 634773 636451 636453 638154 638287 639592 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-10-24 09:51 UTC by christoph
Modified: 2011-01-15 11:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.29/2.30


Attachments
Fix (2.76 KB, patch)
2010-12-25 14:25 UTC, Sébastien Granjoux
none Details | Review

Description christoph 2010-10-24 09:51:08 UTC
Version: 2.32.0.0

What were you doing when the application crashed?
I closed a project, wich was opened by anjuta when starting anjuta (it was the project I worked on at the last session)


Distribution: Debian squeeze/sid
Gnome Release: 2.30.2 2010-07-17 (Debian)
BugBuddy Version: 2.30.0

System: Linux 2.6.32-5-686 #1 SMP Thu Oct 14 17:15:16 UTC 2010 i686
X Vendor: The X.Org Foundation
X Vendor Release: 10707000
Selinux: No
Accessibility: Disabled
GTK+ Theme: Clearlooks
Icon Theme: gnome-brave
GTK+ Modules: gnomebreakpad, canberra-gtk-module

Memory status: size: 332050432 vsize: 332050432 resident: 68640768 share: 23986176 rss: 68640768 rss_rlim: 18446744073709551615
CPU usage: start_time: 1287913411 rtime: 6043 utime: 5952 stime: 91 cutime:1 cstime: 2 timeout: 0 it_real_value: 0 frequency: 100

Backtrace was generated from '/usr/bin/anjuta'

[Thread debugging using libthread_db enabled]
[New Thread 0xa868db70 (LWP 16876)]
[New Thread 0xa44fcb70 (LWP 16875)]
[New Thread 0xa4cfdb70 (LWP 16874)]
[New Thread 0xaa692b70 (LWP 16813)]
[New Thread 0xb0a1db70 (LWP 16810)]
0xb78af424 in __kernel_vsyscall ()

Thread 1 (Thread 0xb69b0a50 (LWP 16805))

  • #0 __kernel_vsyscall
  • #1 waitpid
    at ../sysdeps/unix/syscall-template.S line 82
  • #2 g_spawn_sync
    from /lib/libglib-2.0.so.0
  • #3 g_spawn_command_line_sync
    from /lib/libglib-2.0.so.0
  • #4 ??
    from /usr/lib/gtk-2.0/modules/libgnomebreakpad.so
  • #5 <signal handler called>
  • #6 __kernel_vsyscall
  • #7 *__GI_raise
    at ../nptl/sysdeps/unix/sysv/linux/raise.c line 64
  • #8 *__GI_abort
    at abort.c line 92
  • #9 pa_tls_set
    from /usr/lib/libpulsecommon-0.9.21.so
  • #10 pa_thread_self
    from /usr/lib/libpulsecommon-0.9.21.so
  • #11 pa_threaded_mainloop_lock
    from /usr/lib/libpulse.so.0
  • #12 pulse_driver_play
    from /usr/lib/libcanberra-0.24/libcanberra-pulse.so
  • #13 ??
    from /usr/lib/libcanberra.so.0
  • #14 ca_context_play_full
    from /usr/lib/libcanberra.so.0
  • #15 ca_gtk_play_for_widget
    from /usr/lib/libcanberra-gtk.so.0
  • #16 ??
    from /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
  • #17 ??
    from /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
  • #18 ??
    from /usr/lib/libgdk-x11-2.0.so.0
  • #19 ??
    from /lib/libglib-2.0.so.0
  • #20 g_main_context_dispatch
    from /lib/libglib-2.0.so.0
  • #21 ??
    from /lib/libglib-2.0.so.0
  • #22 g_main_loop_run
    from /lib/libglib-2.0.so.0
  • #23 gtk_main
    from /usr/lib/libgtk-x11-2.0.so.0
  • #24 ??
  • #25 __libc_start_main
    at libc-start.c line 228
  • #26 ??
A debugging session is active.

	Inferior 1 [process 16805] will be detached.

Quit anyway? (y or n) [answered Y; input not from terminal]


----------- .xsession-errors ---------------------
show_notification = True
preset = paste.debian.net
open_browser = False
mime-type not found: 'application/vnd.ms-powerpoint'Create Settings object...
Reading configuration from GConf...
Loaded configuration: 
ask_confirmation = False
show_notification = True
preset = paste.debian.net
open_browser = False
mime-type not found: 'application/vnd.ms-powerpoint'
(anjuta:16805): libanjuta-symbol-db-WARNING **: SQL select exec failed: SELECT symbol.symbol_id, symbol.name, symbol.file_position, symbol.scope_definition_id, symbol.signature, symbol.returntype, sym
(anjuta:16805): libanjuta-symbol-db-WARNING **: SQL select exec failed: SELECT symbol.symbol_id, symbol.name, symbol.file_position, symbol.scope_definition_id, symbol.signature, symbol.returntype, sym
Assertion 'pthread_setspecific(t->key, userdata) == 0' failed at pulsecore/thread-posix.c:200, function pa_tls_set(). Aborting.
--------------------------------------------------
Comment 1 Johannes Schmid 2010-10-24 11:43:21 UTC
(anjuta:16805): libanjuta-symbol-db-WARNING **: SQL select exec failed: SELECT
symbol.symbol_id, symbol.name, symbol.file_position,
symbol.scope_definition_id, symbol.signature, symbol.returntype, sym
(anjuta:16805): libanjuta-symbol-db-WARNING **: SQL select exec failed: SELECT
symbol.symbol_id, symbol.name, symbol.file_position,
symbol.scope_definition_id, symbol.signature, symbol.returntype, sym
Assertion 'pthread_setspecific(t->key, userdata) == 0' failed at
pulsecore/thread-posix.c:200, function pa_tls_set(). Aborting.

Looks pretty much like memory corruption in the symbol database threading!
Comment 2 Massimo Cora' 2010-10-25 21:18:31 UTC
it seems to me that there's some problems with db versions "SQL select exec failed".
Can you please try to remove (after a proper backup) /your/project/.anjuta_sym_db.db and then re-launch anjuta? Try to see if the bug still exists.

It would be great if you could give me the output of:

$ cd /your/project/
$ sqlite3 .anjuta_sym_db.db
SQLite version 3.7.3
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select * from version;


thanks.

btw: anjuta 2.32 has been packaged on sid/squeeze despite all the others gnome libraries are still at 2.30.
Comment 3 christoph 2010-12-16 08:58:24 UTC
Some additional information:

SQLite version 3.7.3
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select * from version
Error: no such table: version


At the moment anjuta (2.32.0 from debian/squeeze) loads the project without problems.
Comment 4 Massimo Cora' 2010-12-18 11:41:40 UTC
(In reply to comment #3)
> Some additional information:
> 
> SQLite version 3.7.3
> Enter ".help" for instructions
> Enter SQL statements terminated with a ";"
> sqlite> select * from version
> Error: no such table: version
> 

you should also place a ";" at the end of the query

here it is mine output:
SQLite version 3.7.3
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select * from version;
300.8


> 
> At the moment anjuta (2.32.0 from debian/squeeze) loads the project without
> problems.
Comment 5 christoph 2010-12-18 16:51:47 UTC
sorry, it was a copy&paste mistake made by me...

SQLite version 3.7.3
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select * from version;
300.6
Comment 6 Sébastien Granjoux 2010-12-24 18:06:41 UTC
I have seen on Ubuntu a bug looking like this one. It appears only when System->Preferences->Sound->window and button sound effect is enable. So you can try to disable this option and check if it's working better.

You get a error on the screen too:
Assertion 'pthread_setspecific(t->key, userdata) == 0' failed at pulsecore/thread-posix.c:240, function pa_tls_set(). Aborting. 

Anjuta is crashing very often with this bug. It is a bug in Anjuta due to a wrong call of xmlCleanupParser, which overwrite some data in pulse audio.
Comment 7 Sébastien Granjoux 2010-12-25 09:56:47 UTC
*** Bug 636453 has been marked as a duplicate of this bug. ***
Comment 8 Sébastien Granjoux 2010-12-25 09:58:19 UTC
*** Bug 636451 has been marked as a duplicate of this bug. ***
Comment 9 Sébastien Granjoux 2010-12-25 09:58:52 UTC
*** Bug 634773 has been marked as a duplicate of this bug. ***
Comment 10 Sébastien Granjoux 2010-12-25 10:15:39 UTC
More information in this blog post
http://0pointer.de/blog/projects/beware-of-xmlCleanupParser.html

and in this bug report
https://bugzilla.redhat.com/show_bug.cgi?id=554903
Comment 11 Sébastien Granjoux 2010-12-25 14:25:04 UTC
Created attachment 177041 [details] [review]
Fix

Remove wrong xmlCleanupParser call and add it only one just before exiting.

I cannot reproduce the bug here so I haven't committed it yet. Is someone can check that this patch fix the bug ?
Comment 12 Sébastien Granjoux 2010-12-25 14:49:53 UTC
I have committed the fix and fix anjuta-extras too (two calls to xmlCleanupParser in the profiler plugin).

I still haven't seen that the bug is fixed so if you see this it again reopen this bug report.
Comment 13 Massimo Cora' 2010-12-25 16:58:20 UTC
great shot seb!
Comment 14 Johannes Schmid 2010-12-28 08:51:08 UTC
*** Bug 638154 has been marked as a duplicate of this bug. ***
Comment 15 Johannes Schmid 2010-12-29 17:22:11 UTC
*** Bug 638287 has been marked as a duplicate of this bug. ***
Comment 16 Johannes Schmid 2011-01-15 11:17:52 UTC
*** Bug 639592 has been marked as a duplicate of this bug. ***