Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-05

Segfault opening editor

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Anthon

Since updating from CVS this morning I am not able to open a file in the editor as it segfaults as soon as I try opening the file. I am including a backtrace for it.

Is it possible to debug the pascal code using gdb? If so, how would I enable debug symbols? I'd like to get a bit more info on where it is failing and try to track it down...

Cheers
Michael Anthon

(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault. 0x806e1a0 in _SYSLINUX ()
(gdb) bt
#0 0x806e1a0 in _SYSLINUX ()
#1 0x806e00c in _SYSLINUX ()
#2 0x806b876 in _SYSLINUX ()
#3 0x806be57 in _SYSLINUX ()
#4 0x806bb3f in FPC_SHORTSTR_TO_ANSISTR ()
#5 0x804bf85 in _EDITOR ()
#6 0x804d6a7 in _EDITOR ()
#7 0x804bb8f in _DIALOGS ()
#8 0x804b98e in gtkOnOK ()
#9 0x401fdcf3 in gtk_marshal_NONE__NONE (object=0x82b3650, func=0x804b95c <gtkOnOK>, func_data=0x8085e48, args=0xbfffeebc)
at gtkmarshal.c:344
#10 0x401c61a6 in gtk_handlers_run (handlers=0x82bee60, signal=0xbfffee78, object=0x82b3650, params=0xbfffeebc, after=0)
at gtksignal.c:1909
#11 0x401c56bc in gtk_signal_real_emit (object=0x82b3650, signal_id=73, params=0xbfffeebc) at gtksignal.c:1469
#12 0x401c3a58 in gtk_signal_emit (object=0x82b3650, signal_id=73) at gtksignal.c:552
#13 0x401423b8 in gtk_button_clicked (button=0x82b3650) at gtkbutton.c:338 #14 0x4017a43c in gtk_file_selection_file_button (widget=0x82b78d0, row=2, column=0, bevent=0x82aec3c, user_data=0x82b08b8)
at gtkfilesel.c:1236
#15 0x401fdcd3 in gtk_marshal_NONE__INT_INT_POINTER (object=0x82b78d0, func=0x4017a348 <gtk_file_selection_file_button>,
func_data=0x82b08b8, args=0xbffff234) at gtkmarshal.c:328 #16 0x401c61a6 in gtk_handlers_run (handlers=0x82a1740, signal=0xbffff1f0, object=0x82b78d0, params=0xbffff234, after=0)
at gtksignal.c:1909
#17 0x401c56bc in gtk_signal_real_emit (object=0x82b78d0, signal_id=77, params=0xbffff234) at gtksignal.c:1469
#18 0x401c3a58 in gtk_signal_emit (object=0x82b78d0, signal_id=77) at gtksignal.c:552
#19 0x4015396c in gtk_clist_button_press (widget=0x82b78d0, event=0x82aec3c) at gtkclist.c:5000
#20 0x401fd9d1 in gtk_marshal_BOOL__POINTER (object=0x82b78d0, func=0x40153598 <gtk_clist_button_press>, func_data=0x0, args=0xbffff594) at gtkmarshal.c:30
#21 0x401c56f3 in gtk_signal_real_emit (object=0x82b78d0, signal_id=20, params=0xbffff594) at gtksignal.c:1484
#22 0x401c3a58 in gtk_signal_emit (object=0x82b78d0, signal_id=20) at gtksignal.c:552
#23 0x401f57c0 in gtk_widget_event (widget=0x82b78d0, event=0x82aec3c) at gtkwidget.c:2788
#24 0x4019bd9d in gtk_propagate_event (widget=0x82b78d0, event=0x82aec3c) at gtkmain.c:1295
#25 0x4019b106 in gtk_main_do_event (event=0x82aec3c) at gtkmain.c:752 #26 0x400bcbee in gdk_event_dispatch (source_data=0x0, current_time=0xbffff914, user_data=0x0) at gdkevents.c:2086 #27 0x402d8b13 in g_main_dispatch (current_time=0xbffff914) at gmain.c:656 #28 0x402d909b in g_main_iterate (block=1, dispatch=1) at gmain.c:865 #29 0x402d921d in g_main_run (loop=0x82ae0f0) at gmain.c:923 #30 0x4019ab9b in gtk_main () at gtkmain.c:475
#31 0x8050ec0 in _GUIAPI ()
#32 0x80634fd in _FORMS ()
#33 0x80713da in program_init ()

Reply by email

Shane Miller

I just did an update from CVS and opened a file. Try opening a DIFFERENT .pp file, say buttons.pp I know that certain files make it crash yet...

Shane

>> Michael Anthon 05/18 3:42 AM >>>

Since updating from CVS this morning I am not able to open a file in the editor as it segfaults as soon as I try opening the file. I am including a backtrace for it.

Is it possible to debug the pascal code using gdb? If so, how would I enable debug symbols? I'd like to get a bit more info on where it is failing and try to track it down...

Cheers
Michael Anthon

