[Devel] [ openser-Bugs-1532830 ] usrloc/udomain.c causes task to crash

SourceForge.net noreply at sourceforge.net
Thu Aug 3 19:41:30 CEST 2006


Bugs item #1532830, was opened at 2006-08-01 20:25
Message generated for change (Comment added) made by goestelecom
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1532830&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Submitted By: Norman Brandinger (goestelecom)
Assigned to: Daniel-Constantin Mierla (miconda)
Summary: usrloc/udomain.c causes task to crash

Initial Comment:
It was discovered that the usrloc/udomain.c
preload_udomain() code causes a failure when testing
with postgres.

The cause of the failure is the call to:

ul_dbf.query(_c, 0, 0, 0, columns, 0, (use_domain) ?
(14) : (13), 0,0)

The last parameter (0) should be the address of a
storage location to hold the address of the result set
returned by the query.  Obviously, trying to store an
address into location 0 isn't a good thing.

The attached patch changes the last parameter to the
previously defined db_res_t &res variable.

Testing after application of this patch shows that it
resolves this specific failure.

Regards,
Norm

----------------------------------------------------------------------

>Comment By: Norman Brandinger (goestelecom)
Date: 2006-08-03 13:41

Message:
Logged In: YES 
user_id=1372252

This problem came to light when Postgres FETCH support was
being developed.  Development of this support could not
proceed until the problem was fixed.

I didn't research deeply as to the differences between the
MySQL "query" and the Postgres "query" in terms of storing
an address into the db_res_t variable.

To answer your question specifically, DB_FETCH is being
advertised by a "development" version of modules/postgres.


----------------------------------------------------------------------

Comment By: Daniel-Constantin Mierla (miconda)
Date: 2006-08-03 13:20

Message:
Logged In: YES 
user_id=1246013

ul_dbf.query(_c, 0, 0, 0, columns, 0, (use_domain) ?
(14) : (13), 0,0)

This should happen only when DB_FETCH capability is in
place, but Postgres module do not advertise it. Are using a
devel version of yourself?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1532830&group_id=139143



More information about the Devel mailing list