Bug 736876 - SEGV using GSoap (at application exit) even with minimal code
Summary: SEGV using GSoap (at application exit) even with minimal code
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: gsoap
Version: 15
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Matthew Farrellee
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-08 22:58 UTC by Derek Atkins
Modified: 2011-09-09 14:37 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-09 14:37:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Tarfile of test case (6.80 KB, application/unix-tar)
2011-09-08 22:58 UTC, Derek Atkins
no flags Details

Description Derek Atkins 2011-09-08 22:58:58 UTC
Created attachment 522214 [details]
Tarfile of test case

Description of problem:

I'm working on a gsoap application and my application is SEGfaulting during exit.  I worked to get a testcase down to the minimal amount to show the issue.  I've attached everything you need to work the problem and show the issue.


Version-Release number of selected component (if applicable):

gsoap-2.7.17-3.fc15.x86_64


How reproducible:

100%


Steps to Reproduce:
1. untar the attached test sources
2. gcc -g -o test-gsoap test-gsoap.c -lgsoapssl -lssl
3. run test-gsoap and see the SEGV
  
Actual results:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x0000000000606030 in ?? ()
#2  0x00007fffffffe228 in ?? ()
#3  0x0000000000000000 in ?? ()
(gdb) q


Expected results:

Code shouldn't segfault.

Additional info:

The test code attached is a minimal app to show the issue.

Comment 1 Mattias Ellert 2011-09-09 14:37:07 UTC
When using the gsoap libraries you must use the same CFLAGS that where used when the libraries were compiled. The preferred way to do this is to use pkg-config. In your example you are using the gsoapssl library. For correct operation you should then compile your code with `pkg-config --cflags gsoapssl`.

When I do this I do not get a segfault with your test code:

$ gcc -g `pkg-config --cflags gsoapssl` -o test-gsoap test-gsoap.c -lgsoapssl -lssl
$ ./test-gsoap
$ 

If I leave out the pkg-config part I can reproduce your error.


Note You need to log in before you can comment on or make changes to this bug.