segmentation fault

Questions specific to Megatunix - alternate tuning software that runs on unix and windows.
Note that Megatunix is obsolete.

Moderator: djandruczyk

Post Reply
mjohnson575
MS/Extra Newbie
Posts: 13
Joined: Tue Dec 21, 2010 7:02 pm

segmentation fault

Post by mjohnson575 »

Just installed megatunix and keep getting a segmentation fault




Starting program: /Users/mattjohnson/Documents/megatunix-0.9.22/src/megatunix --g-fatal-warnings
Reading symbols for shared libraries .. done
Xlib: extension "RANDR" missing on display "/tmp/launch-BCsCjg/:0".

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000001ebb8a0
0x00000001008bb2e7 in gdk_gc_set_colormap ()
(gdb) backtrace
#0 0x00000001008bb2e7 in gdk_gc_set_colormap ()
#1 0x000000010009848f in mtx_gauge_face_configure (widget=0x101ed0140, event=0x101f28910) at gauge-private.c:633
#2 0x00000001004dfb2f in _gtk_marshal_BOOLEAN__BOXED ()
#3 0x0000000100f8d8d2 in g_closure_invoke ()
#4 0x0000000100fa33bc in signal_emit_unlocked_R ()
#5 0x0000000100fa4936 in g_signal_emit_valist ()
#6 0x0000000100fa5034 in g_signal_emit ()
#7 0x00000001005f71ae in gtk_widget_event_internal ()
#8 0x000000010045f904 in gtk_drawing_area_send_configure ()
#9 0x000000010045fa1d in gtk_drawing_area_realize ()
#10 0x0000000100f8d8d2 in g_closure_invoke ()
#11 0x0000000100fa2f0e in signal_emit_unlocked_R ()
#12 0x0000000100fa4c64 in g_signal_emit_valist ()
#13 0x0000000100fa5034 in g_signal_emit ()
#14 0x00000001005fd6e7 in gtk_widget_realize ()
#15 0x00000001005fdf48 in gtk_widget_map ()
#16 0x0000000100f8d8d2 in g_closure_invoke ()
#17 0x0000000100fa2f0e in signal_emit_unlocked_R ()
#18 0x0000000100fa4c64 in g_signal_emit_valist ()
#19 0x0000000100fa5034 in g_signal_emit ()
#20 0x00000001005fe6c6 in gtk_widget_show ()
#21 0x000000010049c77b in gtk_frame_forall ()
#22 0x000000010045b4e3 in gtk_container_show_all ()
#23 0x00000001004290bb in gtk_box_forall ()
#24 0x000000010045b4e3 in gtk_container_show_all ()
#25 0x00000001004290bb in gtk_box_forall ()
#26 0x000000010045b4e3 in gtk_container_show_all ()
#27 0x00000001004fba46 in gtk_notebook_forall ()
#28 0x000000010045b4e3 in gtk_container_show_all ()
#29 0x000000010045b4e3 in gtk_container_show_all ()
#30 0x000000010053d643 in gtk_scrolled_window_forall ()
#31 0x000000010045b4e3 in gtk_container_show_all ()
#32 0x00000001004290bb in gtk_box_forall ()
#33 0x000000010045b4e3 in gtk_container_show_all ()
#34 0x000000010049c77b in gtk_frame_forall ()
#35 0x000000010045b4e3 in gtk_container_show_all ()
#36 0x0000000100066386 in load_gui_tabs_pf () at tabloader.c:168
#37 0x0000000100023e11 in pf_dispatcher (data=0x0) at dispatcher.c:146
#38 0x000000010101105d in g_timeout_dispatch ()
#39 0x00000001010108e9 in g_main_context_dispatch ()
#40 0x0000000101013f81 in g_main_context_iterate ()
#41 0x0000000101014295 in g_main_loop_run ()
#42 0x00000001004d9cf0 in gtk_main ()
#43 0x0000000100047822 in main (argc=1, argv=0x7fff5fbff910) at main.c:144
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /Users/mattjohnson/Documents/megatunix-0.9.22/src/megatunix --g-fatal-warnings
Reading symbols for shared libraries .. done
Xlib: extension "RANDR" missing on display "/tmp/launch-BCsCjg/:0".

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00000000018b99e0
0x00000001008bb2e7 in gdk_gc_set_colormap ()
(gdb) backtrace
#0 0x00000001008bb2e7 in gdk_gc_set_colormap ()
#1 0x000000010009848f in mtx_gauge_face_configure (widget=0x10298c1c0, event=0x1028f9d60) at gauge-private.c:633
#2 0x00000001004dfb2f in _gtk_marshal_BOOLEAN__BOXED ()
#3 0x0000000100f8d8d2 in g_closure_invoke ()
#4 0x0000000100fa33bc in signal_emit_unlocked_R ()
#5 0x0000000100fa4936 in g_signal_emit_valist ()
#6 0x0000000100fa5034 in g_signal_emit ()
#7 0x00000001005f71ae in gtk_widget_event_internal ()
#8 0x000000010045f904 in gtk_drawing_area_send_configure ()
#9 0x000000010045fa1d in gtk_drawing_area_realize ()
#10 0x0000000100f8d8d2 in g_closure_invoke ()
#11 0x0000000100fa2f0e in signal_emit_unlocked_R ()
#12 0x0000000100fa4c64 in g_signal_emit_valist ()
#13 0x0000000100fa5034 in g_signal_emit ()
#14 0x00000001005fd6e7 in gtk_widget_realize ()
#15 0x00000001005fdf48 in gtk_widget_map ()
#16 0x000000010049c77b in gtk_frame_forall ()
#17 0x000000010045b3a7 in gtk_container_map ()
#18 0x0000000100f8d9af in g_closure_invoke ()
#19 0x0000000100fa2f0e in signal_emit_unlocked_R ()
#20 0x0000000100fa4c64 in g_signal_emit_valist ()
#21 0x0000000100fa5034 in g_signal_emit ()
#22 0x00000001005fdf1e in gtk_widget_map ()
#23 0x00000001004290bb in gtk_box_forall ()
#24 0x000000010045b3a7 in gtk_container_map ()
#25 0x0000000100f8d9af in g_closure_invoke ()
#26 0x0000000100fa2f0e in signal_emit_unlocked_R ()
#27 0x0000000100fa4c64 in g_signal_emit_valist ()
#28 0x0000000100fa5034 in g_signal_emit ()
#29 0x00000001005fdf1e in gtk_widget_map ()
#30 0x00000001004290bb in gtk_box_forall ()
#31 0x000000010045b3a7 in gtk_container_map ()
#32 0x0000000100f8d9af in g_closure_invoke ()
#33 0x0000000100fa2f0e in signal_emit_unlocked_R ()
#34 0x0000000100fa4c64 in g_signal_emit_valist ()
#35 0x0000000100fa5034 in g_signal_emit ()
#36 0x00000001005fdf1e in gtk_widget_map ()
#37 0x000000010045b3a7 in gtk_container_map ()
#38 0x0000000100f8d9af in g_closure_invoke ()
#39 0x0000000100fa2f0e in signal_emit_unlocked_R ()
#40 0x0000000100fa4c64 in g_signal_emit_valist ()
#41 0x0000000100fa5034 in g_signal_emit ()
#42 0x00000001005fdf1e in gtk_widget_map ()
#43 0x000000010053d643 in gtk_scrolled_window_forall ()
#44 0x000000010045b3a7 in gtk_container_map ()
#45 0x0000000100f8d9af in g_closure_invoke ()
#46 0x0000000100fa2f0e in signal_emit_unlocked_R ()
#47 0x0000000100fa4c64 in g_signal_emit_valist ()
#48 0x0000000100fa5034 in g_signal_emit ()
#49 0x00000001005fdf1e in gtk_widget_map ()
#50 0x00000001004290bb in gtk_box_forall ()
#51 0x000000010045b3a7 in gtk_container_map ()
#52 0x0000000100f8d9af in g_closure_invoke ()
#53 0x0000000100fa2f0e in signal_emit_unlocked_R ()
#54 0x0000000100fa4c64 in g_signal_emit_valist ()
#55 0x0000000100fa5034 in g_signal_emit ()
#56 0x00000001005fdf1e in gtk_widget_map ()
#57 0x000000010049c77b in gtk_frame_forall ()
#58 0x000000010045b3a7 in gtk_container_map ()
#59 0x0000000100f8d8d2 in g_closure_invoke ()
#60 0x0000000100fa2f0e in signal_emit_unlocked_R ()
#61 0x0000000100fa4c64 in g_signal_emit_valist ()
#62 0x0000000100fa5034 in g_signal_emit ()
#63 0x00000001005fdf1e in gtk_widget_map ()
#64 0x00000001005fe05b in gtk_widget_set_child_visible ()
#65 0x00000001004fe566 in gtk_notebook_real_switch_page ()
#66 0x0000000100f8d8d2 in g_closure_invoke ()
#67 0x0000000100fa33bc in signal_emit_unlocked_R ()
#68 0x0000000100fa4c64 in g_signal_emit_valist ()
#69 0x0000000100fa5034 in g_signal_emit ()
#70 0x000000010050109b in gtk_notebook_button_press ()
#71 0x00000001004dfb2f in _gtk_marshal_BOOLEAN__BOXED ()
#72 0x0000000100f8d8d2 in g_closure_invoke ()
#73 0x0000000100fa33bc in signal_emit_unlocked_R ()
#74 0x0000000100fa4936 in g_signal_emit_valist ()
#75 0x0000000100fa5034 in g_signal_emit ()
#76 0x00000001005f71ae in gtk_widget_event_internal ()
#77 0x00000001004d8647 in gtk_propagate_event ()
#78 0x00000001004d9916 in gtk_main_do_event ()
#79 0x00000001008f1594 in gdk_event_dispatch ()
#80 0x00000001010108e9 in g_main_context_dispatch ()
#81 0x0000000101013f81 in g_main_context_iterate ()
#82 0x0000000101014295 in g_main_loop_run ()
#83 0x00000001004d9cf0 in gtk_main ()
#84 0x0000000100047822 in main (argc=1, argv=0x7fff5fbff910) at main.c:144
(gdb)
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: segmentation fault

