Quantcast

Jenkins crashing, GLib error

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Jenkins crashing, GLib error

David Pärsson
Hi,

During the last few days we've experienced Jenkins master crashes, with increasing frequency. The process dies and the log gives no clues but this:
GLib:ERROR:/build/buildd/glib2.0-2.24.1/glib/gmain.c:1963:g_main_dispatch: assertion failed: (current->dispatching_sources == &current_source_link)

We don't think there has been any significant changes in configuration or setup recently, so we're not sure what caused this. Has anyone else seen this issue? Google searches seem to suggest this error is related to thread management issues, but I haven't been able to find any details.

We're running Jenkins 1.457, and our master runs on Ubuntu 10.04.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins crashing, GLib error

Bejoy Jaison
We're running Jenkins 1.457, and our master runs on Ubuntu 10.04.

Also observing same error on our Jenkins server. Running Jenkins 1.462 with master runing on RHEL Server release 5.6.
GLib-ERROR **: file gmain.c: line 2008 (g_main_dispatch): assertion failed: (source)
aborting...

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins crashing, GLib error

David Pärsson
In reply to this post by David Pärsson
After updating Jenkins to 1.471 we still experienced the same problems, but after updating Ubuntu to 12.04 on our Jenkins master and all of our Jenkins slaves, this issue seems to have been resolved.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins crashing, GLib error

Bejoy Jaison
Hi,

What is the Java version that you are using with Ubuntu 12, so that I can upgrade Java and check again.

regards,
Bejoy

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins crashing, GLib error

David Pärsson
This is from our master:
$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

The version on our slaves differ:
$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

$ java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

We have a few more slaves and they might have some other Java versions not listed above.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins crashing, GLib error

Gábor Garami

Master's java is quite old, try to upgrade to latest jdk6 (u34 iirc).

I think there is a ppa for that or sthg.

Garami Gábor
[hidden email]
Skype: hron84
Tel: +36 20 235 9621

Sent from my T-Mobile G2
Ezt a levelet telefonról adták fel, ékezethibákat tartalmazhat.

2012.08.31. 13:03, "David Pärsson" <[hidden email]> ezt írta:
This is from our master:
$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

The version on our slaves differ:
$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

$ java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

We have a few more slaves and they might have some other Java versions not listed above.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Jenkins crashing, GLib error

Bejoy Jaison

Thanks for the information.

We are still seeing many crashes:

GLib-WARNING (recursed) **: gmain.c:1429: ref_count == 0, but source is still attached to a context!
GLib-WARNING (recursed) **: g_main_loop_run() was called from second thread but g_thread_init() was never called.
...

Running Jenkins  1.462 on RHEL release 5.6 (Tikanga)/j2se_1.6.0_31

Will update to latest Jenkins and Java 1.6 and check...

regards,
Bejoy

Loading...