Re: gdb crashes displaying a std::string
Re: gdb crashes displaying a std::string
- Subject: Re: gdb crashes displaying a std::string
- From: Dario Accornero <email@hidden>
- Date: Wed, 26 Nov 2003 18:39:45 +0100
On 25 Nov 2003, at 19:39, Jim Ingham wrote:
This is a dup of 3431476. It is already fixed and should work
correctly in Xcode 1.1 whenever that goes out.
Except that now I cannot debug my project anymore! :-(
No matter where I put my breakpoints, even in methods that do not use
std::string, from within Xcode gdb segfaults on me thusly:
Host: PowerMac.local
Date/Time: 2003-11-26 18:35:17 +0100
OS Version: 10.3.1 (Build 7C107)
Command: gdb-powerpc-apple-darwin
(/usr/libexec/gdb/gdb-powerpc-apple-darwin)
PID: 445
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x75666665
Thread 0 Crashed:
#0 0x000243dc in strcmp_iw (strcmp_iw + 24)
#1 0x0009ffd0 in value_objc_target_type (value_objc_target_type +
204)
#2 0x000769a8 in wrap_value_objc_target_type
(wrap_value_objc_target_type + 28)
#3 0x0001b7a8 in catcher (catcher + 216)
#4 0x0001b994 in catch_errors (catch_errors + 76)
#5 0x00076a34 in safe_value_objc_target_type
(safe_value_objc_target_type + 112)
#6 0x00064f10 in varobj_fixup_value (varobj_fixup_value + 228)
#7 0x00065260 in varobj_create (varobj_create + 620)
#8 0x0000fce0 in print_syms_for_block (print_syms_for_block + 408)
#9 0x0000fa94 in list_args_or_locals (list_args_or_locals + 288)
#10 0x0000f79c in mi_cmd_stack_list_locals (mi_cmd_stack_list_locals
+ 132)
#11 0x000122bc in captured_mi_execute_command
(captured_mi_execute_command + 180)
#12 0x0001b7a8 in catcher (catcher + 216)
#13 0x0001b8a4 in catch_exceptions (catch_exceptions + 56)
#14 0x000125c0 in mi_execute_command (mi_execute_command + 140)
#15 0x0004aeb0 in process_event (process_event + 96)
#16 0x0004af18 in gdb_do_one_event (gdb_do_one_event + 52)
#17 0x0001b7a8 in catcher (catcher + 216)
#18 0x0001b994 in catch_errors (catch_errors + 76)
#19 0x0004af68 in start_event_loop (start_event_loop + 60)
#20 0x00002a58 in captured_command_loop (captured_command_loop + 60)
#21 0x0001b7a8 in catcher (catcher + 216)
#22 0x0001b994 in catch_errors (catch_errors + 76)
#23 0x00003930 in captured_main (captured_main + 3728)
#24 0x0001b7a8 in catcher (catcher + 216)
#25 0x0001b994 in catch_errors (catch_errors + 76)
#26 0x00003978 in gdb_main (gdb_main + 68)
#27 0x000029b4 in main (main + 68)
#28 0x000026a0 in _start (_start + 392)
#29 0x00002514 in start (start + 48)
Thread 1:
#0 0x900315ac in wait4 (wait4 + 12)
#1 0x000c657c in macosx_signal_thread (macosx_signal_thread + 116)
#2 0x900247e8 in _pthread_body (_pthread_body + 40)
Thread 2:
#0 0x9000ebcc in read (read + 12)
#1 0x000c60d8 in macosx_exception_thread (macosx_exception_thread +
300)
#2 0x900247e8 in _pthread_body (_pthread_body + 40)
PPC Thread State:
srr0: 0x000243dc srr1: 0x0200f930 vrsave: 0x00000000
cr: 0x44004244 xer: 0x00000004 lr: 0x000243d4 ctr: 0x00000001
r0: 0x0009ffd0 r1: 0xbfffdbd0 r2: 0x01ff0f14 r3: 0x75666665
r4: 0x001bd24c r5: 0x00000003 r6: 0xbfffdf40 r7: 0x00000064
r8: 0x0000006f r9: 0x00000000 r10: 0x00021a64 r11: 0x0b071b16
r12: 0x900f5f80 r13: 0x00212ab4 r14: 0x00000000 r15: 0x005003f0
r16: 0x00000001 r17: 0x01805e64 r18: 0x0055ea70 r19: 0x00000002
r20: 0x01434ac0 r21: 0xbfffe3e0 r22: 0x0144a7e0 r23: 0x00558150
r24: 0x01440680 r25: 0x04801398 r26: 0x00000001 r27: 0xbfffe35c
r28: 0x01442210 r29: 0x00000000 r30: 0x01fe6cc0 r31: 0x000243d4
I've not tried from the command line 'cause I'd like to use a GUI
debugger -- as I was previously able to do.
No amount of rebuilding from scratch, logging out or restarting seems
to fix the problem. Before I start with animal sacrifices, could you
please suggest a temporary workaround?
Thanks,
Dario
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.