[Hbasic-userinfo] HBasic Debug on Debian/SPARC64 Linux...
Status: Beta
Brought to you by:
mengels
From: David M. <dmo...@ya...> - 2005-11-28 17:01:49
|
Hi, I've compiled up Hbasic on Debian SPARC Linux 3.1r0a (Kernel 2.4.27-2-Sparc64) using GCC 3.3.5 and I get a segv when running. Any takers??? reply direct to => dmo...@ya... ---------------- nautilus:/home/dave/hbasic# hbasic QPixmap: Cannot create a QPixmap when no GUI is being used QPixmap: Cannot create a QPixmap when no GUI is being used QPixmap: Cannot create a QPixmap when no GUI is being used QPixmap: Cannot create a QPixmap when no GUI is being used kbuildsycoca running... KWrited - Listening on Device /dev/pts/3 KCrash: Application 'hbasic' crashing... nautilus:/home/dave/hbasic# Mutex destroy failure: Device or resource busy KCrash Output ============= Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 19488)] [KCrash handler] #4 0x0007e900 in loadGlobalOptions () at main.cpp:391 #5 0x0007fbb0 in main (argc=1, argv=0xeffffb84) at main.cpp:733 GDB === nautilus:/home/dave/hbasic# gdb hbasic GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "sparc-linux"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run Starting program: /home/dave/hbasic/hbasic [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 10464)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 10464)] 0x0007e900 in loadGlobalOptions () at main.cpp:392 392 hbasic_glb_options . edit_font = QFont( str_value ); (gdb) info stack #0 0x0007e900 in loadGlobalOptions () at main.cpp:392 #1 0x0007fbb0 in main (argc=1, argv=0xeffffb64) at main.cpp:736 (gdb) n KCrash: Application 'hbasic' crashing... Program exited with code 0375. GDB === (gdb) b main.cpp:392 (gdb) break main.cpp:392 Breakpoint 2 at 0x7e8f0: file main.cpp, line 392. (gdb) r Starting program: /home/dave/hbasic/hbasic [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 10480)] [Switching to Thread 16384 (LWP 10480)] Breakpoint 2, loadGlobalOptions () at main.cpp:392 392 hbasic_glb_options . edit_font = QFont( str_value ); (gdb) list 387 /* Load font options. */ 388 389 f . readBlock( (char *)&string_length, sizeof( short )); 390 f . readBlock( str_value, string_length ); 391 str_value[string_length] = (char)0; 392 hbasic_glb_options . edit_font = QFont( str_value ); 393 394 395 f . readBlock( (char *)&svalue, sizeof( short )); 396 hbasic_glb_options . edit_font . setPointSize( svalue ); (gdb) p str_value $1 = "Courier\n\000\000\000\000\000\005\000Times\n\000\000\000\000\000\001\000\000\000\000\000d\000j\002\001\000´\002\000\000Ë\000Ò\000\001\000³\002Ò\000Ê\000\223\001\003\000---|\003¨\002", '\0' <repeats 19 times>, "p\021D\210\000.½x\000\000\000\001\000\000\000\000\000&#H\000\000\000\001\000\000\000\001ïÿùØ\000\aû ", '\0' <repeats 12 times>, "p\021D\210\000.½x\000\000\000\000ïÿûd\000&#H\000\000\000\001\000\000\000\001ïÿùØ\000\aû ïÿú \000\000\000\000\000\000\000\000p\001ò\220\000\000\000\000\000\000\000\005\000.¸xïÿú " (gdb) n 391 str_value[string_length] = (char)0; (gdb) p string_length $2 = 1792 (gdb) n 392 hbasic_glb_options . edit_font = QFont( str_value ); (gdb) p str_value $3 = "Courier\n\000\000\000\000\000\005\000Times\n\000\000\000\000\000\001\000\000\000\000\000d\000j\002\001\000´\002\000\000Ë\000Ò\000\001\000³\002Ò\000Ê\000\223\001\003\000---|\003¨\002", '\0' <repeats 19 times>, "p\021D\210\000.½x\000\000\000\001\000\000\000\000\000&#H\000\000\000\001\000\000\000\001ïÿùØ\000\aû ", '\0' <repeats 12 times>, "p\021D\210\000.½x\000\000\000\000ïÿûd\000&#H\000\000\000\001\000\000\000\001ïÿùØ\000\aû ïÿú \000\000\000\000\000\000\000\000p\001ò\220\000\000\000\000\000\000\000\005\000.¸xïÿú " (gdb) n Program received signal SIGSEGV, Segmentation fault. 0x0007e900 in loadGlobalOptions () at main.cpp:392 392 hbasic_glb_options . edit_font = QFont( str_value ); (gdb) ___________________________________________________________ Yahoo! Model Search 2005 - Find the next catwalk superstars - http://uk.news.yahoo.com/hot/model-search/ |