[Github-comments] [geany/geany] Null time on debug messages (Issue #3071)

Robert Di Pardo notifications at xxxxx
Mon Dec 27 13:32:09 UTC 2021


When I try to reproduce, it's the debug message _window_ that has no timestamps; strangely, the log output looks fine in the terminal:

~~~
Geany-INFO: 08:01:37.403: Geany 1.39 (git >= 32977676), unknown
Geany-INFO: 08:01:37.403: GTK 3.24.5, GLib 2.58.3
Geany-INFO: 08:01:37.403: OS: Linux
~~~

I built from source with `-g -O0` and debugged, without learning the cause, but `g_date_time_format()` is definitely assigning a null pointer to `time_string` before returning from `utils_get_current_time_string()`:

![time_string_nulled_out](https://user-images.githubusercontent.com/59004801/147473244-af736c0f-c23a-46db-b816-c6fb66e65b79.png)

Trying to inspect the `time_string` pointer before it becomes `0x0` raises an error about an invalid address:

![time_string_invalid_address](https://user-images.githubusercontent.com/59004801/147473414-27138aaa-ec17-4903-a65b-7246911421fe.png)

Not sure if that points to memory corruption or just the debugger complaining about stripped symbols.

[vscode-gdb-cofig.zip](https://github.com/geany/geany/files/7780230/vscode-gdb-cofig.zip)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/3071#issuecomment-1001561230
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/issues/3071/1001561230 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211227/64652661/attachment.htm>


More information about the Github-comments mailing list