[Gambas-user] How to compile with debugging information enabled - compiles but then a coredump

Richard Terry rterry at ...1823...
Sun Nov 25 23:26:48 CET 2012


Benoit,

I've wiped a hard drive this morning, installed just kubuntu 12.04, put 
on only gambas and its dependencies, compiled successfully with the 
debugging information and installed valgrind.

Can you tell me how to run the webcam example within this to give you 
the information you need to debug the V4L problem?

richard

> Benoît Minisini wrote:
>   
>> Le 22/11/2012 12:54, richard a écrit :
>>   
>>     
>>> richard at ...3044...:~/svn/gambas3/trunk$ gambas3
>>> Bus error (core dumped)
>>> richard at ...3044...:~/svn/gambas3/trunk$
>>>
>>> regards
>>>
>>>     
>>>       
>> Weird...
>>
>> Can you do that:
>>
>> $ gdb gbr3
>> ...
>> (gdb) run /usr/bin/gambas3
>>
>> Then the program should run until the bus error, and you will get the 
>> gdb prompt back.
>>
>> (gdb) bt
>> ...
>>
>> Send me the output of the 'bt' command.
>>
>>   
>>     
> richard at ...3044...:~/svn/gambas3/trunk$ gdb gbr3
> GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04
> Copyright (C) 2012 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".
> For bug reporting instructions, please see:
> <http://bugs.launchpad.net/gdb-linaro/>...
> Reading symbols from /usr/local/bin/gbr3...done.
> (gdb) run /usr/bin/gambas3
> Starting program: /usr/local/bin/gbr3 /usr/bin/gambas3
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
>
> Program received signal SIGBUS, Bus error.
> hash_table_lookup_node (hash_table=0x4c4f435f534c0064, 
> key=0x7ffff5e165d8 "true", len=4384998) at ../share/gb_hash_temp.h:217
> 217             if (hash_table->mode)
> (gdb)
>
> (gdb) bt
> #0  hash_table_lookup_node (hash_table=0x4c4f435f534c0064, 
> key=0x7ffff5e165d8 "true", len=4384998) at ../share/gb_hash_temp.h:217
> #1  0x0000000000408310 in HASH_TABLE_lookup 
> (hash_table=0x4c4f435f534c0064, key=<optimised out>, len=<optimised 
> out>) at ../share/gb_hash_temp.h:260
> #2  0x000000000042e59e in get_from_key (_object=0x7fffffffe6b5, 
> key=<optimised out>, len=4384998) at gbx_c_subcollection.c:70
> #3  0x00007ffff5dcd22f in GB_INIT () at main.cpp:1095
> #4  0x0000000000416db2 in LIBRARY_load (lib=0x66d108) at gbx_library.c:262
> #5  0x000000000043042b in COMPONENT_load (comp=0x66d088) at 
> gbx_component.c:279
> #6  COMPONENT_load (comp=0x66d088) at gbx_component.c:261
> #7  0x00000000004306d2 in COMPONENT_load_all () at gbx_component.c:132
> #8  0x00000000004169d1 in PROJECT_load () at gbx_project.c:465
> #9  0x00000000004258af in init (file=0x7fffffffe445 "/usr/bin/gambas3", 
> argc=1, argv=0x7fffffffe148) at gbx.c:110
> #10 0x0000000000404606 in main (argc=1, argv=0x7fffffffe148) at gbx.c:363
> (gdb)
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>   




More information about the User mailing list