Post by djandruczyk »

mjohnson575 wrote:Just installed megatunix and keep getting a segmentation fault


0.9.22 is old, retry with 0.9.23

traces are only good if you configured megatunix with "--enable-debug".
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
mjohnson575
MS/Extra Newbie
Posts: 13
Joined: Tue Dec 21, 2010 7:02 pm

Re: segmentation fault

Post by mjohnson575 »

Thanks. Don't know how or why it downloaded 9.22
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: segmentation fault

Post by djandruczyk »

Did 0.9.23 solve the issue?
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
mjohnson575
MS/Extra Newbie
Posts: 13
Joined: Tue Dec 21, 2010 7:02 pm

Re: segmentation fault

Post by mjohnson575 »

No. I even got 9.24 and still get segfault. Could it be that I don't have the ecu hooked up?
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: segmentation fault

Post by djandruczyk »

mjohnson575 wrote:No. I even got 9.24 and still get segfault. Could it be that I don't have the ecu hooked up?
Are you choosing offline mode? which family and firmware did you choose?

0.9.24 is highly developmental, and only available via git. If you're going to use that YOU MUST compile it with debugging symbols (./configure --enable-debug ; make clean ; make ; sudo make install), and provide backtraces AS WELL AS CONTEXT to the crash. (i.e. where/when it does it, what was happening, what EXACT firmware you have on your ECU, and so on.

