Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Bug in IDE 4.6 setting environment variable in Debug Configuration: (2 Items)
   
Bug in IDE 4.6 setting environment variable in Debug Configuration  
I've discovered a bug in IDE 4.6 (Build id: I20090510). It involves setting environment variables for a Debug 
Configuration (e.g. "Environment" tab). It appears the "Value" entry is limited to 126 characters. If more characters 
are entered then a double-quote (") is appended to the end of the environment variable that is appended to the target's 
environment.

For example:

Variable:
DBUS_SESSION_BUS_ADDRESS

Value:
unix:path=/tmp/dbus-MNzOp3X3nV,guid=e21d288fe52bc59a6d8e19c04bbccfd0;tcp:host=localhost,port=6667,family=ipv4,guid=
1b1a12b5fa8e657b3fd2d05b4bbccfd0

When printed from within a running program (using getenv("DBUS_SESSION_BUS_ADDRESS") to get the value). I see this 
printed out:

DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-MNzOp3X3nV,guid=e21d288fe52bc59a6d8e19c04bbccfd0;tcp:host=localhost,port=
6667,family=ipv4,guid=1b1a12b5fa8e657b3fd2d05b4bbccfd0"

Whereas if I limit the "value" to 126 characters (or less) I get the following (minus the double-quote at the end)

DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-MNzOp3X3nV,guid=e21d288fe52bc59a6d8e19c04bbccfd0;tcp:host=localhost,port=
6667,family=ipv4,guid=1b1a12b5fa

So my code running in the debugger behaves much differently than when run from the command line. I suspect there is a 
buffer over-run issue occurring in the IDE or there is an arbitrary limit set in the IDE.

Can QNX verify (or enter a ticket) for this bug?

Thanks ...
Re: Bug in IDE 4.6 setting environment variable in Debug Configuration  
Momentics 6.4.1? Probably a bug in qconn. I enter pr #75998. Thank you 
for reporting.

Glenn Schmottlach wrote:
> I've discovered a bug in IDE 4.6 (Build id: I20090510). It involves setting environment variables for a Debug 
Configuration (e.g. "Environment" tab). It appears the "Value" entry is limited to 126 characters. If more characters 
are entered then a double-quote (") is appended to the end of the environment variable that is appended to the target's 
environment.
>
>
>