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

SourceForge.net noreply at sourceforge.net
Thu Aug 3 19:20:12 CEST 2006


Bugs item #1532830, was opened at 2006-08-02 03:25
Message generated for change (Comment added) made by miconda
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: Daniel-Constantin Mierla (miconda)
Date: 2006-08-03 20: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