A non-debug build doesn't tell me anything in a backtrace, whereas a debug build will usually give me line numbers and a place to hone right in on.
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
mjohnson575
MS/Extra Newbie
Posts: 13
Joined: Tue Dec 21, 2010 7:02 pm

Re: segmentation fault

Post by mjohnson575 »

Yes I choose offline mode. Im using ms1 029y4 I think that's right. Im going to try and load 9.23 here in a few minutes. Happy new year
djandruczyk
MS/Extra Guru
Posts: 1210
Joined: Fri May 07, 2004 6:55 pm
Location: Rochester, NY, U.S.A.
Contact:

Re: segmentation fault

Post by djandruczyk »

mjohnson575 wrote:Yes I choose offline mode. Im using ms1 029y4 I think that's right. Im going to try and load 9.23 here in a few minutes. Happy new year

OK, offline mode has several issues in the released versions. I'llsee if i can accelerate the release schedule for 0.9.24
David J. Andruczyk
MegaTunix author. The only non-java cross platform tuning software for MS-I/II hardware.
Where to get and how to install:
http://msextra.com/viewtopic.php?t=23080
http://sourceforge.net/projects/megatunix
mjohnson575
MS/Extra Newbie
Posts: 13
Joined: Tue Dec 21, 2010 7:02 pm

Re: segmentation fault

Post by mjohnson575 »

Thanks! Got it working last night in offline mode. Even got guagedesigner to work. Thanks for the support.
Post Reply