axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Meier (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2C-922) axis2_http_server.exe crashes in axis2_getopt
Date Tue, 22 Jan 2008 17:16:34 GMT

    [ https://issues.apache.org/jira/browse/AXIS2C-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561382#action_12561382
] 

Dave Meier commented on AXIS2C-922:
-----------------------------------

Hi Senaka,

Okay, I will need to take another look at this.  Did you try the debug version of the code?
 That's what was crashing for me.

I am using Visual Studio .NET 2003 to build.  I wonder if 2005 has different behaviour for
the compiler flags.

It was crashing on the following line in getopt_windows.c:

        if (optind >= __argc || *(pos = __argv[optind]) != '-')

In the debugger, I could see __p___argc, but not __argc.  The __argc argument was shown as
a pointer in the debugger where it showed the arguments to axis2_getopt(...) instead of an
int.  The value was 1 which is correct, but apparently it crashed when it tried to use __argc
in the if statement shown above, because on the call stack it showed that it was trying to
extecute code at address of 1.

-Dave.

> axis2_http_server.exe crashes in axis2_getopt
> ---------------------------------------------
>
>                 Key: AXIS2C-922
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-922
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: build system (Windows)
>    Affects Versions: 1.2.0
>         Environment: Windows XP
>            Reporter: Dave Meier
>
> Crashes on this line:
> if (optind >= __argc || *(pos = __argv[optind]) != '-')
> I changed the makefile and was able to get it to work.  Changed to the following:
> !if "$(DEBUG)" == "1"
> CFLAGS = $(CFLAGS) /D "_DEBUG" /Od /Z7
> LDFLAGS = $(LDFLAGS) /DEBUG /INCREMENTAL /NODEFAULTLIB:LIBCMTD.lib
> !else
> CFLAGS = $(CFLAGS) /D "NDEBUG" /O2 /MT
> LDFLAGS = $(LDFLAGS)
> !endif
> Basically for the DEBUG case, I removed the  $(CRUNTIME)d from CFLAGS and added back
the /NODEFAULTLIB:LIBCMTD.lib to LDFLAGS that was there in 1.1.  Also changed $(CRUNTIME)
to /MT for the release mode CFLAGS.
> In my configure.in, I had CRUNTIME=/MD

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message