gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debug ProjectCenter


From: Daniel Santos
Subject: Re: Debug ProjectCenter
Date: Fri, 29 Nov 2024 10:44:49 +0000

I am now trying to build all of gnustep with debug information.
I am using clang and am compiling from the repos in GitHub at the HEAD version
Have built libobjc2 and libs-back, libs-base and libs-gui all with debug=yes.
I then built project center also with debug=yes
Now when I am trying to run ProjectCenter installed with GNUSTEP_INSTALLATION_DOMAIN=LOCAL i am getting an error in an Assert :

gdb -x gdb_cmds.txt ~/GNUstep/Applications/ProjectCenter.app/ProjectCenter 
GNU gdb (Debian 13.1-3) 13.1
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/dlsa/GNUstep/Applications/ProjectCenter.app/ProjectCenter...
(gdb) run
Starting program: /home/dlsa/GNUstep/Applications/ProjectCenter.app/ProjectCenter 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
2024-11-29 10:23:03.973 ProjectCenter[158425:158425] Unsupported context depth 24
2024-11-29 10:23:04.091 ProjectCenter[158425:158425] final candidate path is: /usr/local/bin/gmake
2024-11-29 10:23:04.091 ProjectCenter[158425:158425] final candidate path is: /usr/bin/gmake
2024-11-29 10:23:04.091 ProjectCenter[158425:158425] Build tool found: /usr/bin/gmake
2024-11-29 10:23:04.101 ProjectCenter[158425:158425] final candidate path is: /usr/local/bin/gdb
2024-11-29 10:23:04.101 ProjectCenter[158425:158425] final candidate path is: /usr/bin/gdb
2024-11-29 10:23:04.101 ProjectCenter[158425:158425] Debugger tool found: /usr/bin/gdb
2024-11-29 10:23:04.118 ProjectCenter[158425:158425] NSDocumentClass PCProjectDocument not found
2024-11-29 10:23:04.118 ProjectCenter[158425:158425] NSDocumentClass PCProjectDocument not found
2024-11-29 10:23:04.119 ProjectCenter[158425:158425] NSDocumentClass PCClassDocument not found
2024-11-29 10:23:04.119 ProjectCenter[158425:158425] NSDocumentClass PCClassDocument not found
2024-11-29 10:23:04.119 ProjectCenter[158425:158425] NSDocumentClass PCHeaderDocument not found
2024-11-29 10:23:04.119 ProjectCenter[158425:158425] NSDocumentClass PCCDocument not found
[Detaching after vfork from child process 158430]
ProjectCenter: /home/dlsa/code/gnustep/libobjc2/protocol.h:85: struct objc_protocol_method_description *protocol_method_at_index(struct objc_protocol_method_description_list *, int): Assertion `l->size >= sizeof(struct objc_protocol_method_description)' failed.

Program received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0)
    at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
(gdb) 

Seems the problem is in libobjc2, but I don’t have a clue how to get past it.

Daniel Santos



On 26 Nov 2024, at 19:01, Sebastian Reitenbach <sebastia@l00-bugdead-prods.de> wrote:

On Sunday, November 24, 2024 21:36 CET, Daniel Santos <daniel.dlds@gmail.com> wrote:

I recompiled with that option.
But I still get the same behaviour.

you also compiled gnustep base/gui and back and even libobjc with debug symbols?
Having the full stack of dependencies with debugging symbols, and sources still left on disk,
usually works for me.

sebastian


I am running the program from the .app folder that the build creates within the project root folder.

I do gdb ProjectCenter.app/ProjectCenter

Daniel Santos



On 24 Nov 2024, at 19:19, Gregory Casamento <greg.casamento@gmail.com> wrote:

Hey Daniel

Use “make debug=yes”.  That should work for you. 

GC

Gregory Casamento
GNUstep Lead Developer / Black Lotus, Principal Consultant
http://www.gnustep.org <http://www.gnustep.org/> - http://heronsperch.blogspot.com <http://heronsperch.blogspot.com/>
https://www.patreon.com/bePatron?u=352392 <https://www.patreon.com/bePatron?u=352392> - Become a Patron
https://www.openhub.net/languages/objective_c <https://www.openhub.net/languages/objective_c>
https://www.gofundme.com/f/cacao-linux-a-gnustep-reference-implementation <https://www.gofundme.com/f/cacao-linux-a-gnustep-reference-implementation>


On Sun, Nov 24, 2024 at 14:17 Daniel Santos <daniel.dlds@gmail.com <mailto:daniel.dlds@gmail.com>> wrote:
Hi,

I am trying to do some changes in the sources of project center and am using gdb to debug.
How do I disable gcc optimisations ?
I tried putting :
CFLAGS = -g -O0
in the GNUmakefile.preamble, but I am still getting values that show <optimized out> when I print them, and unexpected jumps in the code.

Thanks,
Regards

Daniel Santos


reply via email to

[Prev in Thread] Current Thread [Next in Thread]