473,625 Members | 3,384 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

365 Contributor
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_sigsu spend ()
(gdb)
Dec 2 '09 #1
8 9505
ashitpro
542 Recognized Expert Contributor
Could you please send the code...?
Or send us the backtrace output..
Dec 4 '09 #2
ashitpro
542 Recognized Expert Contributor
Could you please send the code...?
Or send us the backtrace output..
Dec 4 '09 #3
tvnaidu
365 Contributor
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_sigsu spend ()
(gdb) backtrace
#0 0x080b10af in __pthread_sigsu spend ()
#1 0x080b0335 in __pthread_wait_ for_restart_sig nal ()
#2 0x080b0597 in pthread_create ()
#3 0x08095323 in start_HTTPSende r (cfgPtr=0x82043 08) at SenderQ.c:293
#4 0x080963a3 in start_sender (cfgPtr=0x82043 08) 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 Recognized Expert Contributor
This is known problem..

http://www.mail-archive.com/bug-gdb@.../msg01102.html
Dec 4 '09 #5
tvnaidu
365 Contributor
I found "pthread_at tr_t attr" was declared as global like "static pthread_attr_t attr", I moved this to locally as "pthread_at tr_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 Contributor
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 Contributor
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 Recognized Expert Contributor
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_KERNE L environment variable set....
Dec 7 '09 #9

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

Similar topics

0
1689
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 seconds. Without waiting on a dummy object or going into a sleep loop, how can I prevent my server from exiting? Here's my code: RemoteInterface.java: public interface RemoteInterface extends java.rmi.Remote {
23
1926
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 written in BASIC. It's a command-line prog that takes the MIDI filename as a parameter and plays the file. The 'Learning Python' book talks about using the os.system call, but I haven't been able to get this to work. How can I run this other...
0
910
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 is saved. Sometimes I see this same error in IE when I'm saving. However, I can reference the same page in IE and save but not in the C++ app. Any idea what is wrong?
1
1735
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 migrated the classic ASP code to the production server, it threw this error: Server object error 'ASP 0177 : 800401f3'
2
1853
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 false and I would like to autocad bring to front, but for autocad object, it not have TopMost properties
13
9219
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 ip. So I would want 11000000 10101000 00000010 00001010 tp show up inthe label if I entered 192.168.2.10 into the text box. I have no idea even how to begin this, any help would be great.
0
2328
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 -fno-exceptions -fno-rtti" ../configure \ --prefix=$PREFIX \ --enable-local-infile \
24
2830
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 a linux/unix command line guy quite experienced in shell scripts etc. I have a heap of command line utility scripts which I run directly. What is the best way to create python command line scripts but exploit the (loadonly) speed-up benefit of...
9
2174
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 program? paticularly, if i am playing some music in audacious or other media player, how can i get the the name and some other info of current playing song? It seems that audicious doesn't output on run-time
0
8256
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8189
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8356
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8497
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6118
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2621
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1500
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.