#888315 blender: segfault on start

Package:
libgl1-mesa-dri
Source:
mesa
Description:
free implementation of the OpenGL API -- DRI modules
Submitter:
Rob van den Berg
Date:
2023-02-05 11:39:03 UTC
Severity:
important
Tags:
#888315#5
Date:
2018-01-24 21:41:43 UTC
From:
To:
output of /tmp/blender.crash.txt
# Blender 2.79 (sub 0), Unknown revision

# backtrace
blender(BLI_system_backtrace+0x37) [0x19ca067]
blender(+0xabb637) [0xf44637]
linux-gate.so.1(__kernel_sigreturn+0) [0xb7efdd04]
[0xa3578257]
/usr/lib/i386-linux-gnu/dri/r300_dri.so(+0x4bb148) [0x99793148

#888315#10
Date:
2018-01-24 22:00:09 UTC
From:
To:
Hi!

On 2018-01-24 at 22:41 (+0100), Rob van den Berg wrote:

[...]

This smells like a graphics card issue; in fact I cannot reproduce it
here on my Intel-based laptop.

Could you please test the same version on a different machine?

Thanks.

#888315#23
Date:
2018-01-24 22:29:26 UTC
From:
To:
yeah, seems like the videocard
got a backtrace (couldn't install blender-dbg btw :?: )

```
Thread 1 (Thread 0xa4fbf840 (LWP 13412)):
#0  0xa4c63257 in ?? ()
#1  0x99793148 in ?? () from /usr/lib/i386-linux-gnu/dri/r300_dri.so
#2  0x997936df in ?? () from /usr/lib/i386-linux-gnu/dri/r300_dri.so
#3  0x996aceb9 in ?? () from /usr/lib/i386-linux-gnu/dri/r300_dri.so
#4    ....
```
so, where to report the bug ?

2018-01-24 23:00 GMT+01:00 Matteo F. Vescovi <mfv@debian.org>:

#888315#28
Date:
2018-01-24 22:35:54 UTC
From:
To:
On 2018-01-24 at 23:29 (+0100), Rob van den Berg wrote:

[...]

Given the file involved, I'd say against libgl1-mesa-dri package.
Doing so for you. Hope this helps.

Cheers.

#888315#33
Date:
2018-03-04 20:44:29 UTC
From:
To:
Hi,

I have no other machine with debian testing (buster).
I do have the same crash with other apps.
I'm developing some audio plugins and the gui crashes always in the same way on this laptop (stacktrace attached). I tried blender just because I guessed it uses the same libs and I wanted to see if it crashed too.

I wanted to install some -dbg package but couldn't find one. Also not exactly sure which to install :-)

Note: I did run ubuntu 16.04 on this machine before and then I didn't have this problem.

Really liking debian, hate to 'revert' to ubuntu 16.04 or an older debian. Other things (networking for example) are much, much better.

Please let me know how I can help any further.

Cheers Rob

#888315#38
Date:
2020-06-22 18:57:28 UTC
From:
To:
Hi,

same problem here: segfault on blender start. I sent that report
to the blender package:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=963203

Same problem with openscad, btw:

Jun 21 19:21:47 bob kernel: openscad[31289]: segfault at a0 ip
000014bd1303b9b8 sp 00007ffd5c895a30 error 4 in
iris_dri.so[14bd12553000+e11000]
Jun 21 19:21:47 bob kernel: Code: 44 24 18 48 c7 44 24 10 00 00 00
00 48 c7 44 24 18 00 00 00 00 50 4c 8d 4c 24 18 e8 52 85 ad ff 48
8b 44 24 18 31 d2 48 89 ef <4c> 8b b0 a0 00 00 00 4c 89 f6 e8 59
94 fd ff 48 8b bd 28 01 00 00

cu

#888315#43
Date:
2023-02-03 06:41:33 UTC
From:
To:
Hello,
 
I fixed my problem. strace indicated a problem with netdata's sqlite database. That was not reported in any netdata output. So I deleted the contents of /var/cache/netdata and all was fine.
 
So while my problem is solved, there might be two problems that caused this bug report:
- sqlite conversion seems to be faulty. At least that's what the strace output suggests. I attached it for completeness and maybe an upstream bug report.
- `apt purge netdata` should delete or offer to delete /var/cache/netdata. If it would have done that, my problem would have been fixed quite soon:
 
[gru:~] % apt purge netdata
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
 fonts-glyphicons-halflings libjs-bootstrap libnetfilter-acct1 netdata-core netdata-plugins-bash netdata-plugins-python netdata-web
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
 netdata*
0 upgraded, 0 newly installed, 1 to remove and 69 not upgraded.
After this operation, 47.1 kB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 288452 files and directories currently installed.)
Removing netdata (1.37.1-2) ...
θ70° [gru:~] 6s % ll /var/cache/netdata 
total 5668
-rw-r----- 1 netdata netdata    4096 Feb  3 07:30 context-meta.db
-rw-r----- 1 netdata netdata   32768 Feb  3 07:32 context-meta.db-shm
-rw-r----- 1 netdata netdata   61832 Feb  3 07:32 context-meta.db-wal
drwxrwx--- 2 netdata netdata    4096 Feb  3 07:30 dbengine/
drwxrwx--- 2 netdata netdata    4096 Feb  3 07:30 dbengine-tier1/
drwxrwx--- 2 netdata netdata    4096 Feb  3 07:30 dbengine-tier2/
-rw-r----- 1 netdata netdata 1507328 Feb  3 07:33 netdata-meta.db
-rw-r----- 1 netdata netdata   32768 Feb  3 07:33 netdata-meta.db-shm
-rw-r----- 1 netdata netdata 4148872 Feb  3 07:33 netdata-meta.db-wal
 
 
* "could not find cloud.conf"
Yes, I also saw that message when I ran the natively installed netdata daemon
 
* output from starting netdata in the foreground
θ61° [gru:~] 3s % sudo netdata -D
2023-02-03 07:20:54: netdata INFO  : MAIN : CONFIG: cannot load cloud config '/var/lib/netdata/cloud.d/cloud.conf'. Running with internal defaults.
θ63° [gru:~] 1 % 
 
That's it. Exit code 1, not helpful...
 
So you could fix that bug, but it would be good if the above mentioned problems would be addressed.
 
Thanks for your work as a maintainer! 
--  
Markus Grunwald

#888315#48
Date:
2023-02-03 06:41:33 UTC
From:
To:
Hello,

I fixed my problem. strace indicated a problem with netdata's sqlite database. That was not reported in any netdata output. So I deleted the contents of /var/cache/netdata and all was fine.

So while my problem is solved, there might be two problems that caused this bug report:
- sqlite conversion seems to be faulty. At least that's what the strace output suggests. I attached it for completeness and maybe an upstream bug report.
- `apt purge netdata` should delete or offer to delete /var/cache/netdata. If it would have done that, my problem would have been fixed quite soon:

[gru:~] % apt purge netdata
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
 fonts-glyphicons-halflings libjs-bootstrap libnetfilter-acct1 netdata-core netdata-plugins-bash netdata-plugins-python netdata-web
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
 netdata*
0 upgraded, 0 newly installed, 1 to remove and 69 not upgraded.
After this operation, 47.1 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 288452 files and directories currently installed.)
Removing netdata (1.37.1-2) ...
θ70° [gru:~] 6s % ll /var/cache/netdata
total 5668
-rw-r----- 1 netdata netdata    4096 Feb  3 07:30 context-meta.db
-rw-r----- 1 netdata netdata   32768 Feb  3 07:32 context-meta.db-shm
-rw-r----- 1 netdata netdata   61832 Feb  3 07:32 context-meta.db-wal
drwxrwx--- 2 netdata netdata    4096 Feb  3 07:30 dbengine/
drwxrwx--- 2 netdata netdata    4096 Feb  3 07:30 dbengine-tier1/
drwxrwx--- 2 netdata netdata    4096 Feb  3 07:30 dbengine-tier2/
-rw-r----- 1 netdata netdata 1507328 Feb  3 07:33 netdata-meta.db
-rw-r----- 1 netdata netdata   32768 Feb  3 07:33 netdata-meta.db-shm
-rw-r----- 1 netdata netdata 4148872 Feb  3 07:33 netdata-meta.db-wal


* "could not find cloud.conf"
Yes, I also saw that message when I ran the natively installed netdata daemon

* output from starting netdata in the foreground
θ61° [gru:~] 3s % sudo netdata -D
2023-02-03 07:20:54: netdata INFO  : MAIN : CONFIG: cannot load cloud config '/var/lib/netdata/cloud.d/cloud.conf'. Running with internal defaults.
θ63° [gru:~] 1 %

That's it. Exit code 1, not helpful...

So you could fix that bug, but it would be good if the above mentioned problems would be addressed.

Thanks for your work as a maintainer!
--
Markus Grunwald