[Gambas-user] Why 1.9.x doesn't show up

Eilert eilert-sprachen at ...221...
Mon May 29 09:32:42 CEST 2006


Benoit Minisini schrieb:
> On Tuesday 23 May 2006 10:37, Eilert wrote:
>> Morning, Benoit,
>>
>> is there a log file by the gbx2 binaries where I might find a hint to
>> what causes Gambas2 to not show up on my system?
>>
>> Or can I start it with an option that gives error messages?
>>
>> You'll remember: since you introduced MDI, Gambas will run like "hidden"
>> on my system, i. e. it's running but you cannot see any windows (the
>> only thing you get to see is the greeting window).
>>
>> By the way, the dancing symbol KDE produces doesn't stop, so KDE never
>> knows that Gambas2 has started. But the binary is in the list of
>> processes, and if you just log out and log in again, Gambas will pop up
>> and greet again.
>>
>> But there should be a way to find out where it hangs... :-) Maybe some
>> too old library or something missing on my system?
>>
>> Regards
>>
>> Rolf
>>
> 
> 1) Check that you compile it without optimization and with debugging 
> information (this is the default normally).
> 
> 2) Launch the IDE.
> 
> 3) Get its process id with 'ps'.
> 
> 4) Run gdb by telling it to attach to this process id, like that:
> $ gdb /usr/bin/gbx2 <pid>
> 
> 5) Stop it with CTRL+C in gdb.
> 
> 6) Type bt, get the backtrace, and send it to me.
> 
> Another useful information is launching the IDE with strace until it freezes, 
> and sending the output. This way:
> $ cd <path/to/IDE/source>
> $ strace gbx2 2> strace.out
> 
> Regards,
> 

I hope I did it right, just started gambas2 as usual, then looked for 
the pid of gbx2, connected gbd to it and pressed Ctrl+C.

So this is the result of bt:

#0  0xffffe410 in ?? ()
#1  0xbfffd93c in ?? ()
#2  0x080b355c in ?? ()
#3  0x080b33d8 in ?? ()
#4  0x407f235d in ___newselect_nocancel () from /lib/tls/libc.so.6
#5  0x401f5cc7 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#6  0x40d90f25 in MyEventLoop::processEvents (this=0x80b3358, flags=4) 
at main.cpp:240
#7  0x4025ea31 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#8  0x4025e876 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#9  0x402488df in QApplication::exec () from /usr/lib/libqt-mt.so.3
#10 0x40d909f3 in hook_loop () at main.cpp:444
#11 0x0805fdd4 in main (argc=1, argv=0xbfffdbc4) at gbx.c:323


I tried the second one as well, this is the contents of strace.out:

execve("./gbx2", ["./gbx2"], [/* 74 vars */]) = 0
uname({sys="Linux", node="server02", ...}) = 0
brk(0)                                  = 0x8072000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x40017000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=104584, ...}) = 0
old_mmap(NULL, 104584, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40018000
close(3)                                = 0
open("/lib/tls/libm.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p5\0\000"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=170563, ...}) = 0
old_mmap(NULL, 137712, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40032000
madvise(0x40032000, 137712, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x40053000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0x20000) = 0x40053000
close(3)                                = 0
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\33\0\000"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=13647, ...}) = 0
old_mmap(NULL, 8628, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40054000
madvise(0x40054000, 8628, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x40056000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0x2000) = 0x40056000
close(3)                                = 0
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360U\1"..., 
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1349081, ...}) = 0
old_mmap(NULL, 1132940, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40057000
madvise(0x40057000, 1132940, MADV_SEQUENTIAL|0x1) = 0
old_mmap(0x40161000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0x10a000) = 0x40161000
old_mmap(0x40169000, 10636, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40169000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x4016c000
set_thread_area({entry_number:-1 -> 6, base_addr:0x4016c660, 
limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, 
limit_in_pages:1, seg_not_present:0, useable:1}) = 0
munmap(0x40018000, 104584)              = 0
getcwd("/raid/usr/local/bin", 4096)     = 20
chdir("/raid/usr/local/bin/.")          = 0
getcwd("/raid/usr/local/bin", 4096)     = 20
brk(0)                                  = 0x8072000
brk(0x8093000)                          = 0x8093000
brk(0)                                  = 0x8093000
open("/raid/usr/local/bin/.project", O_RDONLY|O_LARGEFILE) = -1 ENOENT 
(No such file or directory)
getuid32()                              = 1000
mkdir("/tmp/gambas.1000", 0700)         = -1 EEXIST (File exists)
getpid()                                = 16023
getuid32()                              = 1000
mkdir("/tmp/gambas.1000/16023", 0700)   = 0
gettimeofday({1148887793, 631162}, NULL) = 0
open("/etc/localtime", O_RDONLY)        = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=837, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x40018000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\0\0\10"..., 
4096) = 837
close(3)                                = 0
munmap(0x40018000, 4096)                = 0
gettimeofday({1148887793, 633543}, NULL) = 0
getcwd("/raid/usr/local/bin", 4096)     = 20
access("/usr/bin/gbx2", F_OK)           = 0
readlink("/usr/bin/gbx2", "/usr/local/bin/gbx2", 512) = 19
getuid32()                              = 1000
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = 0
writev(3, [{"\2\0\0\0\1\0\0\0\5\0\0\0", 12}, {"1000\0", 5}], 2) = 17
read(3, "\2\0\0\0\1\0\0\0\7\0\0\0\2\0\0\0\350\3\0\0d\0\0\0\23\0"..., 36) 
= 36
read(3, "tester\0x\0Testervor Nachname\0/hom"..., 51) = 51
close(3)                                = 0
getcwd("/raid/usr/local/bin", 4096)     = 20
chdir("/raid/usr/local/bin/.")          = 0
getcwd("/raid/usr/local/bin", 4096)     = 20
chdir("/raid/usr/local/bin")            = 0
open("/raid/usr/local/bin/.project", O_RDONLY|O_LARGEFILE) = -1 ENOENT 
(No such file or directory)
write(2, "ERROR: ", 7ERROR: )                  = 7
write(2, "#45: ", 5#45: )                    = 5
write(2, "File or directory does not exist"..., 33File or directory does 
not exist
) = 33
getuid32()                              = 1000
stat64("/tmp/gambas.1000/16023", {st_mode=S_IFDIR|0700, st_size=48, 
...}) = 0
open("/tmp/gambas.1000/16023", 
O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0700, st_size=48, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
getdents64(3, /* 2 entries */, 4096)    = 48
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
exit_group(1)                           = ?


Now, can you recognize anything out of it? Thanks for your time!

Regards

Rolf




More information about the User mailing list