473,387 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

I am running prog with GDB - throws SIG32, why?

365 100+
I am running prog with GDB - throws SIG32, why?


@localhost config]# gdb prog
GNU gdb Red Hat Linux (5.3.90-0.20030710.40rh)
Copyright 2003 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 "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: config/prog

** starting the model **
Creating this Directory for logs: /log
mkdir: cannot create directory `/log': File exists

Program received signal SIG32, Real-time event 32.
0x080aed7f in __pthread_sigsuspend ()
(gdb)
Dec 2 '09 #1
8 9442
ashitpro
542 Expert 512MB
Could you please send the code...?
Or send us the backtrace output..
Dec 4 '09 #2
ashitpro
542 Expert 512MB
Could you please send the code...?
Or send us the backtrace output..
Dec 4 '09 #3
tvnaidu
365 100+
localhost config]# gdb prog
GNU gdb Red Hat Linux (5.3.90-0.20030710.40rh)
Copyright 2003 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 "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: ~/config/prog

** starting the model **

Program received signal SIG32, Real-time event 32.
0x080b10af in __pthread_sigsuspend ()
(gdb) backtrace
#0 0x080b10af in __pthread_sigsuspend ()
#1 0x080b0335 in __pthread_wait_for_restart_signal ()
#2 0x080b0597 in pthread_create ()
#3 0x08095323 in start_HTTPSender (cfgPtr=0x8204308) at SenderQ.c:293
#4 0x080963a3 in start_sender (cfgPtr=0x8204308) at SenderQ.c:858
#5 0x08093004 in SenderStart () at xml_str.c:676
#6 0x08081616 in MdInitialize ()
#7 0x08048936 in main ()
(gdb)
Dec 4 '09 #4
ashitpro
542 Expert 512MB
This is known problem..

http://www.mail-archive.com/bug-gdb@.../msg01102.html
Dec 4 '09 #5
tvnaidu
365 100+
I found "pthread_attr_t attr" was declared as global like "static pthread_attr_t attr", I moved this to locally as "pthread_attr_t attr", then I compiled and try to run, this time when I run with gdb, it terminated by SIGKILL:

localhost config]# gdb ./prog
GNU gdb Red Hat Linux (5.3.90-0.20030710.40rh)
Copyright 2003 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 "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: ~/config/prog

** starting the model **
Creating this Directory for logs: /log
mkdir: cannot create directory `/log': File exists

Program terminated with signal SIGKILL, Killed.
The program no longer exists.
(gdb) backtrace
No stack.
(gdb) quit
[root@localhost config]#
Dec 4 '09 #6
tvnaidu
365 100+
I got your link, any work around for this?. I am thinking some issue with my ported code from windows.
Dec 4 '09 #7
tvnaidu
365 100+
if I run my app without GDB, also it gets "Killed", that is why I am running with GDB to see what is happening, anyway can I debug my app?.
Dec 4 '09 #8
ashitpro
542 Expert 512MB
seems like pthread library is not getting linked properly...
Can you try running that on other machine? Or may be reinstalling the pthread..
Also, see if there is any LD_ASSUME_KERNEL environment variable set....
Dec 7 '09 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Rennie deGraaf | last post by:
I want to create a long-running RMI server, which makes an object available to remote hosts, and does nothing else. However, the server consistently exists with no exception or error after >=60...
23
by: Spiffy | last post by:
hello, i'm fairly new to python programming and programming in general, but i have written a python prog that creates a MIDI file (.mid) and I want to be able to play it from another prog which is...
0
by: Brett | last post by:
I've recompiled this prog for .NET using VS.NET: http://www.codeproject.com/shell/iesaveas.asp. I goes through the save and then this error appears: This web page could not be saved. Nothing...
1
by: John Bailo | last post by:
I need to use the MSSOAP component on a classic asp page. The site will access an ASP.NET webservice using the SOAP protocol. On my workstation, I was able to do this successfully. When I...
2
by: facicad | last post by:
I would like to set topmost another prog. from my program. Ex: I use AutoCAD, run my prog. from autocad. My prog. is topmost but went I would like to pick some object in autocad, I set TopMost to...
13
by: Jason | last post by:
Could someone here show me how I would write a vb program to convert decimal ip address to binary? For example a small form with a convert button and a label for the result and a textbox for the...
0
by: Valentin Guggiana | last post by:
Hi all I build MySQL 5.0.24 as follows: setenv PREFIX /data/mysql-5.0.24 setenv CFLAGS "-O3 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" setenv CXXFLAGS "$CFLAGS -felide-constructors...
24
by: Mark | last post by:
Hi, I'm new to python and looking for a better idiom to use for the manner I have been organising my python scripts. I've googled all over the place about this but found absolutely nothing. I'm...
9
by: Jimmy | last post by:
Well, i know it may be a little non-python thing, however, I can think of no place better to post this question :) can anyone tell me, in python, how to obtain some information of a running...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.