(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault. 0x806e1a0 in _SYSLINUX ()
(gdb) bt
#0 0x806e1a0 in _SYSLINUX ()
#1 0x806e00c in _SYSLINUX ()
#2 0x806b876 in _SYSLINUX ()
#3 0x806be57 in _SYSLINUX ()
#4 0x806bb3f in FPC_SHORTSTR_TO_ANSISTR ()
#5 0x804bf85 in _EDITOR ()
#6 0x804d6a7 in _EDITOR ()
#7 0x804bb8f in _DIALOGS ()
#8 0x804b98e in gtkOnOK ()
#9 0x401fdcf3 in gtk_marshal_NONE__NONE (object=0x82b3650, func=0x804b95c <gtkOnOK>, func_data=0x8085e48, args=0xbfffeebc)
at gtkmarshal.c:344
#10 0x401c61a6 in gtk_handlers_run (handlers=0x82bee60, signal=0xbfffee78, object=0x82b3650, params=0xbfffeebc, after=0)
at gtksignal.c:1909
#11 0x401c56bc in gtk_signal_real_emit (object=0x82b3650, signal_id=73, params=0xbfffeebc) at gtksignal.c:1469
#12 0x401c3a58 in gtk_signal_emit (object=0x82b3650, signal_id=73) at gtksignal.c:552
#13 0x401423b8 in gtk_button_clicked (button=0x82b3650) at gtkbutton.c:338 #14 0x4017a43c in gtk_file_selection_file_button (widget=0x82b78d0, row=2, column=0, bevent=0x82aec3c, user_data=0x82b08b8)
at gtkfilesel.c:1236
#15 0x401fdcd3 in gtk_marshal_NONE__INT_INT_POINTER (object=0x82b78d0, func=0x4017a348 <gtk_file_selection_file_button>,
func_data=0x82b08b8, args=0xbffff234) at gtkmarshal.c:328 #16 0x401c61a6 in gtk_handlers_run (handlers=0x82a1740, signal=0xbffff1f0, object=0x82b78d0, params=0xbffff234, after=0)
at gtksignal.c:1909
#17 0x401c56bc in gtk_signal_real_emit (object=0x82b78d0, signal_id=77, params=0xbffff234) at gtksignal.c:1469
#18 0x401c3a58 in gtk_signal_emit (object=0x82b78d0, signal_id=77) at gtksignal.c:552
#19 0x4015396c in gtk_clist_button_press (widget=0x82b78d0, event=0x82aec3c) at gtkclist.c:5000
#20 0x401fd9d1 in gtk_marshal_BOOL__POINTER (object=0x82b78d0, func=0x40153598 <gtk_clist_button_press>, func_data=0x0, args=0xbffff594) at gtkmarshal.c:30
#21 0x401c56f3 in gtk_signal_real_emit (object=0x82b78d0, signal_id=20, params=0xbffff594) at gtksignal.c:1484
#22 0x401c3a58 in gtk_signal_emit (object=0x82b78d0, signal_id=20) at gtksignal.c:552
#23 0x401f57c0 in gtk_widget_event (widget=0x82b78d0, event=0x82aec3c) at gtkwidget.c:2788
#24 0x4019bd9d in gtk_propagate_event (widget=0x82b78d0, event=0x82aec3c) at gtkmain.c:1295
#25 0x4019b106 in gtk_main_do_event (event=0x82aec3c) at gtkmain.c:752 #26 0x400bcbee in gdk_event_dispatch (source_data=0x0, current_time=0xbffff914, user_data=0x0) at gdkevents.c:2086 #27 0x402d8b13 in g_main_dispatch (current_time=0xbffff914) at gmain.c:656 #28 0x402d909b in g_main_iterate (block=1, dispatch=1) at gmain.c:865 #29 0x402d921d in g_main_run (loop=0x82ae0f0) at gmain.c:923 #30 0x4019ab9b in gtk_main () at gtkmain.c:475
#31 0x8050ec0 in _GUIAPI ()
#32 0x80634fd in _FORMS ()
#33 0x80713da in program_init ()

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

OK, then try to open another file. Delete your lazarus directory and re-pull lazarus. Then redo the make and run it.

Otherwise, can you copy the last few lines that lazarus writes out? They should be lines like About to freeze window
Froze
Exiting TMemo.Show

stuff like that. That way I can see what was the last thing to run...

Shane

>> Michael Anthon 05/18 9:58 AM >>>

It WAS buttons.pp I was trying to open....

Michael A

Shane Miller wrote
I just did an update from CVS and opened a file. Try opening a DIFFERENT .pp file, say buttons.pp I know that certain files make it crash yet...

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Peter Vreman
to Shane Miller: Now that I have downloaded the newest FPC from CVS I am also getting the error when…
Now that I have downloaded the newest FPC from CVS I am also getting the error when opening a file. I will fix it and update CVS. Not sure if it's such a good idea to update our FPC constantly until we have some working version of lazarus unless there is a fix that is really needed.

Soon there will be a 0.99.12 release on which you can base. But before the release we will try to remove as many bugs as possible.

Peter

Reply by email

Shane Miller

Now that I have downloaded the newest FPC from CVS I am also getting the error when opening a file. I will fix it and update CVS. Not sure if it's such a good idea to update our FPC constantly until we have some working version of lazarus unless there is a fix that is really needed.

Shane

>> Michael Anthon 05/18 9:58 AM >>>

It WAS buttons.pp I was trying to open....

Michael A

Shane Miller wrote
I just did an update from CVS and opened a file. Try opening a DIFFERENT .pp file, say buttons.pp I know that certain files make it crash yet...

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email